gotestyourself / gotestyourself/gotest.tools
How to compare multi-line strings with unpredictable values?
Open
enhancement
- Dominant language
- Go
- Stars
- 576
- Forks
- 54
- Avg merge
- 6d 3h
- Merged PRs (30d)
- 2
Description
Ex: The stdout of `docker build` includes ids that will change.
`golden` expects exact values, but maybe we could support some way of templating things so that it can assert the actual result matches a template/pattern. This could be in a different package, or just a different assertions (`AssertPattern()` or something).
Contributor guide
Assessment
This issue has not been assessed yet.