Skip to content

sirkon/pamgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

go install github.com/sirkon/pamgen@latest

Usage

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

About

Google's mockgen alternative

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages