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

1234567891011121314151617181920212223
  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 oauth2_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/oauth2"
  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_model.Config
  14. auth_model.SourceSettable
  15. auth_model.RegisterableSource
  16. auth.PasswordAuthenticator
  17. }
  18. var _ (sourceInterface) = &oauth2.Source{}