Commit 7b71c82
authored
refactor: move e2e_test.go and its testdata to internal (#2934)
Move `e2e_test.go` and related test data to internal/integration.
- Change package to `integration_test` following Go's convention for
external test packages. This ensures e2e test only interact with the
exported APIs (which it is already doing).
- The `e2e` specific test data has been moved from
`internal/testdata/e2e` to `internal/integration/testdata/e2e`. This
adheres to the principle of co-location, keeping test data alongside the
tests that use it.
- Update testing doc and workflow to reflect changes.
The rest of testdata should also be moved to out of root into `internal`
and co-locate in the package of the test, will do that in a separate PR.
For #28421 parent c12ef6e commit 7b71c82
File tree
34 files changed
+5
-5
lines changed- .github/workflows
- doc
- internal/integration
- testdata
- e2e
- configure
- api_root/google/cloud
- another-library/v3
- new-library-path/v2
- pubsub/v1
- repo_init
- .librarian
- google-cloud-pubsub/v1
- generate
- api_root/google/cloud
- future/v2
- pubsub/v1
- multi_repo_all_fail_init/.librarian
- multi_repo_init/.librarian
- multi_repo_one_fails_init/.librarian
- repo_init
- .librarian
- google-cloud-future/v2
- google-cloud-pubsub/v1
- release/stage
- multiple_commits
- repo_init
- .librarian
- google-cloud-pubsub/v1
- multiple_nested_commits
- repo_init/.librarian
- single_commit
- repo_init/.librarian
34 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments