Skip to content

Commit 6a8ccc9

Browse files
committed
api: Add interface directives for counterfeiter
Signed-off-by: Stephen Augustus <[email protected]>
1 parent 56ec6b9 commit 6a8ccc9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

api/document.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,22 @@ import (
2020
"io"
2121
)
2222

23-
// TODO(api): Populate interface
24-
// TODO(api): Mock interface
23+
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
24+
25+
//counterfeiter:generate . File
26+
27+
// TODO(api): Populate interface and regenerate mocks
2528
type File interface {
2629
Parse(io.Reader) (Document, error)
2730
}
2831

29-
// TODO(api): Populate interface
30-
// TODO(api): Mock interface
32+
//counterfeiter:generate . Document
33+
3134
// Document is an interface satisfied by the following types:
3235
// - `Proposal` (KEP)
3336
// - `PRRApproval`
3437
// - `Receipt` (coming soon)
38+
// TODO(api): Populate interface and regenerate mocks
3539
type Document interface {
3640
Validate() error
3741
}

0 commit comments

Comments
 (0)