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

Function content_length

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

Source from the content-addressed store, hash-verified

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