use-test-case 0.1.0

Named test case metadata for RustUse testing vocabulary.
Documentation
  • Coverage
  • 17.65%
    3 out of 17 items documented1 out of 12 items with examples
  • Size
  • Source code size: 5.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 404.6 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s 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-case

Named test case metadata for RustUse testing vocabulary.

Experimental

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

Example

use use_test_case::{TestCase, TestCaseData};

let case = TestCase::with_description("trim", "trims surrounding whitespace");
let data = TestCaseData::new("trim spaces", " value ", "value");

assert_eq!(case.name(), "trim");
assert_eq!(case.description(), Some("trims surrounding whitespace"));
assert_eq!(data.input(), &" value ");

Scope

  • Named case metadata.
  • Optional descriptions.
  • Generic input/expected case data.

Non-goals

  • Test discovery, execution, parameter expansion, or fixture setup.

License

Licensed under either Apache-2.0 or MIT.