MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestNewCachesCommand_Structure

Function TestNewCachesCommand_Structure

cmd/create/create_test.go:203–212  ·  view source on GitHub ↗

--- Caches command ---

(t *testing.T)

Source from the content-addressed store, hash-verified

201// --- Caches command ---
202
203func TestNewCachesCommand_Structure(t *testing.T) {
204 cmd := NewCachesCommand()
205
206 assert.NotNil(t, cmd)
207 assert.Equal(t, "caches <cache>", cmd.Use)
208 assert.Equal(t, "Create an alternative cache", cmd.Short)
209 assert.Equal(t, "Create an alternative cache", cmd.Long)
210 assert.Equal(t, []string{"cache"}, cmd.Aliases)
211 assert.NotNil(t, cmd.Run)
212}
213
214func TestNewCachesCommand_Flags(t *testing.T) {
215 cmd := NewCachesCommand()

Callers

nothing calls this directly

Calls 1

NewCachesCommandFunction · 0.70

Tested by

no test coverage detected