MCPcopy Index your code
hub / github.com/getsops/sops / TestPubRing_ApplyToMasterKey

Function TestPubRing_ApplyToMasterKey

pgp/keysource_test.go:178–183  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

176}
177
178func TestPubRing_ApplyToMasterKey(t *testing.T) {
179 key := NewMasterKeyFromFingerprint(mockFingerprint)
180 pubring := PubRing("/some/path.pgp")
181 pubring.ApplyToMasterKey(key)
182 assert.Equal(t, string(pubring), key.pubRing)
183}
184
185func TestSecRing_ApplyToMasterKey(t *testing.T) {
186 key := NewMasterKeyFromFingerprint(mockFingerprint)

Callers

nothing calls this directly

Calls 3

PubRingTypeAlias · 0.85
ApplyToMasterKeyMethod · 0.45

Tested by

no test coverage detected