docs(agent-task view): explain test case rationale

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-09-09 12:24:09 +01:00
parent f8ff42a3f1
commit ec8f412cca
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -191,6 +191,7 @@ func Test_viewRun(t *testing.T) {
`),
},
{
// The user data should always be there, but we need to cover the code path.
name: "with session id, success, without user data (tty)",
tty: true,
opts: ViewOptions{
@ -224,6 +225,7 @@ func Test_viewRun(t *testing.T) {
`),
},
{
// This can happen when the session is just created and a PR is not yet available for it.
name: "with session id, success, without pr data (tty)",
tty: true,
opts: ViewOptions{
@ -249,6 +251,7 @@ func Test_viewRun(t *testing.T) {
`),
},
{
// The user data should always be there, but we need to cover the code path.
name: "with session id, success, without pr nor user data (tty)",
tty: true,
opts: ViewOptions{