MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / parses_version_with_prerelease

Function parses_version_with_prerelease

src/binary_installer/versions.rs:55–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53
54 #[test]
55 fn parses_version_with_prerelease() {
56 let output = "codspeed-exec-harness 4.4.2-alpha.2";
57 let version = parse_from_output(output).unwrap();
58 assert_eq!(version.major, 4);
59 assert_eq!(version.minor, 4);
60 assert_eq!(version.patch, 2);
61 assert_eq!(version.pre.as_str(), "alpha.2");
62 }
63 }
64
65 mod is_version_compatible {

Callers

nothing calls this directly

Calls 1

parse_from_outputFunction · 0.85

Tested by

no test coverage detected