Crate mycotest

Source
Expand description

Shared defs between the kernel and the test runner.

This is in its own crate mainly so the constants are the same and I can’t have the kernel write the wrong strings (which I did lol).

Re-exports§

pub use report::Failure;

Modules§

assert
Non-panicking assertions.
report
runnerrunner

Macros§

assert
Asserts that a boolean expression is true.
assert_eq
Asserts that two values are equal.
assert_gt
Asserts that the left value is greater than the right value.
assert_gte
Asserts that the left value is greater than or equal to the right value.
assert_lt
Asserts that the left value is less than the right value.
assert_lte
Asserts that the left value is less than or equal to the right value.
assert_ne
Asserts that two values are not equal.
decl_test
Declare a new test, sort-of like the #[test] attribute.
fail
Returns a Failed error with the provided expression at the current source code location.

Structs§

Test
Test descriptor created by decl_test!. Describes and allows running an individual test.
TestName

Traits§

TestReport
Type which may be used as a test return type.

Type Aliases§

Outcome
TestResult