internal/database: consistently use Store and s as receiver (#7669)

This commit is contained in:
Joe Chen
2024-02-19 20:00:13 -05:00
committed by GitHub
parent dfe27ad556
commit 917c14f2ce
24 changed files with 371 additions and 371 deletions

View File

@@ -24,13 +24,13 @@ func TestPublicKeys(t *testing.T) {
t.Parallel()
ctx := context.Background()
db := &publicKeys{
DB: newTestDB(t, "publicKeys"),
db := &publicKeysStore{
DB: newTestDB(t, "publicKeysStore"),
}
for _, tc := range []struct {
name string
test func(t *testing.T, ctx context.Context, db *publicKeys)
test func(t *testing.T, ctx context.Context, db *publicKeysStore)
}{
{"RewriteAuthorizedKeys", publicKeysRewriteAuthorizedKeys},
} {
@@ -47,7 +47,7 @@ func TestPublicKeys(t *testing.T) {
}
}
func publicKeysRewriteAuthorizedKeys(t *testing.T, ctx context.Context, db *publicKeys) {
func publicKeysRewriteAuthorizedKeys(t *testing.T, ctx context.Context, db *publicKeysStore) {
// TODO: Use PublicKeys.Add to replace SQL hack when the method is available.
publicKey := &PublicKey{
OwnerID: 1,