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

Function content_length

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

Source from the content-addressed store, hash-verified

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

Callers 1

spawn_sync_serverFunction · 0.85

Calls 3

linesMethod · 0.45
okMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected