Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kare/7cda6a76d91ff58941b860a916017642 to your computer and use it in GitHub Desktop.
Save kare/7cda6a76d91ff58941b860a916017642 to your computer and use it in GitHub Desktop.
Go unit test setup and teardown test-run-single.txt
=== RUN TestAddition
=== RUN TestAddition/add
--- PASS: TestAddition (0.00s)
math_test.go:6: setup test case
--- PASS: TestAddition/add (0.00s)
math_test.go:13: setup sub test
math_test.go:15: teardown sub test
math_test.go:8: teardown test case
PASS
ok github.com/kare/go-unit-test-setup-teardown 0.012s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment