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

Function TestEncryptEmptyComment

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

Source from the content-addressed store, hash-verified

142}
143
144func TestEncryptEmptyComment(t *testing.T) {
145 key := []byte(strings.Repeat("f", 32))
146 s, err := NewCipher().Encrypt(sops.Comment{}, key, "")
147 assert.Nil(t, err)
148 assert.Equal(t, "", s)
149}
150
151func TestDecryptEmptyValue(t *testing.T) {
152 key := []byte(strings.Repeat("f", 32))

Callers

nothing calls this directly

Calls 2

NewCipherFunction · 0.85
EncryptMethod · 0.65

Tested by

no test coverage detected