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

12345678910111213141516171819202122
  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 pam_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/pam"
  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. auth_model.SourceSettable
  16. }
  17. var _ (sourceInterface) = &pam.Source{}