Atlas › Test

OneArg

Exact test identity: go.temporal.io/server/tools/testrunner/TestStripRunFromArgs/OneArg

Package
go.temporal.io/server/tools/testrunner
Suite / test hierarchy
TestStripRunFromArgs/OneArg
Test
OneArg
Introduced at
testrunner.go ×1 Frontier kind: Joint frontier
Covered ranges
6
Covered lines
9
Covered files
1

Covered source

Expand a file to inspect source; the > gutter marks covered lines.

go.temporal.io/server/tools/testrunner/testrunner.go 9 covered LOC · 6 ranges

Open complete file

449 }
450
451 > func stripRunFromArgs(args []string) (argsNoRun []string) { testrunner.go
452 > var skipNext bool
453 > for _, arg := range args {
454 > if skipNext {
455 skipNext = false
456 continue
457 > } else if arg == "-run" { testrunner.go
458 skipNext = true
459 continue
460 > } else if strings.HasPrefix(arg, "-run=") { testrunner.go
461 > continue testrunner.go
462 }
463 > argsNoRun = append(argsNoRun, arg) testrunner.go
464 }
465 > return testrunner.go
466 }
467