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

Function CreateOSSFuzzClient

clients/ossfuzz/client.go:56–62  ·  view source on GitHub ↗

CreateOSSFuzzClient returns a client which implements RepoClient interface.

(ossFuzzStatusURL string)

Source from the content-addressed store, hash-verified

54
55// CreateOSSFuzzClient returns a client which implements RepoClient interface.
56func CreateOSSFuzzClient(ossFuzzStatusURL string) clients.RepoClient {
57 return &client{
58 ctx: context.Background(),
59 statusURL: ossFuzzStatusURL,
60 projects: map[string]bool{},
61 }
62}
63
64// CreateOSSFuzzClientEager returns a OSS Fuzz Client which has already fetched and parsed the status file.
65func CreateOSSFuzzClientEager(ossFuzzStatusURL string) (clients.RepoClient, error) {

Callers 4

GetClientsFunction · 0.92
RunFunction · 0.92
TestClientFunction · 0.85
TestAllClientMethodsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestClientFunction · 0.68
TestAllClientMethodsFunction · 0.68