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

Admin_ES_cmds_test Part II #6426

Merged
merged 4 commits into from
Oct 28, 2024
Merged

Admin_ES_cmds_test Part II #6426

merged 4 commits into from
Oct 28, 2024

Conversation

bowenxia
Copy link
Contributor

What changed?
Added test for admin_es_cmds
Refactored prints used stdout to use IOHandler

Why?
code coverage week

How did you test it?
unit test

Potential risks

Release notes

Documentation Changes

Copy link

codecov bot commented Oct 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.12%. Comparing base (b8f6da5) to head (53445ff).
Report is 4 commits behind head on master.

Additional details and impacted files
Files with missing lines Coverage Δ
tools/cli/admin_elastic_search_commands.go 82.08% <100.00%> (+43.81%) ⬆️

... and 14 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@@ -390,7 +392,7 @@ func GenerateReport(c *cli.Context) error {
}
buckets = groupby["buckets"].([]interface{})
if len(buckets) == 0 {
fmt.Println("no matching bucket")
output.Write([]byte("no matching bucket"))
Copy link
Contributor

Choose a reason for hiding this comment

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

let's add \n at the end of the string to match with previous behavior which was calling Println

@bowenxia bowenxia enabled auto-merge (squash) October 28, 2024 16:46
@bowenxia bowenxia merged commit b9afce4 into master Oct 28, 2024
19 checks passed
@bowenxia bowenxia deleted the xbowen/admin_es_cmds_test_02 branch October 28, 2024 17:20
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