mirror of
https://github.com/weloe/token-go.git
synced 2025-10-06 07:56:58 +08:00
feat: add config
This commit is contained in:
21
config/reader_test.go
Normal file
21
config/reader_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package config
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestNewConfig(t *testing.T) {
|
||||
config, err := NewConfig("")
|
||||
if err != nil {
|
||||
t.Fatalf("read error: %v", err)
|
||||
}
|
||||
t.Log(config)
|
||||
}
|
||||
|
||||
func TestDefaultCookieConfig(t *testing.T) {
|
||||
config := DefaultTokenConfig()
|
||||
t.Log(config)
|
||||
}
|
||||
|
||||
func TestDefaultTokenConfig(t *testing.T) {
|
||||
config := DefaultCookieConfig()
|
||||
t.Log(config)
|
||||
}
|
Reference in New Issue
Block a user