(t *testing.T)
| 89 | } |
| 90 | |
| 91 | func TestGnuPGHome_ImportFile(t *testing.T) { |
| 92 | gnuPGHome, err := NewGnuPGHome() |
| 93 | assert.NoError(t, err) |
| 94 | t.Cleanup(func() { |
| 95 | _ = os.RemoveAll(gnuPGHome.String()) |
| 96 | }) |
| 97 | |
| 98 | assert.NoError(t, gnuPGHome.ImportFile(mockPublicKey)) |
| 99 | assert.Error(t, gnuPGHome.ImportFile("invalid")) |
| 100 | } |
| 101 | |
| 102 | func TestGnuPGHome_Cleanup(t *testing.T) { |
| 103 | gnuPGHome, err := NewGnuPGHome() |
nothing calls this directly
no test coverage detected