Remove markdown test docs and document tests inline
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user