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

Add Test Coverage for SatisfiedPolicy and enhance SpendPolicy tests #148

Merged
merged 2 commits into from Apr 16, 2024

Conversation

new0nebit
Copy link
Contributor

I started writing this code during the last hackathon for fun, practicing writing test cases. But I didn't finish it because I had to switch to the main task regarding consensus coverage. I felt bad for wipe out a work that had been done, so I ended up finishing the code and also making some changes to it. Initially, I was only aiming to cover the SatisfiedPolicy but got carried away and started covering the PolicyTypeAbove and PolicyTypePublicKey, completely overlooking the fact that you had already done this 😅 Anyway, here it is. I hope that this alternative approach and the additional scenarios will prove valuable to you 🙏

@lukechampine
Copy link
Member

Thanks for contributing more tests! I'll give this a proper review in the morning, but from a first pass it looks fine.

types/policy_test.go Outdated Show resolved Hide resolved
types/policy_test.go Outdated Show resolved Hide resolved
types/policy_test.go Outdated Show resolved Hide resolved
types/policy_test.go Outdated Show resolved Hide resolved
types/policy_test.go Outdated Show resolved Hide resolved
types/policy_test.go Outdated Show resolved Hide resolved
types/policy_test.go Outdated Show resolved Hide resolved
types/policy_test.go Outdated Show resolved Hide resolved
types/policy_test.go Outdated Show resolved Hide resolved
types/policy_test.go Outdated Show resolved Hide resolved
@lukechampine lukechampine merged commit f9d44a4 into SiaFoundation:master Apr 16, 2024
6 checks passed
new0nebit pushed a commit to new0nebit/core that referenced this pull request Apr 20, 2024
Add Test Coverage for SatisfiedPolicy and enhance SpendPolicy tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants