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"
)
// TestSendCreatesNewThread verifies send creates a pending thread with the initial task message.
func TestSendCreatesNewThread(t *testing.T) {
t.Parallel()
@@ -45,6 +46,7 @@ func TestSendCreatesNewThread(t *testing.T) {
}
}
// TestSendAppendsMessageToExistingThread verifies send appends a message without creating a new thread.
func TestSendAppendsMessageToExistingThread(t *testing.T) {
t.Parallel()
@@ -88,6 +90,7 @@ func TestSendAppendsMessageToExistingThread(t *testing.T) {
}
}
// TestSendReadsBodyFromBodyFile verifies send loads the message body from a body file.
func TestSendReadsBodyFromBodyFile(t *testing.T) {
t.Parallel()
@@ -139,6 +142,7 @@ func TestSendReadsBodyFromBodyFile(t *testing.T) {
}
}
// TestSendAttachesArtifactWithMetadata verifies send persists an artifact and its metadata on the message.
func TestSendAttachesArtifactWithMetadata(t *testing.T) {
t.Parallel()
@@ -190,6 +194,7 @@ func TestSendAttachesArtifactWithMetadata(t *testing.T) {
}
}
// TestSendRejectsInvalidPayloadJSON verifies send returns invalid_input for malformed payload JSON.
func TestSendRejectsInvalidPayloadJSON(t *testing.T) {
t.Parallel()
@@ -209,6 +214,7 @@ func TestSendRejectsInvalidPayloadJSON(t *testing.T) {
assertErrorJSON(t, stdout, "invalid_input")
}
// TestSendRejectsInvalidArtifactMetadataJSON verifies send returns invalid_input for malformed artifact metadata JSON.
func TestSendRejectsInvalidArtifactMetadataJSON(t *testing.T) {
t.Parallel()