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

Method get_hash

src/upload/upload_metadata.rs:6–9  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

4
5impl UploadMetadata {
6 pub fn get_hash(&self) -> String {
7 let upload_metadata_string = json!(&self).to_string();
8 sha256::digest(upload_metadata_string)
9 }
10}
11
12#[cfg(test)]

Callers 3

test_get_metadata_hashFunction · 0.80
uploadFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_get_metadata_hashFunction · 0.64