cli/pkg/cmd/discussion/client
Max Beizer 5db230b317
test(discussion): assert GQL variables, add Bot actor and limit>100 cases
- Replace false-positive filter tests with GraphQLQuery responders that
  assert on actual GQL variables (first, after, states, answered, orderBy,
  categoryId in List; query string qualifiers in Search)
- Add Bot actor test case (Bot.ID maps to DiscussionActor.ID, Name is empty)
- Add limit>100 test cases for both List and Search to verify the
  per-iteration first variable is set correctly (100 on page 1, remainder
  on page 2)
- Fix limit>100 bug in client_impl.go: move variables["first"] assignment
  inside the loop so each iteration caps at min(remaining, 100)
- Remove intStr helper; use strconv.Itoa directly

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-22 16:36:07 -05:00
..
client.go fix(discussion/client): change list return type to pointer 2026-04-14 12:24:08 +01:00
client_impl.go test(discussion): assert GQL variables, add Bot actor and limit>100 cases 2026-04-22 16:36:07 -05:00
client_impl_test.go test(discussion): assert GQL variables, add Bot actor and limit>100 cases 2026-04-22 16:36:07 -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