cli/pkg/cmd/discussion/client
Babak K. Shandiz 19369d0444
test(discussion/client): improve GetWithComments test coverage
Inline all JSON response helpers (getWithCommentsResp, wrapCommentsBlock,
commentNode) to avoid cross-test coupling. Add missing test cases for
empty comments, first page newest reversal, multiple replies on a single
comment, and repo not found. Populate the "maps comments with replies"
case with non-zero field values and use a single assert.Equal for the
full Discussion struct. Match real API error responses for discussions
disabled and repo not found cases. Rename wantDisc to assertDisc across
all client test functions and require it for non-error cases.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-28 10:38:19 +01:00
..
client.go feat(discussion/client): add GetCommentReplies with paginated reply fetching 2026-04-27 10:57:45 +01:00
client_impl.go feat(discussion/client): add GetCommentReplies with paginated reply fetching 2026-04-27 10:57:45 +01:00
client_impl_test.go test(discussion/client): improve GetWithComments test coverage 2026-04-28 10:38:19 +01:00
client_mock.go feat(discussion/client): add GetCommentReplies with paginated reply fetching 2026-04-27 10:57:45 +01:00
types.go feat(discussion/client): add GetCommentReplies with paginated reply fetching 2026-04-27 10:57:45 +01:00