KhronosGroup / KhronosGroup/SPIRV-Tools

spirv-fuzz: Add tests for fuzzerutil::Add* functions

Open
#4,178 0 comments 0 reactions 0 assignees View on GitHub
component:fuzzer
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.