Skip to content

Commit 68499d8

Browse files
authored
Fix example test names to comply with Go 1.24 vet checks (#1203)
## What changes are proposed in this pull request? This PR updates the names of many `Example...` functions in `*_usage_test.go` files across multiple service packages to comply with stricter vet rules introduced in Go 1.24. - **WHAT**: Renamed example functions so that their names match real exported identifiers. - **WHY**: In Go 1.24, the `tests` analyzer in `go vet` enforces that example function names must map to valid exported identifiers. These stricter checks caused previously valid tests to fail during `go test`, even though the actual test logic remained unchanged. ## How is this tested? Validated by running `make test` locally with Go 1.24. All example tests now pass without build or vet errors. NO_CHANGELOG=true Co-authored-by: Omer Lachish <rauchy@users.noreply.github.com>
1 parent 68f3330 commit 68499d8

44 files changed

Lines changed: 48 additions & 48 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

service/billing/budgets_usage_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

service/billing/log_delivery_usage_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

service/catalog/catalogs_usage_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

service/catalog/connections_usage_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

service/catalog/external_locations_usage_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

service/catalog/metastore_assignments_usage_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

service/catalog/metastores_usage_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

service/catalog/schemas_usage_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

service/catalog/storage_credentials_usage_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

service/catalog/tables_usage_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)