(owner, repo, defaultBranch, permission string)
| 52 | } |
| 53 | |
| 54 | func RepoNetworkStubResponse(owner, repo, defaultBranch, permission string) string { |
| 55 | return fmt.Sprintf(` |
| 56 | { "data": { "repo_000": { |
| 57 | "id": "REPOID", |
| 58 | "name": "%s", |
| 59 | "owner": {"login": "%s"}, |
| 60 | "defaultBranchRef": { |
| 61 | "name": "%s" |
| 62 | }, |
| 63 | "viewerPermission": "%s" |
| 64 | } } } |
| 65 | `, repo, owner, defaultBranch, permission) |
| 66 | } |
no outgoing calls
no test coverage detected