-
Notifications
You must be signed in to change notification settings - Fork 822
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
Bitstamp/Kraken: Enhance test coverage #1423
Bitstamp/Kraken: Enhance test coverage #1423
Conversation
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.
Thanks for the update @Beadko 🚀! A linter issue is present as well.
ae7f069
to
0c40ad7
Compare
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.
Thanks for the changes; One pending item left. Looks good!
Also; you do have the option to merge master and not go through the pain of re-applying commits on top of it in a rebase. It's also easier for me to review the steps that occur. But if this is what you like do and you are used to doing it this way, then keep doing 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.
changes ACK.
@Beadko Merge required. |
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.
Once you merge/rebase master
branch, should be good! Thanks!
67dab95
to
2c36d82
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1423 +/- ##
==========================================
+ Coverage 43.83% 43.91% +0.08%
==========================================
Files 363 363
Lines 143963 143963
==========================================
+ Hits 63107 63228 +121
+ Misses 73270 73131 -139
- Partials 7586 7604 +18 |
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.
Thank you @Beadko for enhancing the test coverage! Some nitterinos found
f6a9733
to
eb3ba2d
Compare
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.
Thank you for making those changes!
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.
Hello, I received a panic testing this. After addressing it locally, there still appears to be test issues running the entire package's tests (ie from ./exchanges/bitstamp
running go test -race
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.
tACK! Thanks Beadko for making those changes!
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.
Should be the final batch of nits and then this looks good to merge! Nice stuff
exchanges/bitstamp/bitstamp_test.go
Outdated
assert.Positive(t, req.High, "High should be positive") | ||
assert.Positive(t, req.Low, "Low should be positive") | ||
assert.Positive(t, req.Close, "Close should be positive") | ||
assert.Positive(t, req.Open, "Low should be positive") |
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.
Looks like this one still remains
exchanges/bitstamp/bitstamp_test.go
Outdated
} | ||
} | ||
|
||
func TestBitstamp_GetHistoricCandlesExtended(t *testing.T) { | ||
pair, err := currency.NewPairFromString("BTCUSD") | ||
if err != nil { | ||
t.Fatal(err) | ||
t.Error("Invalid pair") |
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.
Let me know if this is something you were interested to do in this PR or not
…mp_GetHistoricCandles, TestBitstamp_GetHistoricCandlesExtended
5462aa6
to
6d65200
Compare
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.
Thanks @Beadko , looking good!
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.
reTACK
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.
reTACK
PR Description
Fix Bitstamp tests that are failing, improve the test coverage
Fixes # (issue)
Type of change
Please delete options that are not relevant and add an
x
in[]
as item is complete.How has this been tested
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration and
also consider improving test coverage whilst working on a certain feature or package.
Checklist