Commit c7226fe
test: correct mislabelled test in src/audit/analyzers/jobs.rs (#883)
timeline_to_jobs_parses_real_ado_shape claimed to validate "real ADO
shape" parsing but only asserted on jobs.len() and name ordering — both
already covered by the filtering and sorting tests. The test setup
provides complete job data (result, startTime, finishTime, id, parentId)
but none of those fields were verified, meaning regressions in field
parsing would go undetected.
Add assertions for status, result, duration, started_at, and finished_at
on the first parsed job, and add a comment clarifying that extra ADO
fields (id, parentId) are silently ignored.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 11baad9 commit c7226fe
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
| |||
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
282 | 292 | | |
283 | 293 | | |
0 commit comments