(t *testing.T)
| 544 | } |
| 545 | |
| 546 | func TestMasterKey_ToMap(t *testing.T) { |
| 547 | key := NewMasterKeyFromFingerprint(mockFingerprint) |
| 548 | key.EncryptedKey = "data" |
| 549 | assert.Equal(t, map[string]interface{}{ |
| 550 | "fp": mockFingerprint, |
| 551 | "created_at": key.CreationDate.UTC().Format(time.RFC3339), |
| 552 | "enc": key.EncryptedKey, |
| 553 | }, key.ToMap()) |
| 554 | } |
| 555 | |
| 556 | func TestMasterKey_retrievePubKey(t *testing.T) { |
| 557 | t.Run("existing fingerprint", func(t *testing.T) { |
nothing calls this directly
no test coverage detected