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

Method new

atomic-cli/src/commands/change/tests.rs:559–567  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

557
558 impl TestGuard {
559 fn new() -> Self {
560 let original = env::current_dir().unwrap();
561 let temp = TempDir::new().unwrap();
562 env::set_current_dir(temp.path()).unwrap();
563 Self {
564 original_dir: original,
565 _temp_dir: temp,
566 }
567 }
568 }
569
570 impl Drop for TestGuard {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected