()
| 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 | } |
nothing calls this directly
no test coverage detected