improved report card
This commit is contained in:
parent
6b7993bc61
commit
b76739db6c
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user