Ran
|
Files
47
|
Run time
3s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
Diff support expansion and refactoring Expanded existing diff support, and refactored the code to support additional use cases and improve safety. The entire commit history is provided, but in summary: - Split compare_cfgs() into smaller bits. Now a diff on individual stanzas is supported using the compare_stanzas() function. - Expand diff header support. It's now possible to further manipulate headers, primarily this is used for setting the modification time for non-file objects. - Add new TermColor helper to provide context manager support around ANSI color manipulation on the terminal. This reduces the likelihood of bad TTY state. - Added helper functions: reduce_stanza() and is_equal() Squashed commit of the following: commit 37f15f20c Author: Lowell Alleman <lowell@kintyre.co> Date: Mon Feb 25 19:45:11 2019 -0500 Refactor compare_stanza() into private and public parts - Split compare_stanzas() into 2 parts. 1 Part is private and used by the public version and by compare_cfgs(). The public interface now returns a list, not an iterable. commit 5a0ec2428 Author: Lowell Alleman <lowell@kintyre.co> Date: Fri Feb 22 18:44:03 2019 -0500 Add new TermColor helper Created a new context-managing class as a replacement for the simple tty_color() function. I ran into an issue in the field where and unhandled exception in the diff library (surely caused by something external) left the terminal in a hard-to-read color. And that should just never happen. This context manager should keep this from being an issue. Written at 2AM after a 6 hour client working session. So, do more testing. commit 51866ea3d Author: Lowell Alleman <lowell@kintyre.co> Date: Mon Feb 25 16:06:24 2019 -0500 Fixed diff logic and tests - Fixed issues with diff core - Added 2 new unit tests since the las... (continued)
3332 of 3615 relevant lines covered (92.17%)
0.92 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|