gitea源码

assert_interface_test.go 474B

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