(t *testing.T)
| 192 | } |
| 193 | |
| 194 | func TestMasterKey_EncryptedDataKey(t *testing.T) { |
| 195 | key, err := NewMasterKey(testKeyID1) |
| 196 | assert.NoError(t, err) |
| 197 | key.EncryptedKey = "test-encrypted-data" |
| 198 | assert.Equal(t, []byte("test-encrypted-data"), key.EncryptedDataKey()) |
| 199 | } |
| 200 | |
| 201 | func TestMasterKey_SetEncryptedDataKey(t *testing.T) { |
| 202 | key, err := NewMasterKey(testKeyID1) |
nothing calls this directly
no test coverage detected