Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: increased Coverage on StakeManager and MerklePos #730

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

GauravJain9
Copy link
Contributor

Added comments on all the erc20 functions that can't be negatively tested.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 97.834% when pulling 2b328e9 on GauravJain9:newStake into a71edb9 on razor-network:master.

@SamAg19 SamAg19 merged commit ad54860 into razor-network:master Feb 28, 2022
@@ -220,6 +220,7 @@ contract StakeManager is Initializable, StakeStorage, StateManager, Pause, Stake
stakers[numStakers] = Structs.Staker(false, false, 0, numStakers, 10000, msg.sender, address(sToken), epoch, 0, amount);
_setupRole(STOKEN_ROLE, address(sToken));
// Minting
// Below line can't be tested
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a reason as well @GauravJain9

SkandaBhat added a commit that referenced this pull request Mar 15, 2022
* Increased Coverage on CollectionManager (#715)

* moved from weighted mean to weighted median (#710)

* Natspec added to parameters and random manager (#712)

* natspec changes to randomManager

* natspec added to parameters

* linting fixes

* natspec fixes

* natspec added to internal functions

* lint fixes

* spelling fix

* test: increased test coverage (#725)

* test: increased Coverage on StakeManager and MerklePos (#730)

* docs: natspec added to delegator, block manager and vote manager (#729)

* docs: natspec added to delegator, block manager and vote manager

* docs: natspec fix

* docs: natspec added to events

* docs: natspec fix

* docs: lint fix

* docs: natspec added to staked token contracts (#734)

* feat: add docgen to the project from natspec (#731)

* feat: add docgen to the project from natspec

* fix: fix package.json versions

* fix: fix tests

* chore: fix locks

Co-authored-by: SkandaBhat <bhat.skanda.m@gmaill.com>

* fix: removed require statement from BlockManager (#740)

* test: increased coverage on BlockManager and RandomNoManager (#733)

* test: increased coverage on BlockManager and RandomNoManager

* test: increased coverage on BlockManager added test case

* test: increased coverage on blockManager

* feat: merged from master

* fix: fixed gascompare error

* fix: clean up docgen (#743)

Co-authored-by: SkandaBhat <bhat.skanda.m@gmaill.com>

* fix: only propose revealed assets of epoch (#726)

* fix: only propose revealed assets of epoch

* chore: lint

* fix: medianIndex renamed to activeCollectionIndex

* chore: slither and lint

* chore: silly slither

* fix: scenarios failing

* fix: disputes optimised and one bug with penalties fixed

* docs: added natspec comments

* chore: cleanup

* fix: reveal event updated for node needs

* fix: scenarios test failing

* fix: activeCollectionIndex renamed to leafId

* fix: optmized for calls in loop : slither warning (#745)

Co-authored-by: Gaurav Jain <65170724+GauravJain9@users.noreply.github.com>
Co-authored-by: SamAg19 <52957842+SamAg19@users.noreply.github.com>
Co-authored-by: SkandaBhat <bhat.skanda.m@gmaill.com>
Co-authored-by: Abhishek Vispute <abhivispute33@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants