()
| 126 | |
| 127 | #[test] |
| 128 | fn test_options_builder_chain() { |
| 129 | let opts = RecordOptions::new() |
| 130 | .paths(vec!["src/"]) |
| 131 | .with_all(false) |
| 132 | .with_algorithm(Algorithm::Patience) |
| 133 | .with_max_file_size(1024 * 1024) |
| 134 | .with_skip_binary(true) |
| 135 | .message("Test change") |
| 136 | .view("feature"); |
| 137 | |
| 138 | assert_eq!(opts.get_paths().len(), 1); |
| 139 | assert!(!opts.all()); |
| 140 | assert_eq!(opts.algorithm(), Algorithm::Patience); |
| 141 | assert!(opts.skip_binary()); |
| 142 | assert_eq!(opts.get_message(), Some("Test change")); |
| 143 | assert_eq!(opts.get_view(), Some("feature")); |
| 144 | } |
| 145 | |
| 146 | #[test] |
| 147 | fn test_options_should_include_all() { |
nothing calls this directly
no test coverage detected