(t *testing.T)
| 199 | } |
| 200 | |
| 201 | func TestMasterKey_SetEncryptedDataKey(t *testing.T) { |
| 202 | key, err := NewMasterKey(testKeyID1) |
| 203 | assert.NoError(t, err) |
| 204 | key.SetEncryptedDataKey([]byte("test-encrypted-data")) |
| 205 | assert.Equal(t, "test-encrypted-data", key.EncryptedKey) |
| 206 | } |
| 207 | |
| 208 | func TestMasterKey_EncryptIfNeeded(t *testing.T) { |
| 209 | key, err := NewMasterKey(testKeyID1) |
nothing calls this directly
no test coverage detected