forked from pinpox/base16-universal-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_test.go
64 lines (61 loc) · 1.47 KB
/
config_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package main
import (
"reflect"
"testing"
)
func TestNewConfig(t *testing.T) {
type args struct {
path string
}
tests := []struct {
name string
args args
want SetterConfig
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := NewConfig(tt.args.path); !reflect.DeepEqual(got, tt.want) {
t.Errorf("NewConfig() = %v, want %v", got, tt.want)
}
})
}
}
func TestSetterConfig_Show(t *testing.T) {
type fields struct {
GithubToken string
SchemesMasterURL string
TemplatesMasterURL string
SchemesListFile string
TemplatesListFile string
SchemesCachePath string
TemplatesCachePath string
DryRun bool
Colorscheme string
Applications map[string]StetterAppConfig
}
tests := []struct {
name string
fields fields
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
c := SetterConfig{
GithubToken: tt.fields.GithubToken,
SchemesMasterURL: tt.fields.SchemesMasterURL,
TemplatesMasterURL: tt.fields.TemplatesMasterURL,
SchemesListFile: tt.fields.SchemesListFile,
TemplatesListFile: tt.fields.TemplatesListFile,
SchemesCachePath: tt.fields.SchemesCachePath,
TemplatesCachePath: tt.fields.TemplatesCachePath,
DryRun: tt.fields.DryRun,
Colorscheme: tt.fields.Colorscheme,
Applications: tt.fields.Applications,
}
c.Show()
})
}
}