https://github.com/jaytaylor/mockery-example
Advanced Example for mockery
https://github.com/jaytaylor/mockery-example
go golang mockery testing
Last synced: 8 months ago
JSON representation
Advanced Example for mockery
- Host: GitHub
- URL: https://github.com/jaytaylor/mockery-example
- Owner: jaytaylor
- Created: 2017-03-22T21:47:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-23T16:53:45.000Z (over 8 years ago)
- Last Synced: 2025-01-05T09:32:55.991Z (9 months ago)
- Topics: go, golang, mockery, testing
- Language: Go
- Homepage: https://github.com/vektra/mockery
- Size: 10.7 KB
- Stars: 38
- Watchers: 4
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mockery-example
Example case for [mockery issue #128](https://github.com/vektra/mockery/issues/128) filed with the golang tool "[mockery](https://github.com/vektra/mockery)".
## Get it
```bash
go get github.com/jaytaylor/mockery-example
```## Run it
```bash
go run main.go
```### Sample output:
```bash
$ go run main.go
common prefix: {
Prefix: "2017-01-01"
}
content: {
Key: "foo-object"
}
```## Run tests
```bash
go test -v ./...
```### Sample output:
```bash
$ 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]
```