Skip to content

Add tests for SourceGitProvider, SourceOCIProvider and ReceiverType flags - #6024

Open
manoj-1407 wants to merge 1 commit into
fluxcd:mainfrom
manoj-1407:test/flag-validation-coverage
Open

Add tests for SourceGitProvider, SourceOCIProvider and ReceiverType flags#6024
manoj-1407 wants to merge 1 commit into
fluxcd:mainfrom
manoj-1407:test/flag-validation-coverage

Conversation

@manoj-1407

Copy link
Copy Markdown

What did I change?

Added missing test coverage for three flag types that had no tests:

  • SourceGitProvider (internal/flags/source_git_provider.go)
  • SourceOCIProvider (internal/flags/source_oci_provider.go)
  • ReceiverType (internal/flags/receiver_type.go)

All other flag types in the same package already have corresponding _test.go files.

How did I test it?

go test ./internal/flags/... -tags='!e2e' -run "TestSourceGitProvider|TestSourceOCIProvider|TestReceiverType" -v

All tests pass.

…lags

Signed-off-by: manoj-1407 <manojkumar148700@gmail.com>
Assisted-by: Claude/claude-sonnet-4-6
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.

1 participant