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

Function test_status_options_builder

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

Source from the content-addressed store, hash-verified

1236
1237 #[test]
1238 fn test_status_options_builder() {
1239 let opts = StatusOptions::default()
1240 .with_untracked(false)
1241 .with_ignored(true)
1242 .filter_path(PathBuf::from("src"));
1243
1244 assert!(!opts.include_untracked);
1245 assert!(opts.include_ignored);
1246 assert_eq!(opts.path_filters.len(), 1);
1247 }
1248
1249 // Helper Function Tests
1250

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