Commit 8cd8228
committed
test: Update fuzzer tests to use new create_finding signature
Fixed failing unit tests that were using the old create_finding() signature.
The native findings format refactoring added two new required parameters:
- rule_id: Identifier for the rule/pattern that detected the finding
- found_by: FoundBy object with module, tool, and detection type info
Updated tests:
- test_cargo_fuzzer.py::test_create_finding_from_crash
- test_atheris_fuzzer.py::test_create_crash_finding
Both tests now properly instantiate FoundBy objects with appropriate
fuzzer metadata (module name, tool name, version, and type="fuzzer").1 parent 9488ccf commit 8cd8228
File tree
2 files changed
+18
-0
lines changed- backend/tests/unit/test_modules
2 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
162 | 164 | | |
| 165 | + | |
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
167 | 176 | | |
168 | 177 | | |
169 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
169 | 178 | | |
170 | 179 | | |
171 | 180 | | |
| |||
0 commit comments