Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-tools/mage/gotest.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}

func makeGoTestArgs(name string) GoTestArgs {
fileName := fmt.Sprintf("build/TEST-go-%s", strings.Replace(strings.ToLower(name), " ", "_", -1))

Check failure on line 49 in dev-tools/mage/gotest.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

QF1004: could use strings.ReplaceAll instead (staticcheck)
params := GoTestArgs{
LogName: name,
Race: RaceDetector,
Expand All @@ -64,8 +64,8 @@

func makeGoTestArgsForModule(name, module string) GoTestArgs {
fileName := fmt.Sprintf("build/TEST-go-%s-%s",
strings.Replace(strings.ToLower(name), " ", "_", -1),

Check failure on line 67 in dev-tools/mage/gotest.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

QF1004: could use strings.ReplaceAll instead (staticcheck)
strings.Replace(strings.ToLower(module), " ", "_", -1),

Check failure on line 68 in dev-tools/mage/gotest.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

QF1004: could use strings.ReplaceAll instead (staticcheck)
)
params := GoTestArgs{
LogName: fmt.Sprintf("%s-%s", name, module),
Expand Down Expand Up @@ -261,6 +261,7 @@
testArgs = append(testArgs,
"-covermode=atomic",
"-coverprofile="+params.CoverageProfileFile,
"-coverpkg=./...", // needed to calculate the coverage across the elastic-agent packages
)
}

Expand Down
Loading