()
| 242 | |
| 243 | #[test] |
| 244 | fn default_args_test() { |
| 245 | let args = FfmpegArgs::default(); |
| 246 | |
| 247 | // check fields that have defaults |
| 248 | assert_eq!(args.fps_limit, 0); |
| 249 | assert_eq!(args.send_progress, true); |
| 250 | assert_eq!(args.report, false); |
| 251 | assert_eq!(args.bitrate, u32::default()); |
| 252 | assert_eq!(args.output_args, "-f null -"); |
| 253 | assert_eq!(args.is_vmaf, false); |
| 254 | assert_eq!(args.stats_period, 0.5); |
| 255 | |
| 256 | // check fields that do not |
| 257 | assert!(args.first_input.is_empty()); |
| 258 | assert!(args.second_input.is_empty()); |
| 259 | assert!(args.encoder.is_empty()); |
| 260 | assert!(args.encoder_args.is_empty()); |
| 261 | } |
| 262 | |
| 263 | #[test] |
| 264 | fn build_all_args_test() { |
nothing calls this directly
no outgoing calls
no test coverage detected