Enumerations
enum TestStatus
| Name | Value |
|---|---|
| kRunning | 0 |
| kPassed | 1 |
| kFailed | 2 |
| kSkipped | 3 |
Test Status.
Defined at line 14 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/test-driver.h
Records
-
class Accessor -
class AddInstantiationDelegate -
class AddInstantiationDelegateImpl -
class AddTestDelegate -
class AddTestDelegateImpl -
class DeathStatement -
class EventBroadcaster -
class IterationSummary -
class JsonReporter -
class JsonWriter -
class ParameterizedTestCaseInfo -
class ParameterizedTestCaseInfoImpl -
class ParameterizedTestCaseInfoImplTestPeer -
class StreamableAssertion -
class StreamableBase -
class StreamableFail -
class StreamableSkip -
class Tag -
class TestDriver -
class TestDriverImpl -
class TestInternal -
class Timer -
class TypeIdProvider -
class ValueProvider -
class has_status -
class has_status_value
Functions
-
fbl::String ToHex (const void * ptr, size_t size)Returns a string with the Hex representation of the contents of the buffer pointed by ptr. If
|ptr| is nullptr, returns "<nullptr>". If |size| is 0 returns
<empty
>.
Defined at line 23 of file ../../zircon/system/ulib/zxtest/message.cc
-
std::string_view ToStringView (std::string_view str)Defined at line 25 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/message.h
-
template <typename Actual, typename Expected, typename Comparer>bool Compare (const Actual & actual, const Expected & expected, const Comparer & compare)Used for delegating an assertion evaluation. to a lambda.
Defined at line 26 of file ../../zircon/system/ulib/zxtest/include/zxtest/cpp/internal.h
-
template <typename T>zx_status_t GetStatus (const T & status)Defined at line 26 of file ../../zircon/system/ulib/zxtest/include/zxtest/cpp/streams_helper.h
-
std::string_view ToStringView (const char * str)We avoid calling std::string_view's constructor of a single `const char*`
argument, as that will call std::char_traits
<char
>::length() which may not
support nullptrs.
Defined at line 30 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/message.h
-
std::string_view ToStringView (char * str)Defined at line 37 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/message.h
-
template <typename Actual, typename Expected, typename Comparer>bool Compare (const Actual * a, const Expected * e, const Comparer & compare)Alternative when there exists an implicit conversion to pointer, which allows
VLAs to be compared.
Defined at line 38 of file ../../zircon/system/ulib/zxtest/include/zxtest/cpp/internal.h
-
template <typename Stringlike>std::enable_if_t<!std::is_convertible_v<Stringlike, nullptr_t>, std::string_view> ToStringView (const Stringlike & str)Else, default to assuming that std::data will yield a C string.
Defined at line 43 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/message.h
-
template <typename Stringlike>std::enable_if_t<! std::is_convertible_v<Stringlike, nullptr_t>, std::string_view> ToStringView (const Stringlike & str)Else, default to assuming that std::data will yield a C string.
Defined at line 43 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/message.h
-
template <typename Actual, typename Expected, typename CompareOp, typename PrintActual, typename PrintExpected, typename DescGenerator>bool EvaluateStatusCondition (const Actual & actual, const Expected & expected, const char * actual_symbol, const char * expected_symbol, const zxtest::SourceLocation & location, bool is_fatal, const DescGenerator & description, const CompareOp & compare, const PrintActual & print_actual, const PrintExpected & print_expected)Evaluates a condition and returns true if it is satisfied. If it is not, will create an assertion
and notify the global runner instance.
Defined at line 49 of file ../../zircon/system/ulib/zxtest/include/zxtest/cpp/internal.h
-
void operator& (Tag , const StreamableBase & )Lower precedence operator that returns void, such that the following
expressions are valid in functions that return void:
return Tag{}
&
StreamableBase{};
return Tag{}
&
StreamableBase{}
<
<
"Stream operators are higher precedence than &";
Defined at line 51 of file ../../zircon/system/ulib/zxtest/include/zxtest/cpp/streams_helper.h
-
template <typename Stringlike>std::enable_if_t<std::is_convertible_v<Stringlike, nullptr_t>, std::string_view> ToStringView (const Stringlike & str)Defined at line 51 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/message.h
-
fbl::String PrintVolatile (const volatile void * ptr, size_t size)It's not necessarily safe to do pointer arithmetic on volatiles because of alignment issues, so
just print whether the pointer is nullptr/empty/normal.
Defined at line 53 of file ../../zircon/system/ulib/zxtest/message.cc
-
template <typename Actual, typename Expected, typename CompareOp, typename PrintActual, typename PrintExpected, typename DescGenerator>bool EvaluateCondition (const Actual & actual, const Expected & expected, const char * actual_symbol, const char * expected_symbol, const zxtest::SourceLocation & location, bool is_fatal, const DescGenerator & description, const CompareOp & compare, const PrintActual & print_actual, const PrintExpected & print_expected)Evaluates a condition and returns true if it is satisfied. If it is not, will create an assertion
and notify the global runner instance.
Defined at line 79 of file ../../zircon/system/ulib/zxtest/include/zxtest/cpp/internal.h
-
template <typename... A, typename B>auto Combine (::zxtest::internal::ValueProvider<std::tuple<A...>> a, ::zxtest::internal::ValueProvider<B> b)Internal combine handler.
See above for a note about why there are internal handlers.
Defined at line 83 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/values.h
-
template <typename T>const T * ToPointer (const T * value)Force Array to become a pointer, has no effect in pointers.
Defined at line 98 of file ../../zircon/system/ulib/zxtest/include/zxtest/cpp/internal.h
-
template <typename... A, typename... B>auto Combine (::zxtest::internal::ValueProvider<std::tuple<A...>> a, ::zxtest::internal::ValueProvider<std::tuple<B...>> b)Internal combine handler.
See above for a note about why there are internal handlers.
Defined at line 103 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/values.h
-
template <typename A, typename B, typename... ProviderType>auto Combine (::zxtest::internal::ValueProvider<A> a, ::zxtest::internal::ValueProvider<B> b, ProviderType &&... providers)Internal combine handler.
See above for a note about why there are internal handlers.
Defined at line 123 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/values.h
-
template <typename Actualtypename Expectedtypename CompareOptypename PrintActualtypename PrintExpected>std::unique_ptr<StreamableAssertion> EvaluateConditionForStream (const Actual & actualconst Expected & expectedconst char * actual_symbolconst char * expected_symbolconst zxtest::SourceLocation & locationbool is_fatalconst CompareOp & compareconst PrintActual & print_actualconst PrintExpected & print_expected)Evaluates a condition and returns true if it is satisfied. If it is not, will create an assertion
and notify the global runner instance.
Defined at line 123 of file ../../zircon/system/ulib/zxtest/include/zxtest/cpp/streams_helper.h