MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / test_version

Function test_version

src/environmentd/tests/cli.rs:24–37  ·  view source on GitHub ↗

unsupported operation: can't call foreign function `pipe2` on OS `linux`

()

Source from the content-addressed store, hash-verified

22#[mz_ore::test]
23#[cfg_attr(miri, ignore)] // unsupported operation: can't call foreign function `pipe2` on OS `linux`
24fn test_version() {
25 // We don't make assertions about the build SHA because caching in CI can
26 // cause the test binary and `environmentd` to have different embedded SHAs.
27 let expected_version = mz_environmentd::BUILD_INFO.version;
28 assert!(!expected_version.is_empty());
29 cmd()
30 .arg("-V")
31 .assert()
32 .success()
33 .stdout(predicates::str::starts_with(format!(
34 "environmentd v{}",
35 expected_version
36 )));
37}

Callers

nothing calls this directly

Calls 3

successMethod · 0.80
cmdFunction · 0.70
starts_withFunction · 0.50

Tested by

no test coverage detected