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

Function TestNewVersionCommand_Structure

cmd/version/version_test.go:12–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestNewVersionCommand_Structure(t *testing.T) {
13 cmd := NewVersionCommand()
14
15 assert.NotNil(t, cmd)
16 assert.Equal(t, "version", cmd.Use)
17 assert.Equal(t, "Print the client version information for the current context", cmd.Short)
18 assert.Equal(t, "Print the client version information for the current context", cmd.Long)
19 assert.NotNil(t, cmd.Run)
20}
21
22func TestNewVersionCommand_AllFieldsSet(t *testing.T) {
23 // Save and restore original values

Callers

nothing calls this directly

Calls 1

NewVersionCommandFunction · 0.85

Tested by

no test coverage detected