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
@@ -59,6 +59,7 @@ func lastThreadMessageFromShow(t *testing.T, showResp map[string]any) map[string
return lastMessage
}
// TestUpdateMovesThreadToInProgress verifies update moves thread to in progress.
func TestUpdateMovesThreadToInProgress(t *testing.T) {
t.Parallel()
@@ -90,6 +91,7 @@ func TestUpdateMovesThreadToInProgress(t *testing.T) {
}
}
// TestUpdateMovesThreadToBlockedWithPayload verifies update moves thread to blocked with payload.
func TestUpdateMovesThreadToBlockedWithPayload(t *testing.T) {
t.Parallel()
@@ -125,6 +127,7 @@ func TestUpdateMovesThreadToBlockedWithPayload(t *testing.T) {
}
}
// TestUpdateAcceptsBodyFileAndArtifact verifies update accepts body file and artifact.
func TestUpdateAcceptsBodyFileAndArtifact(t *testing.T) {
t.Parallel()
@@ -182,6 +185,7 @@ func TestUpdateAcceptsBodyFileAndArtifact(t *testing.T) {
}
}
// TestUpdateRejectsInvalidPayloadJSON verifies update rejects invalid payload JSON.
func TestUpdateRejectsInvalidPayloadJSON(t *testing.T) {
t.Parallel()
@@ -204,6 +208,7 @@ func TestUpdateRejectsInvalidPayloadJSON(t *testing.T) {
assertErrorJSON(t, stdout, "invalid_input")
}
// TestUpdateRejectsNonOwner verifies update rejects non owner.
func TestUpdateRejectsNonOwner(t *testing.T) {
t.Parallel()