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

Function test_split_builder_chain

atomic-cli/src/commands/split.rs:272–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270
271 #[test]
272 fn test_split_builder_chain() {
273 let cmd = Split::new("hotfix")
274 .with_source("release-1.0")
275 .with_switch(true);
276
277 assert_eq!(cmd.name, "hotfix");
278 assert_eq!(cmd.source, Some("release-1.0".to_string()));
279 assert!(cmd.switch);
280 }
281
282 // Validation Tests
283

Callers

nothing calls this directly

Calls 2

with_sourceMethod · 0.80
with_switchMethod · 0.45

Tested by

no test coverage detected