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

Function TestSecretsCommandStructure

pkg/cli/secrets_command_test.go:51–72  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func TestSecretsCommandStructure(t *testing.T) {
52 tests := []struct {
53 name string
54 expectedUse string
55 commandCreator func() any
56 }{
57 {
58 name: "secrets command exists",
59 expectedUse: "secrets",
60 commandCreator: func() any {
61 return NewSecretsCommand()
62 },
63 },
64 }
65
66 for _, tt := range tests {
67 t.Run(tt.name, func(t *testing.T) {
68 cmd := tt.commandCreator()
69 require.NotNil(t, cmd, "Command should not be nil")
70 })
71 }
72}
73
74func TestSecretsBootstrapEngineFlagIncludesGemini(t *testing.T) {
75 cmd := NewSecretsCommand()

Callers

nothing calls this directly

Calls 2

NewSecretsCommandFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected