improved report card

This commit is contained in:
Mat Ryer 2016-11-06 12:37:55 +00:00
parent 6b7993bc61
commit b76739db6c
2 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import "context"
//go:generate moq -out mockpersonstore_test.go . PersonStore //go:generate moq -out mockpersonstore_test.go . PersonStore
// Person represents a real person.
type Person struct { type Person struct {
ID string ID string
Name string Name string
@ -11,6 +12,7 @@ type Person struct {
Website string Website string
} }
// PersonStore provides access to Person objects.
type PersonStore interface { type PersonStore interface {
Get(ctx context.Context, id string) (*Person, error) Get(ctx context.Context, id string) (*Person, error)
Create(ctx context.Context, person *Person, confirm bool) error Create(ctx context.Context, person *Person, confirm bool) error

View File

@ -5,6 +5,7 @@ package generate
//go:generate moq -out generated.go . MyInterface //go:generate moq -out generated.go . MyInterface
// MyInterface is a test interface.
type MyInterface interface { type MyInterface interface {
One() bool One() bool
Two() int Two() int