class Assertion
Defined at line 18 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
Helper class for handling the error information, plus some logic for printing the correct error
messages.
Public Methods
void Assertion (std::string_viewdesc,std::string_viewexpected,std::string_viewexpected_eval,std::string_viewactual,std::string_viewactual_eval,const SourceLocation &location,boolis_fatal,std::span<zxtest::Message *>traces)
Defined at line 9 of file ../../zircon/system/ulib/zxtest/assertion.cc
void Assertion ()
Defined at line 20 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
void Assertion (std::string_viewdesc,const SourceLocation &location,boolis_fatal,std::span<zxtest::Message *>traces)
Defined at line 22 of file ../../zircon/system/ulib/zxtest/assertion.cc
void Assertion (Assertion && )
Defined at line 26 of file ../../zircon/system/ulib/zxtest/assertion.cc
void Assertion (const Assertion & )
Defined at line 26 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
void ~Assertion ()
Defined at line 27 of file ../../zircon/system/ulib/zxtest/assertion.cc
Assertion & operator= (const Assertion & )
Defined at line 30 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
Assertion & operator= (Assertion && )
Defined at line 31 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
const SourceLocation & location ()
Returns the position at which the assertion happened.
Defined at line 34 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
const std::string & description ()
Returns a general description of the asserted condition.
Defined at line 37 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
const std::string & expected ()
Returns the expected value of an equality. For example in ASSERT_EQ(actual, expected) returns
the text representation of expected, as it was captured on compile time.
Defined at line 41 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
const std::string & actual ()
Returns the expected value of an equality. For example in ASSERT_EQ(actual, expected) returns
the text representation of actual, as it was captured on compile time.
Defined at line 45 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
const std::string & expected_eval ()
Returns the expected value of an equality. For example in ASSERT_EQ(actual, expected) returns
the text representation of expected as it is evaluated at runtime..
Defined at line 49 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
const std::string & actual_eval ()
Returns the expected value of an equality. For example in ASSERT_EQ(actual, expected) returns
the text representation of actual, as it was captured on runtime.
Defined at line 53 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
bool is_fatal ()
Returns true if this assertion is fatal, and test should stop execution. Essentially if the
asserting macro is ASSERT_* or EXPECT_*.
Defined at line 57 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
bool has_values ()
Returns true if this assertions is value based or manually generated.
Defined at line 60 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h
std::span<zxtest::Message *> scoped_traces ()
Defined at line 62 of file ../../zircon/system/ulib/zxtest/include/zxtest/base/assertion.h