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

Function empty_pack_is_a_noop

atomic-cli/src/commands/sidecars.rs:307–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305
306 #[test]
307 fn empty_pack_is_a_noop() {
308 let dir = tempfile::tempdir().unwrap();
309 let repo = Repository::init(dir.path()).unwrap();
310 let stats = import_sidecars(&repo, &SyncPack::default());
311 assert_eq!(stats, SidecarStats::default());
312 }
313
314 #[test]
315 fn import_before_insertion_registers_rev_deps() {

Callers

nothing calls this directly

Calls 4

import_sidecarsFunction · 0.70
initFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected