Test/GitHub oauth#76
Conversation
|
thanks for adding oauth test coverage, the table-driven tests for AuthorizeURL, joinScopes and ExchangeCode (including timeout and context cancellation) look thorough and are exactly what this package needs. i held off merging because internal/github/oauth.go in this branch does not compile. go build reports: internal/github/oauth.go:22:1: syntax error: non-declaration statement outside function body looks like a few edits got mangled in oauth.go specifically:
the test file itself is fine. could you restore oauth.go to a buildable state (the AuthorizeURL/joinScopes/ExchangeCode bodies as they were, and either declare tokenEndpoint or keep the literal url) and push again? happy to merge as soon as go build ./... and go test ./internal/github/... pass. thanks! |
|
Okay I'll work on that |
|
thanks for this. heads up before we can merge: internal/github/oauth.go still does not compile. running go build ./internal/github/... fails with syntax errors, e.g. 'tq := u.Query()' sitting outside any function body around line 22, a truncated joinScopes that ends with 'eturn out' on line 39, and a missing func declaration for the authorize-url builder plus a broken ExchangeCode body near lines 54-60. looks like the authorize-url helper got partially deleted/garbled. could you fix oauth.go so it builds cleanly and i'll merge. leaving this open for now. |
closes #39