Release v0.0.37
🧪 Merge test.ReadJSON (#38)
Add ReadJSON from file test utility function that fails the test
immediately if the file cannot be read or parsed into the provided data
structure.
cfg := Config{}
test.ReadJSON(t, "testdata/config.json", &cfg)
- test: Add ReadJSON from file test utility
test/json.go | 28 ++++++++++++++++++++++++++++
test/json_test.go | 45 +++++++++++++++++++++++++++++++++++++++++++++
test/testdata/invalid.json | 1 +
test/testdata/profile.json | 4 ++++
4 files changed, 78 insertions(+)