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

Function parse_version

src/cli/shared.rs:195–197  ·  view source on GitHub ↗

Parser for go-runner version that validates semver format

(s: &str)

Source from the content-addressed store, hash-verified

193
194/// Parser for go-runner version that validates semver format
195fn parse_version(s: &str) -> Result<semver::Version, String> {
196 semver::Version::parse(s).map_err(|e| format!("Invalid semantic version: {e}"))
197}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected