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
@@ -2,6 +2,7 @@ package inbox
import "testing"
// TestClaimAcquiresThreadLease verifies claim acquires thread lease.
func TestClaimAcquiresThreadLease(t *testing.T) {
t.Parallel()
@@ -34,6 +35,7 @@ func TestClaimAcquiresThreadLease(t *testing.T) {
}
}
// TestClaimRejectsWhenThreadMissing verifies claim rejects when thread missing.
func TestClaimRejectsWhenThreadMissing(t *testing.T) {
t.Parallel()
@@ -51,6 +53,7 @@ func TestClaimRejectsWhenThreadMissing(t *testing.T) {
assertErrorJSON(t, stdout, "not_found")
}
// TestClaimRejectsWhenThreadAlreadyClaimed verifies claim rejects when thread already claimed.
func TestClaimRejectsWhenThreadAlreadyClaimed(t *testing.T) {
t.Parallel()
@@ -79,6 +82,7 @@ func TestClaimRejectsWhenThreadAlreadyClaimed(t *testing.T) {
assertErrorJSON(t, stdout, "lease_conflict")
}
// TestClaimRecordsRequestedLeaseDuration verifies claim records requested lease duration.
func TestClaimRecordsRequestedLeaseDuration(t *testing.T) {
t.Parallel()