An example of writing mock-based unit tests with both infrastructure definition and tests written in Go.
-
Restore your Go dependencies. This example currently uses Dep to do so:
$ dep ensure
-
Run the tests:
$ go test PASS ok testing-unit-go 0.400s
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
An example of writing mock-based unit tests with both infrastructure definition and tests written in Go.
Restore your Go dependencies. This example currently uses Dep to do so:
$ dep ensureRun the tests:
$ go test
PASS
ok testing-unit-go 0.400s