cli/pkg/cmd/discussion/view
Babak K. Shandiz 54ddede12f
test(discussion/view): consolidate NewCmdView flag parsing tests
Replace scattered standalone test functions with a single table-driven
TestNewCmdView covering all arg/flag parsing: number, hash, URL, web,
comments, replies, limit, after, order, mutual exclusivity, and invalid
inputs. Uses shlex.Split for arg parsing and asserts opts fields
individually per case.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-28 11:03:55 +01:00
..
view.go fix(discussion view): guard against empty comment slice in replies mode 2026-04-27 18:46:14 +01:00
view_test.go test(discussion/view): consolidate NewCmdView flag parsing tests 2026-04-28 11:03:55 +01:00