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

Method new

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

Source from the content-addressed store, hash-verified

669
670 impl TestGuard {
671 fn new() -> Self {
672 let original = env::current_dir().unwrap();
673 let temp = TempDir::new().unwrap();
674 env::set_current_dir(temp.path()).unwrap();
675 Self {
676 original_dir: original,
677 _temp_dir: temp,
678 }
679 }
680 }
681
682 impl Drop for TestGuard {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected