cli/pkg/search
Andy Feller bdfd51ca7f Fix search tests around totals, initialization
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
2025-04-15 14:43:10 -04:00
..
query.go incorporate code review feedback 2023-05-08 18:04:52 -06:00
query_test.go Merge branch 'trunk' into gh-search-code 2023-04-26 18:48:24 -06:00
result.go Add json export flags to variable list command (#8516) 2024-01-17 10:09:09 -08:00
result_test.go 💅 json export 2023-06-09 17:36:19 +02:00
searcher.go Fix remaining search logic totals 2025-04-15 08:36:45 -04:00
searcher_mock.go implement code search 2023-04-26 18:38:35 -06:00
searcher_test.go Fix search tests around totals, initialization 2025-04-15 14:43:10 -04:00