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