MCPcopy
hub / github.com/spacecloud-io/space-cloud / TestSetLogLevel

Function TestSetLogLevel

space-cli/cmd/utils/log_test.go:59–98  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

57}
58
59func TestSetLogLevel(t *testing.T) {
60 type args struct {
61 loglevel string
62 }
63 tests := []struct {
64 name string
65 args args
66 }{
67 // TODO: Add test cases.
68 {
69 name: "debug",
70 args: args{
71 loglevel: "debug",
72 },
73 },
74 {
75 name: "info",
76 args: args{
77 loglevel: "info",
78 },
79 },
80 {
81 name: "error",
82 args: args{
83 loglevel: "error",
84 },
85 },
86 {
87 name: "random",
88 args: args{
89 loglevel: "random",
90 },
91 },
92 }
93 for _, tt := range tests {
94 t.Run(tt.name, func(t *testing.T) {
95 SetLogLevel(tt.args.loglevel)
96 })
97 }
98}

Callers

nothing calls this directly

Calls 1

SetLogLevelFunction · 0.85

Tested by

no test coverage detected