()
| 1114 | |
| 1115 | #[test] |
| 1116 | fn test_result_new() { |
| 1117 | let result = DetectResult::new(); |
| 1118 | |
| 1119 | assert!(result.changes.is_empty()); |
| 1120 | assert_eq!(result.files_checked, 0); |
| 1121 | assert_eq!(result.files_skipped, 0); |
| 1122 | assert_eq!(result.added_count, 0); |
| 1123 | assert_eq!(result.modified_count, 0); |
| 1124 | assert_eq!(result.deleted_count, 0); |
| 1125 | assert!(!result.has_changes()); |
| 1126 | assert!(!result.has_errors()); |
| 1127 | } |
| 1128 | |
| 1129 | #[test] |
| 1130 | fn test_result_add_change_added() { |
nothing calls this directly
no outgoing calls
no test coverage detected