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

Function test_status_options_builder

atomic-repository/src/status.rs:1496–1505  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1494
1495 #[test]
1496 fn test_status_options_builder() {
1497 let opts = StatusOptions::default()
1498 .with_untracked(false)
1499 .with_ignored(true)
1500 .filter_path(PathBuf::from("src"));
1501
1502 assert!(!opts.include_untracked);
1503 assert!(opts.include_ignored);
1504 assert_eq!(opts.path_filters.len(), 1);
1505 }
1506
1507 // Helper Function Tests
1508

Callers

nothing calls this directly

Calls 3

with_ignoredMethod · 0.80
with_untrackedMethod · 0.80
filter_pathMethod · 0.45

Tested by

no test coverage detected