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

Adding more tests to admin_commands #6475

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

dkrotx
Copy link
Member

@dkrotx dkrotx commented Nov 4, 2024

What changed?
Added more tests of admin_commands

Why?
Unit-test coverage

How did you test it?

Potential risks

Release notes

Documentation Changes

Same way as existing table-tests
Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.92%. Comparing base (2655dc3) to head (3ee8b2b).
Report is 3 commits behind head on master.

Additional details and impacted files
Files with missing lines Coverage Δ
tools/cli/admin_commands.go 51.00% <100.00%> (+24.25%) ⬆️
tools/cli/clitest/context.go 100.00% <100.00%> (ø)

... and 11 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 2655dc3...3ee8b2b. Read the comment docs.

@@ -61,6 +61,15 @@ func BoolArgument(name string, value bool) CliArgument {
}
}

// Int64Argument introduces a new int64 argument for cli context
func Int64Argument(name string, value int64) CliArgument {
Copy link
Member

@davidporter-id-au davidporter-id-au Nov 5, 2024

Choose a reason for hiding this comment

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

Maybe we could just do this with generics? I see they have GenericFlag, but I dunno how easy it is to use.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm... that's true. At the same time, lots of those are just const-s, and then you have to convert them to types explicitly anyway.

@dkrotx dkrotx merged commit a926dd7 into cadence-workflow:master Nov 5, 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.

2 participants