Skip to content

test: add ErrorAs helper and fix up examples#174

Merged
shoenig merged 6 commits intoshoenig:mainfrom
brandondyck:erroras
Sep 10, 2024
Merged

test: add ErrorAs helper and fix up examples#174
shoenig merged 6 commits intoshoenig:mainfrom
brandondyck:erroras

Conversation

@brandondyck
Copy link
Copy Markdown
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.

Comment thread internal/assertions/assertions.go Outdated
Comment thread internal/assertions/assertions.go Outdated
Copy link
Copy Markdown
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
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