(t *testing.T)
| 13 | } |
| 14 | |
| 15 | func TestEncryptDecryptAES(t *testing.T) { |
| 16 | encrypted, err := EncryptAES([]byte("12345678901234567890123456789012"), []byte("Hello World")) |
| 17 | assert.NilError(t, err, "Error encrypting hello world") |
| 18 | decrypted, err := DecryptAES([]byte("12345678901234567890123456789012"), encrypted) |
| 19 | assert.NilError(t, err, "Error decrypting hello world") |
| 20 | assert.Equal(t, "Hello World", string(decrypted), "\"Hello World\" encrypted and decrypted is not \"Hello World\" anymore") |
| 21 | } |
nothing calls this directly
no test coverage detected