This commit is focused on fixing the `searcher` tests for a few reasons: 1. Correcting the `.Total` logic in the previous commit caused changes to tests to fail 2. Tests involving results that exceed the max per page have been improved with new initialize helper, allowing testing table scenarios to be self contained 3. Tests that stub JSON response payloads have been standardized on maps rather than GitHub type primitives (Repository, Issue, Commit, Code, etc) 4. Tests had some minor formatting changes to make them easier to understand and maintain |
||
|---|---|---|
| .. | ||
| query.go | ||
| query_test.go | ||
| result.go | ||
| result_test.go | ||
| searcher.go | ||
| searcher_mock.go | ||
| searcher_test.go | ||