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

Function test_split_builder_chain

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

with_sourceMethod · 0.80
with_switchMethod · 0.45

Tested by

no test coverage detected