-
Notifications
You must be signed in to change notification settings - Fork 1.5k
test: codecov for WasmHostFuncWrapper.cpp #5601
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
base: ripple/smart-escrow
Are you sure you want to change the base?
Conversation
e895a97
to
41c4225
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## ripple/smart-escrow #5601 +/- ##
=====================================================
+ Coverage 78.7% 78.8% +0.1%
=====================================================
Files 825 823 -2
Lines 73098 72962 -136
Branches 8548 8539 -9
=====================================================
- Hits 57553 57503 -50
+ Misses 15545 15459 -86
🚀 New features to boost your workflow:
|
61b2dcc
to
98b8986
Compare
e04bb6b
to
e9563a4
Compare
To many changes with just refactoring which distract from actual work. Please move all the renames / refactoring to the different PR |
@@ -1102,133 +1237,4 @@ class MockInstanceWrapper | |||
} | |||
}; | |||
|
|||
namespace test { | |||
bool | |||
testGetDataIncrement() |
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.
Where is it moved?
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.
I removed it, since the existing tests now give us full code coverage.
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.
Which test check for correct index increment?
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.
Several of the tests would fail if the index increment was wrong.
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.
As from our previous experience this error will be hard to find from just test failed. Better leave it
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.
Ok, brought it back but excluded it from codecov
e9563a4
to
fe7e924
Compare
moved to #5609 |
{ | ||
return Bytes(accountID_.begin(), accountID_.end()); | ||
} | ||
} | ||
uint8_t const a[] = {0x2b, 0x6a, 0x23, 0x2a, 0xa4, 0xc4, 0xbe, 0x41, |
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.
How were these test data values created?
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.
I think that was @oleks-rip. Either way, IMO out of scope of this PR.
This reverts commit e3beb9b.
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.
Awesome
High Level Overview of Change
This PR adds WASM tests to get 100% codecov on
WasmHostFuncWrapper.cpp
Context of Change
better testing
Type of Change
.gitignore
, formatting, dropping support for older tooling)Test Plan
Added WASM tests to cover all the code.
Rust code is here: ripple/craft#111