Atlas › Test

TwoArgs

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

Package
go.temporal.io/server/tools/testrunner
Suite / test hierarchy
TestStripRunFromArgs/TwoArgs
Test
TwoArgs
Introduced at
testrunner.go ×2 Frontier kind: Joint frontier
Covered ranges
7
Covered lines
12
Covered files
1

Covered source

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

go.temporal.io/server/tools/testrunner/testrunner.go 12 covered LOC · 7 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 testrunner.go
456 > continue
457 > } else if arg == "-run" { testrunner.go
458 > skipNext = true testrunner.go
459 > continue
460 > } else if strings.HasPrefix(arg, "-run=") { testrunner.go
461 continue
462 }
463 > argsNoRun = append(argsNoRun, arg) testrunner.go
464 }
465 > return testrunner.go
466 }
467