MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / content_length

Function content_length

atomic-cli/tests/clone_sidecar_integration_test.rs:179–187  ·  view source on GitHub ↗
(head: &str)

Source from the content-addressed store, hash-verified

177}
178
179fn content_length(head: &str) -> Option<usize> {
180 for line in head.lines() {
181 let lower = line.to_ascii_lowercase();
182 if let Some(v) = lower.strip_prefix("content-length:") {
183 return v.trim().parse().ok();
184 }
185 }
186 None
187}
188
189#[test]
190fn fresh_clone_ingests_provenance_and_attestations() {

Callers 1

spawn_sync_serverFunction · 0.85

Calls 2

linesMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected