(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestPublicKeyJSON(t *testing.T) { |
| 14 | k := generatePublicKey() |
| 15 | |
| 16 | dataJSON, err := json.Marshal(k) |
| 17 | require.NoError(t, err) |
| 18 | |
| 19 | var read Key |
| 20 | err = json.Unmarshal(dataJSON, &read) |
| 21 | require.NoError(t, err) |
| 22 | |
| 23 | require.Equal(t, k, &read) |
| 24 | } |
| 25 | |
| 26 | func TestStoreLoad(t *testing.T) { |
| 27 | repo := repository.NewMockRepoKeyring() |
nothing calls this directly
no test coverage detected