Skip to content

implement edge case tests#10

Merged
k-kohey merged 2 commits intomainfrom
implement_edge_case_tests
Feb 26, 2026
Merged

implement edge case tests#10
k-kohey merged 2 commits intomainfrom
implement_edge_case_tests

Conversation

@k-kohey
Copy link
Copy Markdown
Owner

@k-kohey k-kohey commented Feb 26, 2026

  • Add comprehensive tests for thunk generation edge cases and known bugs
  • Refactor and enhance tests for thunk generation and known bugs

- Introduced new test files to cover various edge cases and limitations in thunk generation, including async methods, throwing methods, and deeply nested types.
- Added tests for known bugs in thunk generation, ensuring that issues are documented and can be tracked for resolution.
- Created tests for macro and property wrapper handling, verifying that thunks are generated correctly for SwiftUI features.
- Implemented multi-file interaction tests to address scenarios with name collisions and dependencies across files.
- Documented architectural limitations and design challenges in a new markdown file for future reference and improvement efforts.
- Updated test cases in `thunk_compile_known_bugs_test.go` to reflect fixes for method inclusion and argument handling in thunks.
- Moved existing tests from `thunk_compile_multifile_test.go` and `thunk_compile_multifile2_test.go` to consolidate known bug tests.
- Improved error messages in tests to provide clearer feedback on expected behavior.
- Added normalization logic for method names in the parser to address discrepancies between selector and base names.
- Enhanced handling of property wrappers in preview transformations to ensure compatibility with SwiftUI features.
@k-kohey k-kohey merged commit 4750913 into main Feb 26, 2026
2 checks passed
@k-kohey k-kohey deleted the implement_edge_case_tests branch February 26, 2026 15:41
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