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

test: add ErrorAs helper and fix up examples #174

Merged
merged 6 commits into from
Sep 10, 2024

Conversation

brandondyck
Copy link
Contributor

This adds an ErrorAs helper using errors.As. I've also been getting intermittent failures from FS examples on WSL, so I changed them to us fstest.MapFS instead of actual files. And while I was working on that, I noticed that VSCode on Windows was only pretending to run the examples because of their GOOS=unix build constraint, so I applied the constraint to only the examples that needed it.

internal/assertions/assertions.go Outdated Show resolved Hide resolved
internal/assertions/assertions.go Outdated Show resolved Hide resolved
Copy link
Owner

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

LGTM!

@shoenig shoenig merged commit 56f7a18 into shoenig:main Sep 10, 2024
6 checks 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.

3 participants