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/codegen_helpers_test.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'internal/lsp/codegen_helpers_test.go') diff --git a/internal/lsp/codegen_helpers_test.go b/internal/lsp/codegen_helpers_test.go index d897953..de43b7d 100644 --- a/internal/lsp/codegen_helpers_test.go +++ b/internal/lsp/codegen_helpers_test.go @@ -3,13 +3,20 @@ package lsp import "testing" func TestParseGoPackageName(t *testing.T) { - lines := []string{"// comment", "package mypkg // trailing"} - if got := parseGoPackageName(lines); got != "mypkg" { t.Fatalf("got %q", got) } - if got := parseGoPackageName([]string{"no package"}); got != "" { t.Fatalf("expected empty") } + lines := []string{"// comment", "package mypkg // trailing"} + if got := parseGoPackageName(lines); got != "mypkg" { + t.Fatalf("got %q", got) + } + if got := parseGoPackageName([]string{"no package"}); got != "" { + t.Fatalf("expected empty") + } } func TestDeriveGoFuncName(t *testing.T) { - if got := deriveGoFuncName("func Sum(a int) int { return a }"); got != "Sum" { t.Fatalf("got %q", got) } - if got := deriveGoFuncName("func (t *Type) Method(x int) {}"); got != "Method" { t.Fatalf("got %q", got) } + if got := deriveGoFuncName("func Sum(a int) int { return a }"); got != "Sum" { + t.Fatalf("got %q", got) + } + if got := deriveGoFuncName("func (t *Type) Method(x int) {}"); got != "Method" { + t.Fatalf("got %q", got) + } } - -- cgit v1.2.3