MCPcopy
hub / github.com/ossf/scorecard / GetBranch

Method GetBranch

clients/repo_client.go:43–43  ·  view source on GitHub ↗
(branch string)

Source from the content-addressed store, hash-verified

41 // Callers should ensure to Close the Reader when finished.
42 GetFileReader(filename string) (io.ReadCloser, error)
43 GetBranch(branch string) (*BranchRef, error)
44 GetCreatedAt() (time.Time, error)
45 GetDefaultBranchName() (string, error)
46 GetDefaultBranch() (*BranchRef, error)

Callers 5

BranchProtectionFunction · 0.65
TestBranchProtectionFunction · 0.65
TestAllClientMethodsFunction · 0.65

Implementers 8

Clientclients/localdir/client.go
Clientclients/git/client.go
MockRepoClientclients/mockclients/repo_client.go
MockRepoClientMockRecorderclients/mockclients/repo_client.go
clientclients/ossfuzz/client.go
Clientclients/githubrepo/client.go
Clientclients/gitlabrepo/client.go
Clientclients/azuredevopsrepo/client.go

Calls

no outgoing calls

Tested by 3

TestBranchProtectionFunction · 0.52
TestAllClientMethodsFunction · 0.52