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

Function TestNewEncryptCommand_Run

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

Source from the content-addressed store, hash-verified

54}
55
56func TestNewEncryptCommand_Run(t *testing.T) {
57 defer resetMocks()
58 setupTempConfig(t, emptyConfigYAML)
59
60 os.Setenv("TRYSSH_MASTER_KEY", "testpassword123")
61 var buf bytes.Buffer
62 fatalFn = func(args ...interface{}) { fmt.Fprint(&buf, args...) }
63
64 cmd := NewEncryptCommand()
65 cmd.Run(cmd, []string{})
66}
67
68// --- countPlaintextPasswords ---
69

Callers

nothing calls this directly

Calls 3

resetMocksFunction · 0.85
NewEncryptCommandFunction · 0.85
setupTempConfigFunction · 0.70

Tested by

no test coverage detected