Skip to content

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.

1 participant