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

Tests for admin_kafka_commands #6479

Merged
merged 5 commits into from
Nov 6, 2024
Merged

Conversation

tubignat
Copy link
Contributor

@tubignat tubignat commented Nov 5, 2024

What changed?
Added unit tests for admin_kafka_commands.go

Why?
Increasing code coverage

How did you test it?

Potential risks

Release notes

Documentation Changes

@CLAassistant
Copy link

CLAassistant commented Nov 5, 2024

CLA assistant check
All committers have signed the CLA.

data = append(data, preambleVersion0)
data = append(data, encoded.Bytes()...)

err := os.WriteFile("input.txt", data, 0666)
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be better to use createTempFileWithContent from the repo here (same for the output), same for the cases below

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.47%. Comparing base (a7fa519) to head (6ef8eb0).
Report is 1 commits behind head on master.

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

... and 8 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 a7fa519...6ef8eb0. Read the comment docs.

@tubignat tubignat merged commit b9a2593 into cadence-workflow:master Nov 6, 2024
20 checks passed
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