Will Norris
5afbb4a7c9
add test helper methods
add methods for testing request method, request form values, and URL
parse error
13 years ago
Will Norris
2e68086dfc
more UnauthenticatedRateLimitedTransport tests
add test to check for required fields, as well as test for default vs
custom transport.
13 years ago
Quinn Slack
03fb3ab430
Add UnauthenticatedRateLimitedTransport
This allows for making unauthenticated requests subject to your
application's rate limit (as opposed to the lower rate limit for
anonymous requests)
13 years ago
Will Norris
d3d9655fad
add ListAll and Create methods for repositories
13 years ago
Will Norris
8f5d9b1f80
extract logic for determining boolean API response
13 years ago
Will Norris
8c2a5ff206
cleanup tests (no substantive chnages)
use temporary variable to prevent mismatch between tests and resulting
error messages.
13 years ago
Will Norris
7ab719a7d3
add test for internal http client's Do() func
13 years ago
Will Norris
158c7cec39
add test for invalid URL passed to NewRequest
also add specific error type checking for invalid JSON test
13 years ago
Will Norris
7b9456bc0d
move library under 'github' directory
This now aligns with the (pretty strong) golang convention of the
package name matching the path basename
13 years ago
Will Norris
57131f1513
simplify golden value in test case
13 years ago
Will Norris
01e915341c
properly handle API errors with no response body
this is particularly important for methods like
Organizations.CheckMembership which return a 404 to indicate a
successful response of "false".
13 years ago
Will Norris
aa0a125b89
initial checkin of go-github code
This commit adds the core library funcationality and establishes the
general calling style and testing structure. Only a few GitHub API
methods related to organizations and repositories are included in this
first commit, mainly to cement the calling style.
13 years ago