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:536–541  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

534
535 #[test]
536 fn test_new_with_empty() {
537 let cmd = New::with_name("orphan-view").with_empty(true);
538 assert_eq!(cmd.name, Some("orphan-view".to_string()));
539 assert!(cmd.empty);
540 assert!(!cmd.switch);
541 }
542
543 #[test]
544 fn test_default() {

Callers

nothing calls this directly

Calls 1

with_emptyMethod · 0.80

Tested by

no test coverage detected