From 320de746f7a2985b60c8564a0e65bdf231e840b7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Sep 2025 10:56:27 +0300 Subject: use gofumpt --- internal/lsp/instruction_table_test.go | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'internal/lsp/instruction_table_test.go') diff --git a/internal/lsp/instruction_table_test.go b/internal/lsp/instruction_table_test.go index 06364db..ff750ca 100644 --- a/internal/lsp/instruction_table_test.go +++ b/internal/lsp/instruction_table_test.go @@ -3,22 +3,22 @@ package lsp import "testing" func TestFindFirstInstructionInLine_Table(t *testing.T) { - cases := []struct{ - name string - line string - instr string - }{ - {"strict_inline_marker", ">do> trailing", "do"}, - {"c_block", "x /* add docs */ y", "add docs"}, - {"html_comment", " code", "fix"}, - {"slash_slash", "code // please refactor", "please refactor"}, - {"hash", "# summarize", "summarize"}, - {"double_dash", "-- rewrite quickly", "rewrite quickly"}, - } - for _, c := range cases { - instr, _, ok := findFirstInstructionInLine(c.line) - if !ok || instr != c.instr { - t.Fatalf("%s: got %q ok=%v", c.name, instr, ok) - } - } + cases := []struct { + name string + line string + instr string + }{ + {"strict_inline_marker", ">do> trailing", "do"}, + {"c_block", "x /* add docs */ y", "add docs"}, + {"html_comment", " code", "fix"}, + {"slash_slash", "code // please refactor", "please refactor"}, + {"hash", "# summarize", "summarize"}, + {"double_dash", "-- rewrite quickly", "rewrite quickly"}, + } + for _, c := range cases { + instr, _, ok := findFirstInstructionInLine(c.line) + if !ok || instr != c.instr { + t.Fatalf("%s: got %q ok=%v", c.name, instr, ok) + } + } } -- cgit v1.2.3