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