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

Function test_status_options_builder

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

Source from the content-addressed store, hash-verified

1206
1207 #[test]
1208 fn test_status_options_builder() {
1209 let opts = StatusOptions::default()
1210 .with_untracked(false)
1211 .with_ignored(true)
1212 .filter_path(PathBuf::from("src"));
1213
1214 assert!(!opts.include_untracked);
1215 assert!(opts.include_ignored);
1216 assert_eq!(opts.path_filters.len(), 1);
1217 }
1218
1219 // Helper Function Tests
1220

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