mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 16:20:14 +01:00
internal/database: consistently use Store and s as receiver (#7669)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user