MCPcopy Index your code
hub / github.com/coder/coder / withResolveBranchPR

Function withResolveBranchPR

coderd/x/gitsync/worker_test.go:38–40  ·  view source on GitHub ↗
(f func(context.Context, string, gitprovider.BranchRef) (*gitprovider.PRRef, error))

Source from the content-addressed store, hash-verified

36type testRefresherOpt func(*testRefresherCfg)
37
38func withResolveBranchPR(f func(context.Context, string, gitprovider.BranchRef) (*gitprovider.PRRef, error)) testRefresherOpt {
39 return func(c *testRefresherCfg) { c.resolveBranchPR = f }
40}
41
42func withRefresherOpts(opts ...gitsync.RefresherOption) testRefresherOpt {
43 return func(c *testRefresherCfg) { c.refresherOpts = opts }

Calls

no outgoing calls

Tested by

no test coverage detected