Remove markdown test docs and document tests inline

This commit is contained in:
2026-03-24 02:30:38 +08:00
parent fb2b2dc8be
commit fd2b57feaf
257 changed files with 174 additions and 10431 deletions
@@ -6,6 +6,7 @@ import (
"testing"
)
// TestShowReturnsThreadAndMessageHistory verifies show returns the thread with ordered message history.
func TestShowReturnsThreadAndMessageHistory(t *testing.T) {
t.Parallel()
@@ -65,6 +66,7 @@ func TestShowReturnsThreadAndMessageHistory(t *testing.T) {
}
}
// TestShowIncludesArtifactsPerMessage verifies show includes message artifacts in the thread payload.
func TestShowIncludesArtifactsPerMessage(t *testing.T) {
t.Parallel()
@@ -122,6 +124,7 @@ func TestShowIncludesArtifactsPerMessage(t *testing.T) {
}
}
// TestShowMarkReadAdvancesReadCursor verifies show --mark-read clears the thread from unread fetch results.
func TestShowMarkReadAdvancesReadCursor(t *testing.T) {
t.Parallel()
@@ -176,6 +179,7 @@ func TestShowMarkReadAdvancesReadCursor(t *testing.T) {
assertErrorJSON(t, stdout, "no_matching_work")
}
// TestShowRejectsWhenThreadMissing verifies show returns not_found for an unknown thread.
func TestShowRejectsWhenThreadMissing(t *testing.T) {
t.Parallel()
@@ -193,4 +197,3 @@ func TestShowRejectsWhenThreadMissing(t *testing.T) {
}
assertErrorJSON(t, stdout, "not_found")
}