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

Function test_builder_prefix

atomic-core/src/output/repo/options.rs:437–446  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

435
436 #[test]
437 fn test_builder_prefix() {
438 let opts = OutputOptions::new().with_prefix("src/");
439 assert_eq!(opts.prefix, "src/");
440
441 let opts = OutputOptions::new().with_prefix("");
442 assert!(opts.prefix.is_empty());
443
444 let opts = OutputOptions::new().with_prefix("deeply/nested/path/");
445 assert_eq!(opts.prefix, "deeply/nested/path/");
446 }
447
448 #[test]
449 fn test_builder_include_deleted() {

Callers

nothing calls this directly

Calls 1

with_prefixMethod · 0.45

Tested by

no test coverage detected