Skip to content

bugc: use format type guards in call context tests#194

Merged
gnidan merged 1 commit intocall-returnfrom
test-type-guard-validation
Apr 1, 2026
Merged

bugc: use format type guards in call context tests#194
gnidan merged 1 commit intocall-returnfrom
test-type-guard-validation

Conversation

@gnidan
Copy link
Copy Markdown
Member

@gnidan gnidan commented Apr 1, 2026

Summary

  • Refactors call-contexts.test.ts to validate compiler output against @ethdebug/format type guards (Context.isInvoke, Context.isReturn, Invocation.isInternalCall) instead of casting through Record<string, unknown>
  • Adds typed findInstructionsWithContext helper that filters by mnemonic and type guard with proper type narrowing

Validate that compiler output satisfies @ethdebug/format
type guards (Context.isInvoke, Context.isReturn,
Invocation.isInternalCall) instead of casting through
Record<string, unknown>. Adds a typed
findInstructionsWithContext helper that filters by mnemonic
and type guard, providing proper type narrowing.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-04-01 20:41 UTC

@gnidan gnidan merged commit 898ea32 into call-return Apr 1, 2026
4 checks passed
@gnidan gnidan deleted the test-type-guard-validation branch April 1, 2026 20:37
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