You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: authinfo_test.go
    path of file: ./repos/grafana/pkg/services/login
    
    the code of the file until where you have to start completion: package login

import (
	"testing"

	"github.com/stretchr/testify/assert"

	"github.com/grafana/grafana/pkg/login/social"
	"github.com/grafana/grafana/pkg/setting"
)

func TestIsExternallySynced(t *testing.T) {
	testcases := []struct {
		name      string
		cfg       *setting.Cfg
		oauthInfo *social.OAuthInfo
		provider  string
		expec
    
func TestIsProviderEnabled(t *testing.T) {
	testcases := []struct {
		name      string
		oauthInfo *social.OAuthInfo
		provider  string
		expected  bool
	}{
		// github
		{
			name:      "Github should return true if enabled",
			oauthInfo: &social.OAuthInfo{Enabled: true},
			provider:  GithubAuthModule,
			expected:  true,
		},
		{
			name:      "Github should return false if not enabled",
			oauthInfo: &social.OAuthInfo{Enabled: false},
			provider:  GithubAuthModule,
			expected:  false,
		},
	}

	for _, tc := range testcases {
		t.Run(tc.name, func(t *testing.T) {
			assert.Equal(t, tc.expected, IsProviderEnabled(setting.NewCfg(), tc.provider, tc.oauthInfo))
		})
	}
}