Mojo struct
TestResult
struct TestResult
A test result code.
Implemented traits
AnyType
,
Copyable
,
EqualityComparable
,
ImplicitlyCopyable
,
Movable
,
UnknownDestructibility
,
Writable
Aliases
__copyinit__is_trivial
alias __copyinit__is_trivial = True
__del__is_trivial
alias __del__is_trivial = True
__moveinit__is_trivial
alias __moveinit__is_trivial = True
FAIL
alias FAIL = TestResult(1)
The test failed.
PASS
alias PASS = TestResult(0)
The test passed.
SKIP
alias SKIP = TestResult(2)
The test was skipped.
Methods
__eq__
write_to
write_to(self, mut writer: T)
Write the result code to the writer.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!