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

Method new

crates/runner-shared/src/metadata.rs:157–163  ·  view source on GitHub ↗
(integration: (String, String), artifacts: ModuleArtifacts)

Source from the content-addressed store, hash-verified

155 pub const CURRENT_VERSION: u64 = 1;
156
157 pub fn new(integration: (String, String), artifacts: ModuleArtifacts) -> Self {
158 Self {
159 version: Self::CURRENT_VERSION,
160 integration,
161 artifacts,
162 }
163 }
164
165 pub fn from_reader<R: std::io::Read>(reader: R) -> anyhow::Result<Self> {
166 serde_json::from_reader(reader).context("Could not parse memtrack metadata from JSON")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected