Commit 6cd61c6
authored
test: cover git cache edge cases without network (#277)
* test: cover git cache edge cases without network
Closes #267
Empty cache dir, corrupt metadata, invalid refresh-hours env, and
refresh-mode decision matrix for CacheMeta.
* test: address CodeRabbit feedback on git cache edge cases
Cover empty existing cache dirs separately from missing paths, narrow
corrupt-JSON exceptions to JSONDecodeError/CpaError, and assert fresh
metadata does not refresh under stale mode.
---------
Co-authored-by: AshSgDe29071999 <ashsgde29071999@users.noreply.github.com>1 parent bba4586 commit 6cd61c6
1 file changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
0 commit comments