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

Function test_new_with_empty

atomic-cli/src/commands/view/new.rs:614–619  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

612
613 #[test]
614 fn test_new_with_empty() {
615 let cmd = New::with_name("orphan-view").with_empty(true);
616 assert_eq!(cmd.name, Some("orphan-view".to_string()));
617 assert!(cmd.empty);
618 assert!(!cmd.switch);
619 }
620
621 #[test]
622 fn test_default() {

Callers

nothing calls this directly

Calls 1

with_emptyMethod · 0.80

Tested by

no test coverage detected