Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dnephin committed Sep 17, 2024
1 parent 4f35e55 commit 8af2bf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testjson/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ func rootTestPassed(p *Package, subtest TestCase) bool {
continue
}

// A TestCase name can exist more than once in an Execution due to
// the go test -count=n flag or when the input contains multiple separate
// test runs.
// Check the testcase has the correct ID for this subtest.
for _, subID := range p.subTests[tc.ID] {
if subID == subtest.ID {
return true
Expand Down

0 comments on commit 8af2bf1

Please sign in to comment.