Skip to content

Conversation

@zharinov
Copy link
Member

Summary

  • Add shot_bytecode!, shot_cst!, shot_ast!, shot_types!, shot_error! macros in test_utils.rs
  • Convert all emit, compile, and grammar tests to use new macros
  • Replace inline snapshots with file-based snapshots (106 new snapshot files)

Why

Reduces test boilerplate by embedding indoc! inside macros. Pattern: shot_X!(query) instead of let input = indoc!{...}; let res = Query::expect_X(input); insta::assert_snapshot!(res).

@zharinov zharinov enabled auto-merge (squash) January 15, 2026 22:56
@zharinov zharinov merged commit 9adb4dd into master Jan 15, 2026
3 checks passed
@zharinov zharinov deleted the refactor/shot-test-macros branch January 15, 2026 22:57
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.

2 participants