Skip to content

Commit 93a759d

Browse files
author
Ada
committed
fix: Apply gofmt formatting to test files
1 parent 39ef337 commit 93a759d

2 files changed

Lines changed: 32 additions & 32 deletions

File tree

server/message_store_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,17 @@ func TestMessageStoreGetMessages(t *testing.T) {
147147

148148
func TestMessageStoreAddMessage(t *testing.T) {
149149
tests := []struct {
150-
name string
151-
sessionID string
152-
role string
153-
content string
154-
existingData []byte
155-
getErr *model.AppError
156-
setErr *model.AppError
157-
wantErr bool
158-
wantMessageID string
159-
wantRole string
160-
wantContent string
150+
name string
151+
sessionID string
152+
role string
153+
content string
154+
existingData []byte
155+
getErr *model.AppError
156+
setErr *model.AppError
157+
wantErr bool
158+
wantMessageID string
159+
wantRole string
160+
wantContent string
161161
}{
162162
{
163163
name: "add first message",

server/output_handler_test.go

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -374,18 +374,18 @@ func TestOutputHandlerPostBotMessage(t *testing.T) {
374374
handler := NewOutputHandler(plugin)
375375

376376
tests := []struct {
377-
name string
378-
content string
377+
name string
378+
content string
379379
shouldPost bool
380380
}{
381381
{
382-
name: "normal message",
383-
content: "Hello, world!",
382+
name: "normal message",
383+
content: "Hello, world!",
384384
shouldPost: true,
385385
},
386386
{
387-
name: "empty message",
388-
content: "",
387+
name: "empty message",
388+
content: "",
389389
shouldPost: false,
390390
},
391391
}
@@ -417,33 +417,33 @@ func TestOutputHandlerPostRawMessage(t *testing.T) {
417417
handler := NewOutputHandler(plugin)
418418

419419
tests := []struct {
420-
name string
421-
data string
422-
wantMsg string
420+
name string
421+
data string
422+
wantMsg string
423423
shouldPost bool
424424
}{
425425
{
426-
name: "single line text",
427-
data: "simple text",
428-
wantMsg: "simple text",
426+
name: "single line text",
427+
data: "simple text",
428+
wantMsg: "simple text",
429429
shouldPost: true,
430430
},
431431
{
432-
name: "multi-line text",
433-
data: "line 1\nline 2\nline 3",
434-
wantMsg: "```\nline 1\nline 2\nline 3\n```",
432+
name: "multi-line text",
433+
data: "line 1\nline 2\nline 3",
434+
wantMsg: "```\nline 1\nline 2\nline 3\n```",
435435
shouldPost: true,
436436
},
437437
{
438-
name: "JSON-like text",
439-
data: `{"key": "value"}`,
440-
wantMsg: "```\n{\"key\": \"value\"}\n```",
438+
name: "JSON-like text",
439+
data: `{"key": "value"}`,
440+
wantMsg: "```\n{\"key\": \"value\"}\n```",
441441
shouldPost: true,
442442
},
443443
{
444-
name: "empty text",
445-
data: "",
446-
wantMsg: "",
444+
name: "empty text",
445+
data: "",
446+
wantMsg: "",
447447
shouldPost: false,
448448
},
449449
}

0 commit comments

Comments
 (0)