use-go-test 0.0.1

Go testing metadata primitives for RustUse
Documentation
  • Coverage
  • 44.19%
    19 out of 43 items documented1 out of 23 items with examples
  • Size
  • Source code size: 13.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-go
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-go-test

Go testing metadata primitives for RustUse.

Experimental

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

Example

use use_go_test::{GoTestFileName, GoTestKind, GoTestName};

let test = GoTestName::new("TestHandler")?;
let file = GoTestFileName::new("handler_test.go")?;

assert_eq!(test.as_str(), "TestHandler");
assert_eq!(file.as_str(), "handler_test.go");
assert_eq!(GoTestKind::Test.to_string(), "test");
# Ok::<(), use_go_test::GoTestError>(())

Scope

  • Go test, benchmark, fuzz, and example name metadata.
  • _test.go file-name metadata.
  • Test kind, outcome, and package-mode labels.

Non-goals

  • Running go test.
  • Parsing Go test files.
  • Interpreting Go test output.

License

Licensed under either Apache-2.0 or MIT.