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

assert: golden variables #237

Merged
merged 4 commits into from Jun 18, 2022
Merged

assert: golden variables #237

merged 4 commits into from Jun 18, 2022

Conversation

dnephin
Copy link
Member

@dnephin dnephin commented May 3, 2022

This PR adds a second option for golden values. The golden package allows storing of expected values in files. The approach in this PR would allow storing the golden value in a package-level variable.

Initially I think support for this should be limited to only package-level variables of type string, but I think it would be possible to expand the support in the future.

I updated the internal uses of golden to use this new way of storing values, and the test cases show another couple examples.

@dnephin dnephin force-pushed the golden-vars branch 3 times, most recently from 5bfa171 to ad7894a Compare May 29, 2022 21:40
@dnephin dnephin changed the title wip: golden variables assert: golden variables May 29, 2022
@dnephin dnephin marked this pull request as ready for review May 29, 2022 21:43
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.

None yet

1 participant