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

Method new

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

Source from the content-addressed store, hash-verified

526
527 impl TestGuard {
528 fn new() -> Self {
529 let original = env::current_dir().unwrap();
530 let temp = TempDir::new().unwrap();
531 env::set_current_dir(temp.path()).unwrap();
532 Self {
533 original_dir: original,
534 _temp_dir: temp,
535 }
536 }
537 }
538
539 impl Drop for TestGuard {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected