Commit dfb3927
committed
fix: track and cleanup hypothesis test temp directories
- Modified generate_hypothesis_tests() to return the temp directory Path
- Added hypothesis_tests_dir tracking in FunctionOptimizer
- Extended cleanup_generated_files() to remove hypothesis test directories
- Added hypothesis_tests_dirs list in Optimizer to track all directories
- Updated cleanup_temporary_paths() to cleanup hypothesis test directories
- Ensures cleanup on success, errors, and KeyboardInterrupt
- Changed temp dir prefix to 'codeflash_hypothesis_' for clarity1 parent b7faf81 commit dfb3927
File tree
3 files changed
+31
-9
lines changed- codeflash
- optimization
- verification
3 files changed
+31
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| |||
1147 | 1148 | | |
1148 | 1149 | | |
1149 | 1150 | | |
1150 | | - | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
1151 | 1156 | | |
1152 | 1157 | | |
1153 | 1158 | | |
| |||
1201 | 1206 | | |
1202 | 1207 | | |
1203 | 1208 | | |
1204 | | - | |
| 1209 | + | |
| 1210 | + | |
1205 | 1211 | | |
1206 | 1212 | | |
1207 | 1213 | | |
| |||
2051 | 2057 | | |
2052 | 2058 | | |
2053 | 2059 | | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
2054 | 2064 | | |
| 2065 | + | |
2055 | 2066 | | |
2056 | 2067 | | |
2057 | 2068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
340 | 344 | | |
341 | 345 | | |
342 | 346 | | |
| |||
430 | 434 | | |
431 | 435 | | |
432 | 436 | | |
433 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
434 | 443 | | |
435 | 444 | | |
436 | 445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
| |||
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
229 | | - | |
| 231 | + | |
230 | 232 | | |
231 | 233 | | |
232 | 234 | | |
233 | | - | |
| 235 | + | |
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
| |||
269 | 271 | | |
270 | 272 | | |
271 | 273 | | |
272 | | - | |
| 274 | + | |
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
| |||
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
281 | | - | |
| 283 | + | |
0 commit comments