Skip to content
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

Issue: #44: (New feature) Add option to set default peeks aka context lines #45

Merged
merged 1 commit into from
Sep 8, 2018

Conversation

shadyabhi
Copy link

This sets the default_context_lines to 2. Let me know if this is not intended.


for _, tt := range testCases {
if err := c.SetPeeks(tt.in); err != nil {
testhelper.Assert(t, tt.err == true, "Didn't expect error to be returned, input: %s", tt.in)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should omit comparison to bool constant, can be simplified to tt.err

@codecov-io
Copy link

codecov-io commented Sep 6, 2018

Codecov Report

Merging #45 into master will increase coverage by 0.36%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #45      +/-   ##
=========================================
+ Coverage   85.13%   85.5%   +0.36%     
=========================================
  Files           8       8              
  Lines         397     407      +10     
=========================================
+ Hits          338     348      +10     
  Misses         30      30              
  Partials       29      29
Impacted Files Coverage Δ
binding/binding.go 97.75% <ø> (ø) ⬆️
conflict/conflict.go 81.31% <100%> (+2.3%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60d58b0...4c08789. Read the comment docs.

@mkchoi212 mkchoi212 merged commit 024a9a9 into mkchoi212:master Sep 8, 2018
@mkchoi212
Copy link
Owner

Looks great! Thanks for the contribution 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants