(t *testing.T)
| 54 | } |
| 55 | |
| 56 | func 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 |
nothing calls this directly
no test coverage detected