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

Function TestNewCachesCommand_FlagDefaultValues

cmd/create/create_test.go:261–270  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

259}
260
261func TestNewCachesCommand_FlagDefaultValues(t *testing.T) {
262 cmd := NewCachesCommand()
263
264 flags := []string{"ip", "user", "port", "pwd", "alias"}
265 for _, name := range flags {
266 val, err := cmd.Flags().GetString(name)
267 assert.NoError(t, err)
268 assert.Equal(t, "", val, "flag %q default should be empty string", name)
269 }
270}
271
272func TestNewCachesCommand_FlagParsing(t *testing.T) {
273 cmd := NewCachesCommand()

Callers

nothing calls this directly

Calls 1

NewCachesCommandFunction · 0.70

Tested by

no test coverage detected