Commit 0cd5891
🛡️ Sentry: [test coverage improvement] (#745)
* 🛡️ Sentry: [test coverage improvement]
💡 What: Fixed a bug where `take_while` was dropping the final required listing for calculating list totals. Implemented a deterministic test suite for `get_cheapest_listing` inside `list_summary.rs`.
🎯 Why: A previous bug pattern was identified where iterators using `take_while` to accumulate quantity check incorrectly *after* the quantity was accumulated. This meant that the final listing that fulfills the quantity requirement gets incorrectly filtered out. This directly improves the UI presentation of missing quantities on lists.
📊 Impact: Covered `get_cheapest_listing` logic inside `ultros-app/src/components/list/list_summary.rs`.
🔬 Verification: Run `cargo test -p ultros-app components::list::list_summary`
Co-authored-by: akarras <1495237+akarras@users.noreply.github.com>
* 🛡️ Sentry: [test coverage improvement]
💡 What: Fixed a bug where `take_while` was dropping the final required listing for calculating list totals. Implemented a deterministic test suite for `get_cheapest_listing` inside `list_summary.rs`.
🎯 Why: A previous bug pattern was identified where iterators using `take_while` to accumulate quantity check incorrectly *after* the quantity was accumulated. This meant that the final listing that fulfills the quantity requirement gets incorrectly filtered out. This directly improves the UI presentation of missing quantities on lists.
📊 Impact: Covered `get_cheapest_listing` logic inside `ultros-app/src/components/list/list_summary.rs`.
🔬 Verification: Run `cargo test -p ultros-app components::list::list_summary`
Co-authored-by: akarras <1495237+akarras@users.noreply.github.com>
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent 771d889 commit 0cd5891
2 files changed
Lines changed: 54 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
Lines changed: 53 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
0 commit comments