-
Notifications
You must be signed in to change notification settings - Fork 154
Conversation
d43223f
to
72d2c32
Compare
/update-branch |
Codecov Report
@@ Coverage Diff @@
## master #126 +/- ##
==========================================
+ Coverage 60.73% 61.15% +0.41%
==========================================
Files 27 28 +1
Lines 2045 2085 +40
==========================================
+ Hits 1242 1275 +33
- Misses 763 768 +5
- Partials 40 42 +2
Continue to review full report at Codecov.
|
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 like the approach a lot, thanks for working on this @isacikgoz! A couple of minor comments noted
printer/printer_test.go
Outdated
Print("test string") | ||
Flush() | ||
|
||
assert.Equal(t, "[\n \"test string\"\n]\n", string(mw.buffer)) |
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.
Can we add to the assertions a check for the state of printer.Lines
?
printer/printer_test.go
Outdated
Print("test string-1") | ||
Print("test string-2") | ||
Flush() | ||
assert.Equal(t, "[\n \"test string-1\",\n \"test string-2\"\n]\n", string(mw.buffer)) |
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.
Same check for printer.Lines
here
Co-Authored-By: Miguel de la Cruz <[email protected]>
Co-Authored-By: Miguel de la Cruz <[email protected]>
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!! LGTM 👍
9ad4704
to
69f4b58
Compare
Summary
Add tests to printer package, a humble start for refactoring.
Ticket Link
No tickets yet.