use-test-assertion 0.1.0

Primitive assertion metadata for RustUse testing vocabulary.
Documentation
  • Coverage
  • 12.5%
    3 out of 24 items documented1 out of 7 items with examples
  • Size
  • Source code size: 4.92 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 387.63 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-test
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-test-assertion

Assertion metadata primitives for RustUse testing vocabulary.

Experimental

use-test-assertion is experimental while use-test remains below 0.3.0.

Example

use use_test_assertion::{TestAssertion, TestAssertionKind};

let assertion = TestAssertion::with_label(TestAssertionKind::Equal, "value matches");

assert_eq!(assertion.kind(), TestAssertionKind::Equal);
assert_eq!(assertion.label(), Some("value matches"));

Scope

  • Assertion kind labels.
  • Optional assertion labels for metadata and reporting.

Non-goals

  • Assertion macros, test execution, diffing, or panic behavior.

License

Licensed under either Apache-2.0 or MIT.