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

Function test_new_with_switch

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

Source from the content-addressed store, hash-verified

526
527 #[test]
528 fn test_new_with_switch() {
529 let cmd = New::with_name("feature-auth").with_switch(true);
530 assert_eq!(cmd.name, Some("feature-auth".to_string()));
531 assert!(cmd.switch);
532 assert!(!cmd.empty);
533 }
534
535 #[test]
536 fn test_new_with_empty() {

Callers

nothing calls this directly

Calls 1

with_switchMethod · 0.45

Tested by

no test coverage detected