()
| 256 | |
| 257 | #[test] |
| 258 | fn test_log_builder_chain() { |
| 259 | let log = Log::new() |
| 260 | .with_count(20) |
| 261 | .with_view("release") |
| 262 | .with_tags_only(true) |
| 263 | .with_path("docs/") |
| 264 | .with_format(LogFormat::Json) |
| 265 | .with_reverse(true) |
| 266 | .with_from(50) |
| 267 | .with_full_hash(true); |
| 268 | |
| 269 | assert_eq!(log.count, Some(20)); |
| 270 | assert_eq!(log.view, Some("release".to_string())); |
| 271 | assert!(log.tags_only); |
| 272 | assert_eq!(log.path, Some("docs/".to_string())); |
| 273 | assert_eq!(log.format, LogFormat::Json); |
| 274 | assert!(log.reverse); |
| 275 | assert_eq!(log.from, Some(50)); |
| 276 | assert!(log.full_hash); |
| 277 | } |
| 278 | |
| 279 | #[test] |
| 280 | fn test_log_get_hash_length_default() { |
nothing calls this directly
no test coverage detected