You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

assert_interface_test.go 622B

123456789101112131415161718192021
  1. // Copyright 2021 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package db_test
  5. import (
  6. auth_model "code.gitea.io/gitea/models/auth"
  7. "code.gitea.io/gitea/services/auth"
  8. "code.gitea.io/gitea/services/auth/source/db"
  9. )
  10. // This test file exists to assert that our Source exposes the interfaces that we expect
  11. // It tightly binds the interfaces and implementation without breaking go import cycles
  12. type sourceInterface interface {
  13. auth.PasswordAuthenticator
  14. auth_model.Config
  15. }
  16. var _ (sourceInterface) = &db.Source{}