Skip to content

jaytaylor/mockery-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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]

Releases

No releases published

Packages

No packages published

Languages