(t *testing.T)
| 149 | } |
| 150 | |
| 151 | func 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. |