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

Function unknown_name_is_a_miss

atomic-cli/src/commands/intent/key_cache.rs:248–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246
247 #[test]
248 fn unknown_name_is_a_miss() {
249 let dir = scratch_dir("unknown");
250 let mut cache = PublicKeyCache::open_at(dir.as_path());
251 cache.put(SERVER, "lee", KEY, "active");
252 assert!(cache.get(SERVER, "other").is_none());
253 }
254
255 #[test]
256 fn expired_entries_are_not_served() {

Callers

nothing calls this directly

Calls 2

scratch_dirFunction · 0.85
putMethod · 0.45

Tested by

no test coverage detected