Skip to content

Expand tests to cover reflection APIs and user attributes#17

Merged
shivaduke28 merged 2 commits into
mainfrom
feature/expand-tests
Mar 15, 2026
Merged

Expand tests to cover reflection APIs and user attributes#17
shivaduke28 merged 2 commits into
mainfrom
feature/expand-tests

Conversation

@shivaduke28
Copy link
Copy Markdown
Owner

Summary

  • Add 11 new tests (13 total) covering all major SwiftSlang APIs
  • TypeReflection: scalar/vector/matrix type introspection
  • Struct reflection: field traversal via TypeReflection and TypeLayout
  • TypeLayout: stride, alignment, field byte offsets
  • User attributes: [__AttributeUsage(_AttributeTargets.Var)] style attributes on top-level uniforms and struct fields
  • Default values: float brightness = 0.75 style struct field defaults
  • Resource types: Texture2D shape/access, SamplerState category
  • Entry points: compute numthreads, multiple entry point discovery

Closes #16

Test plan

  • xcodebuild test — 13 tests, 0 failures

🤖 Generated with Claude Code

shivaduke28 and others added 2 commits March 16, 2026 01:27
Add 11 new tests covering:
- TypeReflection: scalar, vector, matrix types
- Struct reflection: field count, field types, field names
- TypeLayout: stride, alignment, field offsets
- User attributes: top-level and struct field attributes
- Default values: float and int struct field defaults
- Resource types: Texture2D and SamplerState parameters
- Entry points: compute thread group size, multiple entry points

Closes #16

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Document Metal target specifics, user attribute syntax,
and object lifetime requirements discovered during testing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@shivaduke28 shivaduke28 merged commit d7935e8 into main Mar 15, 2026
1 check passed
@shivaduke28 shivaduke28 deleted the feature/expand-tests branch March 15, 2026 16:33
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