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

Function test_status_options_builder

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

Source from the content-addressed store, hash-verified

1218
1219 #[test]
1220 fn test_status_options_builder() {
1221 let opts = StatusOptions::default()
1222 .with_untracked(false)
1223 .with_ignored(true)
1224 .filter_path(PathBuf::from("src"));
1225
1226 assert!(!opts.include_untracked);
1227 assert!(opts.include_ignored);
1228 assert_eq!(opts.path_filters.len(), 1);
1229 }
1230
1231 // Helper Function Tests
1232

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