Repository navigation
Commit 2bb8fca
test(app): pin display withholding parity with MEASURED_POWER_METRIC_KEYS | 测试:前端展示层扣留逻辑与 MEASURED_POWER_METRIC_KEYS 保持一致
Drive rowToAggDataEntry with a power_valid=0 row carrying every key in
the shared constant and assert each corresponding output field (and
workers) comes back undefined — adding a key to the constant that the
frontend forgets to withhold now fails this test. The reverse direction
(frontend withholding a key missing from the constant) stays
hand-audited, as noted in the test comment.
以携带共享常量中全部键的 power_valid=0 行驱动 rowToAggDataEntry,断言
对应输出字段(含 workers)均为 undefined —— 若向常量新增了前端未扣留的
键,此测试即失败。反向情况(前端扣留了常量之外的键)仍由人工审计,测试
注释中已注明。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 46b85cd commit 2bb8fca
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
427 | 450 | | |
428 | 451 | | |
429 | 452 | | |
| |||
0 commit comments