package authn import ( "github.com/HFO4/cloudreve/pkg/cache" "github.com/stretchr/testify/assert" "testing" ) func TestInit(t *testing.T) { asserts := assert.New(t) cache.Set("setting_siteURL", "http://cloudreve.org", 0) cache.Set("setting_siteName", "Cloudreve", 0) asserts.NotPanics(func() { Init() }) asserts.NotNil(AuthnInstance) }