|
Ran
|
Jobs
1
|
Files
940
|
Run time
4min
|
Badge
README BADGES
|
push
github
[CHIA-4440] override list (#21478) ### Purpose: extend unit test to ensure `replace_str_to_bytes()` supports lists (like `PLOT_FILTER_V2_RELATIVE_HEIGHT`). This ensures overrides works for the v2 plot filter adjustment heights: ``` network_overrides: constants: testnet11: PLOT_FILTER_V2_RELATIVE_HEIGHT: - 1000 - 2000 - 3000 - 4000 - 5000 - 6000 - 7000 - 8000 - 9000 ``` <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Test-only change; no runtime or config behavior is modified. > > **Overview** > Adds unit tests for **`replace_str_to_bytes`** when overriding **`PLOT_FILTER_V2_RELATIVE_HEIGHT`** with a list of plain Python ints (as loaded from `config.yaml` `network_overrides`). One test asserts the override matches `ConsensusConstants.replace()` with `uint32` elements and preserves the int values; the other asserts a list of the wrong length raises **`ValueError`** with *expected a sequence of length 9*. > > This locks in behavior needed for per-network v2 plot filter height overrides (e.g. testnet11) without changing production code in this PR. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 4fbd085a8. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
19979 of 24940 branches covered (80.11%)
Branch coverage included in aggregate %.
8 of 8 new or added lines in 1 file covered. (100.0%)
23 existing lines in 8 files now uncovered.117507 of 127328 relevant lines covered (92.29%)
1.85 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 7 |
76.53
|
0.3% | chia/server/node_discovery.py |
| 3 |
80.15
|
-0.59% | chia/server/server.py |
| 3 |
70.03
|
-0.27% | chia/timelord/timelord.py |
| 3 |
84.7
|
-0.22% | chia/wallet/wallet_node.py |
| 2 |
86.05
|
-0.32% | chia/data_layer/data_layer.py |
| 2 |
84.33
|
0.11% | chia/full_node/full_node.py |
| 2 |
67.74
|
-1.94% | chia/timelord/timelord_launcher.py |
| 1 |
93.84
|
0.0% | chia/_tests/simulation/test_simulation.py |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 37792250256.1 | 1880 |
90.29
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|