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

Function TestNewEncryptCommand_Structure

cmd/encrypt/encrypt_test.go:49–54  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47const configWithPasswordsYAML = "main:\n ports: [\"22\"]\n users: [\"root\"]\n passwords: [\"secret1\", \"secret2\"]\n keys: []\nserverList:\n - ip: \"10.0.0.1\"\n port: \"22\"\n user: \"root\"\n password: \"secret3\"\n alias: \"\"\n"
48
49func TestNewEncryptCommand_Structure(t *testing.T) {
50 cmd := NewEncryptCommand()
51 assert.Equal(t, "encrypt", cmd.Use)
52 assert.Equal(t, "Encrypt passwords in the configuration file", cmd.Short)
53 assert.NotEmpty(t, cmd.Long)
54}
55
56func TestNewEncryptCommand_Run(t *testing.T) {
57 defer resetMocks()

Callers

nothing calls this directly

Calls 1

NewEncryptCommandFunction · 0.85

Tested by

no test coverage detected