(run, name string)
| 82 | } |
| 83 | |
| 84 | func restEntry(run, name string) loggedRequest { |
| 85 | method, path, _ := strings.Cut(name, " ") |
| 86 | return loggedRequest{Run: run, Binary: "gh", Method: method, Host: apiHost, Path: path, Name: name} |
| 87 | } |
| 88 | |
| 89 | func TestCmdScaffold(t *testing.T) { |
| 90 | const repoName = `query RepoName { repository(owner: "o", name: "r") { name } }` |