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 580B

123456789101112131415161718192021
  1. // Copyright 2021 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package pam_test
  4. import (
  5. auth_model "code.gitea.io/gitea/models/auth"
  6. "code.gitea.io/gitea/services/auth"
  7. "code.gitea.io/gitea/services/auth/source/pam"
  8. )
  9. // This test file exists to assert that our Source exposes the interfaces that we expect
  10. // It tightly binds the interfaces and implementation without breaking go import cycles
  11. type sourceInterface interface {
  12. auth.PasswordAuthenticator
  13. auth_model.Config
  14. auth_model.SourceSettable
  15. }
  16. var _ (sourceInterface) = &pam.Source{}