MCPcopy Create free account
hub / github.com/github/gh-aw / TestLogsCommandStructure

Function TestLogsCommandStructure

pkg/cli/logs_command_test.go:137–156  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

135}
136
137func TestLogsCommandStructure(t *testing.T) {
138 tests := []struct {
139 name string
140 commandCreator func() any
141 }{
142 {
143 name: "logs command exists",
144 commandCreator: func() any {
145 return NewLogsCommand()
146 },
147 },
148 }
149
150 for _, tt := range tests {
151 t.Run(tt.name, func(t *testing.T) {
152 cmd := tt.commandCreator()
153 require.NotNil(t, cmd, "Command should not be nil")
154 })
155 }
156}
157
158func TestLogsCommandArgs(t *testing.T) {
159 cmd := NewLogsCommand()

Callers

nothing calls this directly

Calls 2

NewLogsCommandFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected