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

Function test_hex_hash_invalid_length

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

Source from the content-addressed store, hash-verified

691
692#[test]
693fn test_hex_hash_invalid_length() {
694 let json = r#"{"index":0,"hash":"aabb","compressed_size":0,"uncompressed_size":0}"#;
695 let result: Result<ChunkManifestEntry, _> = serde_json::from_str(json);
696 assert!(result.is_err());
697}
698
699#[test]
700fn test_hex_hash_invalid_chars() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected