Skip to content

Release v0.0.37

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Sep 10:13

🧪 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(+)