Files
Atay-Makhzan/services/auth/source/db/assert_interface_test.go
T

21 lines
550 B
Go
Raw Normal View History

2021-07-24 11:16:34 +01:00
// Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
2021-07-24 11:16:34 +01:00
package db_test
import (
2022-01-02 21:12:35 +08:00
auth_model "code.gitea.io/gitea/models/auth"
2021-07-24 11:16:34 +01:00
"code.gitea.io/gitea/services/auth"
"code.gitea.io/gitea/services/auth/source/db"
)
// This test file exists to assert that our Source exposes the interfaces that we expect
// It tightly binds the interfaces and implementation without breaking go import cycles
type sourceInterface interface {
auth.PasswordAuthenticator
2022-01-02 21:12:35 +08:00
auth_model.Config
2021-07-24 11:16:34 +01:00
}
var _ (sourceInterface) = &db.Source{}