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

Function test_split_builder_chain

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

Source from the content-addressed store, hash-verified

283
284 #[test]
285 fn test_split_builder_chain() {
286 let cmd = Split::new("hotfix")
287 .with_source("release-1.0")
288 .with_switch(true);
289
290 assert_eq!(cmd.name, "hotfix");
291 assert_eq!(cmd.source, Some("release-1.0".to_string()));
292 assert!(cmd.switch);
293 }
294
295 // Validation Tests
296

Callers

nothing calls this directly

Calls 2

with_sourceMethod · 0.80
with_switchMethod · 0.45

Tested by

no test coverage detected