You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version
=======
> solidity-coverage: v0.8.2
Instrumenting for coverage...
=============================
> emitter.sol
> factory.sol
> implementation.sol
> proxy.sol
Coverage skipped for:
=====================
> USDC.sol
Compilation:
============
(node:19326) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Compiled 31 Solidity files successfully
Network Info
============
> HardhatEVM: v2.11.2
> network: hardhat
Factory Contract testing
✔ Deploy factory, proxy, usdc, emitter contract (665ms)
✔ Deploy factory contract with invalid USDC address should fail (51ms)
✔ Check the owner of factory
USDC method testing(changeUSDCAddress)
✔ Check USDC address
✔ Change USDC address (115ms)
✔ Change USDC to invalid address should fail
✔ Only owner can change the USDC address (95ms)
Implementation method testing(changeDAOImplementation)
✔ Check implementation address
✔ Change Implementation address (97ms)
✔ Change Implementation to invalid address should fail
✔ Only owner can change the implementation address (61ms)
Create dao method testing(createDAO)
✔ Create Dao (70ms)
✔ Max should be grater than min in create DAO (49ms)
✔ Total raise should be grater than max in create DAO (40ms)
✔ Days should be grater than 0 in create DAO (44ms)
✔ Owner fee cannot be 100 in create DAO (43ms)
✔ Owner address cannot be null in create DAO (40ms)
✔ Quorum cannot exceed 100 in create DAO method (44ms)
✔ Threshold cannot exceed 100 in create DAO method (47ms)
✔ Check owner address
✔ Check DAO config (82ms)
Implementation Contract (DAO testing)
Update min max deposit(updateMinMaxDeposit)
✔ Check the min max deposit amount (289ms)
✔ Change the min max deposit per user (44ms)
✔ Only admin can change the min max deposit per user
✔ Max should be grater than min in change change min max deposit per user
Update owner fee(updateOwnerFee)
✔ check the owner fee
✔ Change the owners fee
✔ Owner fee cannot be grater than or equal to 100
✔ Only owner can change the owner fee
Close deposit (closeDeposit)
✔ close deposit
✔ Cannot close deposit if it's already closed (38ms)
✔ Only admin can close deposit
Start deposit (startDeposit)
✔ Start deposit (61ms)
✔ Start deposit with raise amount equal to 0 should fail
✔ Start deposit with days equal to zero should fail (41ms)
✔ Total raise amount should be grater than or equal to previous raise amount (52ms)
✔ Start deposit should fail if deposit is already running
✔ Only admin can start deposit
Testing Deposit function(deposit)
✔ Try Deposit with fees in USDC (77ms)
✔ Try amount less than min balance (39ms)
✔ Try amount grater than max balance (39ms)
✔ Try depositing another token than usdc (77ms)
✔ try deposit if amount has exceed total raise amount (69ms)
✔ try deposit into DAO where fees in GT token (89ms)
Execute proposal(updateProposalAndExecution)
✔ Airdrop token (149ms)
✔ Mint GT tokens (61ms)
✔ Update governor settings (58ms)
✔ Update raise amount (55ms)
✔ Send custom token (71ms)
49 passing (3s)
---------------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
---------------------|----------|----------|----------|----------|----------------|
contracts/ | 0 | 0 | 0 | 0 | |
emitter.sol | 0 | 0 | 0 | 0 |... 1,95,99,103 |
factory.sol | 0 | 0 | 0 | 0 |... 72,78,80,81 |
implementation.sol | 0 | 0 | 0 | 0 |... 611,618,625 |
proxy.sol | 0 | 100 | 0 | 0 | 34,35,41,42 |
---------------------|----------|----------|----------|----------|----------------|
All files | 0 | 0 | 0 | 0 | |
---------------------|----------|----------|----------|----------|----------------|
> Istanbul reports written to ./coverage/ and ./coverage.json
The text was updated successfully, but these errors were encountered:
Same problem on my side. The compilation results in "Stack too deep" without "viaIR: true". Setting viaIR to true compiles the contracts and runs the test cases but shows 0% test coverage for all files.
my solidity files are to big and are not getting compiled without enabling this flag.
.solcover.js
hardhat.config.js
Output:-
The text was updated successfully, but these errors were encountered: