-
Notifications
You must be signed in to change notification settings - Fork 524
tealdbg: Replace LocalRunner.Run with LocalRunner.RunAll #3805
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
tealdbg: Replace LocalRunner.Run with LocalRunner.RunAll #3805
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3805 +/- ##
==========================================
+ Coverage 49.83% 49.85% +0.02%
==========================================
Files 392 392
Lines 68719 68713 -6
==========================================
+ Hits 34243 34260 +17
+ Misses 30716 30703 -13
+ Partials 3760 3750 -10
Continue to review full report at Codecov.
|
algorandskiy
left a 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.
Tests look good but please exclude testify upgrade from this PR
|
@algorandskiy Thanks for the quick review. I've got a follow up question inline below.
Can you elaborate on why you'd like the upgrade to be excluded?
|
|
We usually do not upgrade dependencies without a strict need. I do not see a strict need here. |
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.
edit: never mind, I was reading the wrong thing
algorandskiy
left a 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.
I missed the part "testify 1.7.1 has ErrorContains" that is used in this PR. I guess LGTM then.
Summary
Removes
LocalRunner.Runin favor ofLocalRunner.RunAllto ensure tests follow the same debugging logic astealdbgexecution.LocalRunner.Runexists only for testing purposes. Since there's no (known) reason to retain 2 paths for the same logic, I opted to removeRun.RunAll's different method signature. I made attempts to introduce testing facilities that I felt simplify test writing and may later be useful in other tests. As a nascent Go programmer, it's unclear to me if I defined helper functions in reasonable places. I welcome reviewer feedback.ErrorContains. Diff: stretchr/testify@v1.7.0...v1.7.1.Test Plan
Ran
tealdbgtests.