]> git.giacomolli.uk - onechat/blobdiff - terminal_test.go
Name private helpers for their owning feature
[onechat] / terminal_test.go
index 6f451d8386ab4eb584617c7b279785f30863058f..7f83b575dd42f427994dfc5223f1610ed2de023f 100644 (file)
@@ -47,7 +47,7 @@ func TestEventText(t *testing.T) {
                text  string
        }{
                {
                text  string
        }{
                {
-                       name: "reply as it is",
+                       name: "keeps the complete reply text",
                        event: Event{
                                Kind: "reply",
                                Text: "Done.",
                        event: Event{
                                Kind: "reply",
                                Text: "Done.",
@@ -55,7 +55,7 @@ func TestEventText(t *testing.T) {
                        text: "Done.",
                },
                {
                        text: "Done.",
                },
                {
-                       name: "own user message not shown",
+                       name: "hides the current terminal user message",
                        event: Event{
                                Kind:   "user",
                                Text:   "typed",
                        event: Event{
                                Kind:   "user",
                                Text:   "typed",
@@ -64,7 +64,7 @@ func TestEventText(t *testing.T) {
                        text: "",
                },
                {
                        text: "",
                },
                {
-                       name: "user message of another source marked",
+                       name: "marks a user message from another source",
                        event: Event{
                                Kind:   "user",
                                Text:   "from the phone",
                        event: Event{
                                Kind:   "user",
                                Text:   "from the phone",
@@ -73,7 +73,7 @@ func TestEventText(t *testing.T) {
                        text: "[telegram] from the phone",
                },
                {
                        text: "[telegram] from the phone",
                },
                {
-                       name: "start of a subagent",
+                       name: "marks the start of a subagent",
                        event: Event{
                                Kind: "subagent",
                                Text: "GreenOtter",
                        event: Event{
                                Kind: "subagent",
                                Text: "GreenOtter",
@@ -81,7 +81,7 @@ func TestEventText(t *testing.T) {
                        text: "[GreenOtter] started",
                },
                {
                        text: "[GreenOtter] started",
                },
                {
-                       name: "report of a subagent whole",
+                       name: "keeps the complete subagent report",
                        event: Event{
                                Kind:   "work",
                                Text:   "[GreenOtter]\nThere are 3 files.\n\nFull chat: zoom(\"GreenOtter\")",
                        event: Event{
                                Kind:   "work",
                                Text:   "[GreenOtter]\nThere are 3 files.\n\nFull chat: zoom(\"GreenOtter\")",
@@ -91,7 +91,7 @@ func TestEventText(t *testing.T) {
                        text: "[GreenOtter]\nThere are 3 files.\n\nFull chat: zoom(\"GreenOtter\")",
                },
                {
                        text: "[GreenOtter]\nThere are 3 files.\n\nFull chat: zoom(\"GreenOtter\")",
                },
                {
-                       name: "long result cut",
+                       name: "clips a long tool result with its omitted count",
                        event: Event{
                                Kind: "echo",
                                Text: strings.Repeat("line\n", 12),
                        event: Event{
                                Kind: "echo",
                                Text: strings.Repeat("line\n", 12),