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