MCPcopy
hub / github.com/getsops/sops / TestSecRing_ApplyToMasterKey

Function TestSecRing_ApplyToMasterKey

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

Source from the content-addressed store, hash-verified

183}
184
185func TestSecRing_ApplyToMasterKey(t *testing.T) {
186 key := NewMasterKeyFromFingerprint(mockFingerprint)
187 secring := SecRing("/some/path.pgp")
188 secring.ApplyToMasterKey(key)
189 assert.Equal(t, string(secring), key.secRing)
190}
191
192func TestMasterKey_Encrypt(t *testing.T) {
193 t.Run("with OpenPGP", func(t *testing.T) {

Callers

nothing calls this directly

Calls 3

SecRingTypeAlias · 0.85
ApplyToMasterKeyMethod · 0.45

Tested by

no test coverage detected