databricks-cli/internal
Pieter Noordhuis dd3b7ec450
Define and use `testutil.TestingT` interface (#2003)
## Changes

Using an interface instead of a concrete type means we can pass
`*testing.T` directly or any wrapper type that implements a superset of
this interface. It prepares for more broad use of `acc.WorkspaceT`,
which enhances the testing object with helper functions for using a
Databricks workspace.

This eliminates the need to dereference a `*testing.T` field on a
wrapper type.

## Tests

n/a
2024-12-12 14:42:15 +00:00
..
acc Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
bugbash Add script to make testing of code on branches easier (#1844) 2024-10-21 17:56:17 +00:00
build Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
bundle Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
mocks Rewrite 'interface{} -> any' (#1959) 2024-12-05 15:37:24 +00:00
python Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
testdata Add support for non-Python ipynb notebooks to DABs (#1827) 2024-11-13 21:39:51 +00:00
testjsons Update Go SDK to 0.23.0 and use custom marshaller (#772) 2023-10-16 06:56:06 +00:00
testutil Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
alerts_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
api_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
auth_describe_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
clusters_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
completer_test.go Add trailing slash to directory to produce completions for (#1666) 2024-08-12 07:07:50 +00:00
dashboard_assumptions_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
filer_test.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
fs_cat_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
fs_cp_test.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
fs_ls_test.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
fs_mkdir_test.go Fix `TestAccFsMkdirWhenFileExistsAtPath` in isolated Azure environments (#1833) 2024-10-16 12:50:17 +00:00
fs_rm_test.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
git_clone_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
git_fetch_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
helpers.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
init_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
jobs_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
locker_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
repos_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
secrets_test.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
storage_credentials_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
sync_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
tags_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
unknown_command_test.go Add regression tests for CLI error output (#1566) 2024-07-10 06:38:06 +00:00
version_test.go Use cmdio in version command for `--output` flag (#419) 2023-06-01 12:03:22 +02:00
workspace_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00