Commit 68ab937
committed
Repair
### What does this PR do?
Repair the `modparser` tests that were inadvertently broken, and remove
unused/outdated `testdata/*/go.sum` files.
### Motivation
Offload #45714 which aims at migrating `modparser` as first Go module to
`bazel` (better have them individually cherry-pickable/revertable).
The tests were broken since #30061 when `require` blocks were removed
from `testdata/*/go.mod` files during a dependencies upgrade.
As the tests are not yet (or no longer?) running in CI, the breakage
went unnoticed.
### Describe how you validated your changes
- test failure: `TestFilterMatch/With_matches` expected to find
`["github.com/DataDog/datadog-agent/pkg/test"]` but got empty array.
All 7/7 test cases now pass.
- golangci-lint issues: 2 `perfsprint` violations (`fmt.Errorf` without
format specifiers should use `errors.New`).
### Additional Notes
#45714 or a follow-up PR will make sure the tests run in CI.modparser tests1 parent 3937bbf commit 68ab937
6 files changed
+14
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
This file was deleted.
This file was deleted.
0 commit comments