zama-ai / fhevm-contracts

A standard contract library for the fhEVM ecosystem
Other
4 stars 0 forks source link

Fetat/tests erc20 #20

Closed jatZama closed 4 months ago

jatZama commented 4 months ago

Coverage before : before Coverage after :

Screenshot 2024-02-23 at 11 50 15

The only 2 branches which are not detected by coverage are due to limitations of mocked mode (see coverage report) and are concerning branches with an TFHE.isInitiailized which always return true in mocked mode. But they are actually well covered by the tests, see for instance : https://github.com/zama-ai/fhevm-contracts/blob/fetat/tests-erc20/test/encryptedERC20/EncryptedERC20.ts#L352-L357