Skip to content

test: coverage wave 3 — hlsl 70.6%, wgsl/lower 65.3%, msl 64.2%#73

Merged
kolkov merged 3 commits into
mainfrom
test/coverage-wave3
May 7, 2026
Merged

test: coverage wave 3 — hlsl 70.6%, wgsl/lower 65.3%, msl 64.2%#73
kolkov merged 3 commits into
mainfrom
test/coverage-wave3

Conversation

@kolkov

@kolkov kolkov commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Coverage wave 3 — focused on real value, not number inflation.

Package Before After
hlsl/codegen 62.3% 70.6%
wgsl/lower 54.5% 65.3%
msl/codegen 56.7% 64.2%

Test quality

  • Error paths: invalid WGSL produces clear errors
  • Constant evaluation: fold results verified with known values
  • Storage buffer decomposition: scalar/vector/matrix/struct Store chains
  • External texture decomposition paths
  • All atomic operations tested
  • Type inference edge cases

Test plan

  • All tests pass
  • golangci-lint — clean (on v0.17.12 base)
  • CI green

kolkov added 3 commits May 7, 2026 22:38
…mage queries

62 tests: writeStorageStore decomposition (scalar/vector/matrix/struct),
typesMatch (16 cases), external texture decomposition, helper functions
(mod/div/abs/neg/modf/frexp/f2i32), inferExpressionType/inferPointeeType,
image query wrappers, struct constructors, binding array declarations.
…eval, type inference

5 test files, 4595 LOC. float32ToHalf/halfToFloat32, foldBinaryLiterals
(22 cases), const_assert operators, forward references, constFoldSelect/As,
foldFirstTrailingBit/LeadingBit/countOneBits/reverseBits/quantizeToF16,
inferGlobalVarType, evalConstantIntExpr, lowerBuiltinConstructor,
lowerAtomicCall, pack/unpack. Error paths: const without init, unknown
types, const_assert failure.
…nstants, vertex pulling

4 test files, 4218 LOC. Atomic ops (all 10), signed int polyfills,
helper function generation, image load/store/sample (all variants),
RZSW/Restrict bounds checking, pipeline constants processing,
vertex pulling (5 attribute formats), expression/statement paths.
@codecov

codecov Bot commented May 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kolkov kolkov merged commit cc913fc into main May 7, 2026
11 checks passed
@kolkov kolkov deleted the test/coverage-wave3 branch May 8, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant