KhronosGroup / KhronosGroup/SPIRV-Tools
spirv-fuzz: Add tests for fuzzerutil::Add* functions
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 709
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 28
Description
There are a bunch of `Add*` functions in the `fuzzerutil` namespace (e.g. `AddIntegerType`, `AddFloatType`, `AddFunctionType`, `AddVariableIdToEntryPointInterfaces`, `AddGlobalVariable`, `AddLocalVariable`, `AddVectorType`, `AddStructType`). They are used by transformations to add various instructions to the module. It would be good to provide unittests for them.
Contributor guide
Research direction
Start by locating the fuzzerutil namespace definitions and any existing unittest conventions. Add unit coverage for the listed Add* functions, including type, interface, global-variable, and local-variable helpers, and verify that the tests exercise the instructions they add to a module.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- testing-qa, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100