(t *testing.T)
| 79 | } |
| 80 | |
| 81 | func TestIsEncrypted(t *testing.T) { |
| 82 | assert.True(t, IsEncrypted("enc:somedata")) |
| 83 | assert.False(t, IsEncrypted("plaintext")) |
| 84 | assert.True(t, IsEncrypted("enc:")) |
| 85 | assert.False(t, IsEncrypted("")) |
| 86 | } |
| 87 | |
| 88 | func TestDeriveKey_TooShort(t *testing.T) { |
| 89 | _, err := deriveKey([]byte("abc")) |
nothing calls this directly
no test coverage detected