Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output error if a directive is invalid #19

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

RaduBerinde
Copy link
Contributor

Invalid directives are silently ignored; a simple typo can make us
think that the intended assertion passes.

This change outputs errors if any directives are invalid.

Copy link
Collaborator

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just one question from me.

gcassert.go Outdated Show resolved Hide resolved
gcassert_test.go Outdated Show resolved Hide resolved
testdata/bad_directive.go Outdated Show resolved Hide resolved
@RaduBerinde RaduBerinde force-pushed the fail-for-bad-directive branch from 3dbc754 to d2508fc Compare December 23, 2024 17:50
@RaduBerinde
Copy link
Contributor Author

Improved the error messages to include the filename.

Invalid directives are silently ignored; a simple typo can make us
think that the intended assertion passes.

This change outputs errors if any directives are invalid.
@RaduBerinde RaduBerinde force-pushed the fail-for-bad-directive branch from d2508fc to 634c287 Compare December 23, 2024 22:01
@yuzefovich yuzefovich merged commit 778fb58 into jordanlewis:master Dec 23, 2024
1 check passed
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