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

PoX-4 unit testing #4698

Merged
merged 42 commits into from
May 3, 2024
Merged

PoX-4 unit testing #4698

merged 42 commits into from
May 3, 2024

Conversation

obycode
Copy link
Contributor

@obycode obycode commented Apr 19, 2024

Add Clarity unit testing for the pox-4 contract.

@obycode obycode changed the title Test/pox 4 unit PoX-4 unit testing Apr 19, 2024
@friedger
Copy link
Collaborator

Why not using the pox contract from stacks lib?

@obycode
Copy link
Contributor Author

obycode commented Apr 19, 2024

I was actually curious about that too. I think there was some reason related to coverage that @hugocaillard did that. I'll let him answer.

@friedger
Copy link
Collaborator

Coverage reports are broken. How do we ensure that the two pox files are always in sync? Maybe we can copy it over? Or make it a requirement?

@obycode obycode marked this pull request as ready for review April 25, 2024 21:00
@obycode
Copy link
Contributor Author

obycode commented Apr 25, 2024

Final coverage numbers:

Overall coverage rate:
  lines......: 96.1% (540 of 562 lines)
  functions......: 100.0% (60 of 60 functions)
  branches......: 80.7% (117 of 145 branches)

I believe that all of the remaining uncovered lines/branches are either unreachable or are from a weakness in Clarinet's coverage reporting.

hugocaillard
hugocaillard previously approved these changes Apr 29, 2024
Copy link
Collaborator

@hugocaillard hugocaillard left a comment

Choose a reason for hiding this comment

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

LGTM 🙌

@saralab saralab requested a review from kantai May 3, 2024 13:51
kantai
kantai previously approved these changes May 3, 2024
Copy link
Member

@kantai kantai left a comment

Choose a reason for hiding this comment

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

LGTM!

@obycode obycode enabled auto-merge May 3, 2024 15:13
The removal of package-lock.json causes `npm ci` to fail and it should
not be removed by this PR any way.
@obycode obycode dismissed stale reviews from kantai and hugocaillard via 9bce638 May 3, 2024 15:22
Copy link
Collaborator

@hugocaillard hugocaillard left a comment

Choose a reason for hiding this comment

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

LGTM

@obycode obycode added this pull request to the merge queue May 3, 2024
Merged via the queue into develop with commit a9c14f9 May 3, 2024
1 check passed
@obycode obycode deleted the test/pox-4-unit branch May 3, 2024 16:38
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