Add static interface implementation check

Add an additional line of code per interface to the generated mock file,
which allows the go compiler to statically check if the mock implements
the mocked interface.
This commit is contained in:
Lucas Bremgartner
2018-06-04 14:22:28 +02:00
committed by Lucas Bremgartner
parent c4521bcc9d
commit b21592468b
9 changed files with 93 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
package somerepo
// SomeType is some type
type SomeType string