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

Function TestRunEncrypt_EnvVar_NoPasswords

cmd/encrypt/encrypt_test.go:124–130  ·  view source on GitHub ↗

--- runEncrypt via env var path ---

(t *testing.T)

Source from the content-addressed store, hash-verified

122// --- runEncrypt via env var path ---
123
124func TestRunEncrypt_EnvVar_NoPasswords(t *testing.T) {
125 defer resetMocks()
126 setupTempConfig(t, emptyConfigYAML)
127
128 os.Setenv("TRYSSH_MASTER_KEY", "testpassword123")
129 runEncrypt()
130}
131
132func TestRunEncrypt_EnvVar_WithPasswords(t *testing.T) {
133 defer resetMocks()

Callers

nothing calls this directly

Calls 3

resetMocksFunction · 0.85
runEncryptFunction · 0.85
setupTempConfigFunction · 0.70

Tested by

no test coverage detected