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

Function TestDecryptEmptyValue

aes/cipher_test.go:151–156  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

149}
150
151func TestDecryptEmptyValue(t *testing.T) {
152 key := []byte(strings.Repeat("f", 32))
153 s, err := NewCipher().Decrypt("", key, "")
154 assert.Nil(t, err)
155 assert.Equal(t, "", s)
156}
157
158// This test would belong more in sops_test.go, but from there we cannot access
159// the aes package to get a cipher which can actually handle time.Time objects.

Callers

nothing calls this directly

Calls 2

NewCipherFunction · 0.85
DecryptMethod · 0.65

Tested by

no test coverage detected