cli/pkg/cmd/discussion/client
Max Beizer 35e8cc93cf
test(discussion): add httpmock unit tests for DiscussionClient
Add comprehensive httpmock-based unit tests for the client package covering:
- List: success path, discussions disabled, limit/filter validation, pagination
- Search: success path, filter validation, pagination
- ListCategories: success path, discussions disabled

Tests use httpmock.Registry with defer Verify(t) to ensure all stubs
are exercised, following the established testing pattern in this repo.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-21 09:12:31 -05:00
..
client.go fix(discussion/client): change list return type to pointer 2026-04-14 12:24:08 +01:00
client_impl.go fix(discussion/client): remove reaction groups from list/search types 2026-04-14 14:50:40 +01:00
client_impl_test.go test(discussion): add httpmock unit tests for DiscussionClient 2026-04-21 09:12:31 -05:00
client_mock.go fix(discussion/client): change list return type to pointer 2026-04-14 12:24:08 +01:00
types.go fix(discussion/client): remove reaction groups from list/search types 2026-04-14 14:50:40 +01:00