MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / findBranchSpec

Function findBranchSpec

internal/store/gitstore_test.go:483–490  ·  view source on GitHub ↗
(branches []testBranchSpec, name string)

Source from the content-addressed store, hash-verified

481}
482
483func 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
492func assertRepositoryBranchAndContents(t *testing.T, repoDir, branch, wantContents string) {
493 t.Helper()

Callers 1

setupGitRemoteRepositoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected