()
| 178 | |
| 179 | #[test] |
| 180 | fn test_record_builder_chain() { |
| 181 | let record = Record::new() |
| 182 | .with_message("Test") |
| 183 | .with_all(true) |
| 184 | .with_files(vec!["src/main.rs"]) |
| 185 | .with_author("Bob") |
| 186 | .with_algorithm("patience") |
| 187 | .with_dry_run(true) |
| 188 | .with_skip_binary(true) |
| 189 | .with_max_size(1000); |
| 190 | |
| 191 | assert_eq!(record.message, Some("Test".to_string())); |
| 192 | assert!(record.all); |
| 193 | assert_eq!(record.files.len(), 1); |
| 194 | assert_eq!(record.author, Some("Bob".to_string())); |
| 195 | assert_eq!(record.algorithm, "patience"); |
| 196 | assert!(record.dry_run); |
| 197 | assert!(record.skip_binary); |
| 198 | assert_eq!(record.max_size, Some(1000)); |
| 199 | } |
| 200 | |
| 201 | // Algorithm Parsing Tests |
| 202 |
nothing calls this directly
no test coverage detected