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

chore(install): Refactor re.setOutput to use bufio scanner #1449

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rthorn-nr
Copy link
Contributor

Also fixes invalid JSON warning message on empty string caused by newline in output. Alternative to #1448

@codecov
Copy link

codecov bot commented Apr 16, 2023

Codecov Report

Attention: Patch coverage is 62.50000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 47.52%. Comparing base (ed874ac) to head (452f1a1).
Report is 336 commits behind head on main.

Files with missing lines Patch % Lines
...ernal/install/execution/go_task_recipe_executor.go 62.50% 6 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1449      +/-   ##
==========================================
- Coverage   47.53%   47.52%   -0.02%     
==========================================
  Files         123      123              
  Lines        7416     7420       +4     
==========================================
+ Hits         3525     3526       +1     
- Misses       3747     3748       +1     
- Partials      144      146       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

amolero-nr
amolero-nr previously approved these changes Apr 17, 2023
@@ -486,3 +484,67 @@ tasks:
assert.Empty(t, e.GetOutput().Metadata()["something"])
assert.Equal(t, "very", e.GetOutput().Metadata()["clean"])
}

func Test_mergeStringJSON(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a long test, perhaps we could break it into many small tests?

Copy link
Contributor

@Julien4218 Julien4218 left a comment

Choose a reason for hiding this comment

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

Maybe rework the test to be more focus and smaller.

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.

3 participants