mockery-example
mockery-example copied to clipboard
Advanced Example for mockery
Mockery-example
Example case for mockery issue #128 filed with the golang tool "mockery".
Get it
go get github.com/jaytaylor/mockery-example
Run it
go run main.go
Sample output:
$ go run main.go
common prefix: {
Prefix: "2017-01-01"
}
content: {
Key: "foo-object"
}
Run tests
go test -v ./...
Sample output:
$ go test -v ./...
=== RUN TestS3Mock
--- PASS: TestS3Mock (0.00s)
main_test.go:41: common prefix: {
Prefix: "2017-01-01"
}
PASS
ok github.com/jaytaylor/mockery-example 0.222s
? github.com/jaytaylor/mockery-example/mocks [no test files]