Rename Storable interface to Storer
See https://golang.org/doc/effective_go.html#interface-names
This commit is contained in:
@@ -17,13 +17,13 @@ import (
|
||||
)
|
||||
|
||||
type (
|
||||
Transactionable interface {
|
||||
Tx(context.Context, func(context.Context, Storable) error) error
|
||||
Transactioner interface {
|
||||
Tx(context.Context, func(context.Context, Storer) error) error
|
||||
}
|
||||
|
||||
// Sortable interface combines interfaces of all supported store interfaces
|
||||
Storable interface {
|
||||
Transactionable
|
||||
Storer interface {
|
||||
Transactioner
|
||||
|
||||
{{ range .Definitions -}}
|
||||
{{ export .Types.Plural }}
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func testAllGenerated(t *testing.T, s store.Storable) {
|
||||
func testAllGenerated(t *testing.T, s store.Storer) {
|
||||
{{- range . }}
|
||||
// Run generated tests for {{ .Types.Base }}
|
||||
t.Run({{ printf "%q" .Types.Base }}, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user