Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
impl 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_hash
Function · 0.80
test_get_local_metadata_hash
Function · 0.80
upload
Function · 0.80
Calls
no outgoing calls
Tested by
2
test_get_metadata_hash
Function · 0.64
test_get_local_metadata_hash
Function · 0.64