(errMsg string)
| 94 | } |
| 95 | |
| 96 | func stubGQLClientFnErr(errMsg string) func(context.Context) (*githubv4.Client, error) { |
| 97 | return func(_ context.Context) (*githubv4.Client, error) { |
| 98 | return nil, errors.New(errMsg) |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | func stubRepoAccessCache(restClient *gogithub.Client, ttl time.Duration) *lockdown.RepoAccessCache { |
| 103 | cacheName := fmt.Sprintf("repo-access-cache-test-%d", time.Now().UnixNano()) |
no outgoing calls
no test coverage detected