Commit 8aa3d3a
⚡ Bolt: add test coverage for Context map lookups to resolve Codecov failure
💡 What: Added a `tests` module directly inside `src/context.rs` to comprehensively test `get`, `get_func`, `get_variable`, and `value` methods against existent and non-existent keys.
🎯 Why: The previous PR decreased test coverage below the CI requirement because the optimized `Context` lookups contained match arms that were not executed during the existing test suite, causing Codecov to fail the CI build.
📊 Impact: Increases Codecov diff hit to 100%, resolving the CI failure.
🔬 Measurement: Verify the improvement by running `cargo test`.
Co-authored-by: ashyanSpada <22587148+ashyanSpada@users.noreply.github.com>1 parent 388c85d commit 8aa3d3a
1 file changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
0 commit comments