github.com/lyft/flytestdlib@v0.3.12-0.20210213045714-8cdd111ecda1/logger/config_test.go (about) 1 package logger 2 3 import ( 4 "reflect" 5 "testing" 6 7 "github.com/stretchr/testify/assert" 8 ) 9 10 func TestSetConfig(t *testing.T) { 11 type args struct { 12 cfg *Config 13 } 14 tests := []struct { 15 name string 16 args args 17 }{ 18 // TODO: Add test cases. 19 } 20 for _, tt := range tests { 21 t.Run(tt.name, func(t *testing.T) { 22 assert.NoError(t, SetConfig(tt.args.cfg)) 23 }) 24 } 25 } 26 27 func TestGetConfig(t *testing.T) { 28 tests := []struct { 29 name string 30 want *Config 31 }{ 32 // TODO: Add test cases. 33 } 34 for _, tt := range tests { 35 t.Run(tt.name, func(t *testing.T) { 36 if got := GetConfig(); !reflect.DeepEqual(got, tt.want) { 37 t.Errorf("GetConfig() = %v, want %v", got, tt.want) 38 } 39 }) 40 } 41 }