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