(branches []testBranchSpec, name string)
| 481 | } |
| 482 | |
| 483 | func findBranchSpec(branches []testBranchSpec, name string) (testBranchSpec, bool) { |
| 484 | for _, branch := range branches { |
| 485 | if branch.name == name { |
| 486 | return branch, true |
| 487 | } |
| 488 | } |
| 489 | return testBranchSpec{}, false |
| 490 | } |
| 491 | |
| 492 | func assertRepositoryBranchAndContents(t *testing.T, repoDir, branch, wantContents string) { |
| 493 | t.Helper() |
no outgoing calls
no test coverage detected