-
Notifications
You must be signed in to change notification settings - Fork 21
test(ledger): verify all cert types #1258
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
Conversation
📝 WalkthroughWalkthroughAdds a shared Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
ledger/common/common_test.go(3 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
ledger/common/common_test.go (2)
ledger/common/certs.go (41)
PoolRetirementCertificate(617-623)CertificateTypePoolRetirement(36-36)RegistrationCertificate(787-793)CertificateTypeRegistration(39-39)DeregistrationCertificate(828-834)CertificateTypeDeregistration(40-40)VoteDelegationCertificate(869-875)CertificateTypeVoteDelegation(41-41)CertificateTypeStakeRegistration(32-32)Certificate(127-132)StakeRegistrationCertificate(220-225)StakeDeregistrationCertificate(256-261)CertificateTypeStakeDeregistration(33-33)StakeDelegationCertificate(294-300)CertificateTypeStakeDelegation(34-34)PoolRegistrationCertificate(435-448)CertificateTypePoolRegistration(35-35)GenesisKeyDelegationCertificate(653-660)CertificateTypeGenesisKeyDelegation(37-37)MoveInstantaneousRewardsCertificate(733-738)CertificateTypeMoveInstantaneousRewards(38-38)StakeVoteDelegationCertificate(915-922)CertificateTypeStakeVoteDelegation(42-42)StakeRegistrationDelegationCertificate(964-971)CertificateTypeStakeRegistrationDelegation(43-43)VoteRegistrationDelegationCertificate(1007-1014)CertificateTypeVoteRegistrationDelegation(44-44)StakeVoteRegistrationDelegationCertificate(1055-1063)CertificateTypeStakeVoteRegistrationDelegation(45-45)AuthCommitteeHotCertificate(1116-1122)CertificateTypeAuthCommitteeHot(46-46)ResignCommitteeColdCertificate(1162-1168)CertificateTypeResignCommitteeCold(47-47)RegistrationDrepCertificate(1211-1218)CertificateTypeRegistrationDrep(48-48)DeregistrationDrepCertificate(1262-1268)CertificateTypeDeregistrationDrep(49-49)UpdateDrepCertificate(1303-1309)CertificateTypeUpdateDrep(50-50)LeiosEbCertificate(1352-1361)CertificateTypeLeiosEb(51-51)ledger/compat.go (4)
PoolRetirementCertificate(66-66)Certificate(64-64)StakeDelegationCertificate(68-68)PoolRegistrationCertificate(67-67)
🔇 Additional comments (1)
ledger/common/common_test.go (1)
935-936: ****The original review comment is based on a false premise.
LeiosEbis tested inTestCertificateTypeCoverage(line 902), notTestCertificateTypeMethods(lines 747-899)—these are two separate test functions.LeiosEbCertificate.Type()is correctly implemented and returnsuint(CertificateTypeLeiosEb). The absence of aCertTypefield is intentional; unlike other certificate types,LeiosEbCertificateimplementsType()directly without storing the type as a field. No issues or test coverage gaps exist.Likely an incorrect or invalid review comment.
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
889d75d to
baeff1d
Compare
Summary by CodeRabbit