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

Function test_hex_hash_invalid_chars

atomic-remote/src/streaming/tests.rs:700–704  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

698
699#[test]
700fn test_hex_hash_invalid_chars() {
701 let json = r#"{"index":0,"hash":"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz","compressed_size":0,"uncompressed_size":0}"#;
702 let result: Result<ChunkManifestEntry, _> = serde_json::from_str(json);
703 assert!(result.is_err());
704}
705
706// ── format_size ────────────────────────────────────────────────
707

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected