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

Function full_message_maps_verbatim

libatomic/src/daemon/convert.rs:170–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168
169 #[test]
170 fn full_message_maps_verbatim() {
171 let wire = pb::StatusOptions {
172 include_untracked: Some(false),
173 include_ignored: Some(true),
174 respect_ignore_files: Some(false),
175 hash_contents: Some(false),
176 path_filters: vec!["a".to_string(), "b".to_string()],
177 };
178 let domain = status_options_domain(Some(wire));
179 assert!(!domain.include_untracked);
180 assert!(domain.include_ignored);
181 assert!(!domain.respect_ignore_files);
182 assert!(!domain.hash_contents);
183 assert_eq!(
184 domain.path_filters,
185 vec![std::path::PathBuf::from("a"), std::path::PathBuf::from("b")]
186 );
187 }
188}

Callers

nothing calls this directly

Calls 1

status_options_domainFunction · 0.85

Tested by

no test coverage detected