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

Function test_log_run_empty_repository

atomic-cli/src/commands/log/tests.rs:707–718  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

705 #[test]
706 #[serial]
707 fn test_log_run_empty_repository() {
708 let _guard = TestGuard::new();
709
710 // Initialize empty repository
711 drop(Repository::init(".").unwrap());
712
713 let log = Log::new();
714 let result = log.run();
715
716 // The initializer no longer holds the writer lock during the query.
717 assert!(result.is_ok(), "{result:?}");
718 }
719
720 #[test]
721 #[serial]

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected