https://github.com/sirkon/pamgen
Google's mockgen alternative
https://github.com/sirkon/pamgen
Last synced: 3 months ago
JSON representation
Google's mockgen alternative
- Host: GitHub
- URL: https://github.com/sirkon/pamgen
- Owner: sirkon
- License: mit
- Created: 2022-03-08T06:25:22.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-19T11:03:22.000Z (over 2 years ago)
- Last Synced: 2024-06-21T08:22:22.816Z (12 months ago)
- Language: Go
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PAMGen gomock compatible mock generator
PAMGen means "Proto Aware Mock Generator". This means the thing is aware of what proto.Messages are and how to compare
them.## Installation
```shell
go install github.com/sirkon/pamgen@latest
```## Usage
```shell
pamgen -s io -d io_mock.go -p mocks Reader # generate a mock for io.Reader in the ./io_mock.go
pamgen -d current_mock.go # generate mocks for all interfaces of package placed in the current directory
```