(t *testing.T)
| 102 | } |
| 103 | |
| 104 | func generateLivePumaDevCertIfNotExist(t *testing.T) { |
| 105 | liveSupportPath := homedir.MustExpand(SupportDir) |
| 106 | liveCertPath := filepath.Join(liveSupportPath, "cert.pem") |
| 107 | liveKeyPath := filepath.Join(liveSupportPath, "key.pem") |
| 108 | |
| 109 | if !FileExists(liveCertPath) || !FileExists(liveKeyPath) { |
| 110 | MakeDirectoryOrFail(t, liveSupportPath) |
| 111 | |
| 112 | if err := GeneratePumaDevCertificateAuthority(liveCertPath, liveKeyPath); err != nil { |
| 113 | assert.FailNow(t, err.Error()) |
| 114 | } |
| 115 | } |
| 116 | } |
no test coverage detected