diff options
| author | Paul Buetow <paul@buetow.org> | 2025-09-06 10:56:27 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-09-06 10:56:27 +0300 |
| commit | 320de746f7a2985b60c8564a0e65bdf231e840b7 (patch) | |
| tree | e70bcf50813dba411afa2934e774383124bbc99e /internal/testutil | |
| parent | 06247527d5170f329b454b42f59a3e4434ab1f4b (diff) | |
use gofumpt
Diffstat (limited to 'internal/testutil')
| -rw-r--r-- | internal/testutil/fixtures.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/internal/testutil/fixtures.go b/internal/testutil/fixtures.go index 41993d3..be18242 100644 --- a/internal/testutil/fixtures.go +++ b/internal/testutil/fixtures.go @@ -2,26 +2,25 @@ package testutil // MultilineDocBlock returns a realistic multi-line documentation block. func MultilineDocBlock() string { - return "// add adds two numbers\n// returns their sum" + return "// add adds two numbers\n// returns their sum" } // MultilineChatReply returns a multi-line assistant reply for chat tests. func MultilineChatReply() string { - return "Hello, world!\nThis is a multi-line reply." + return "Hello, world!\nThis is a multi-line reply." } // MultilineFunctionSuggestion returns a more realistic multi-line function body suggestion. func MultilineFunctionSuggestion() string { - return "(ctx context.Context, input string) (*CustData, error) {\n // TODO: implement\n return &CustData{}, nil\n}" + return "(ctx context.Context, input string) (*CustData, error) {\n // TODO: implement\n return &CustData{}, nil\n}" } // MarkdownCodeFence returns a fenced markdown snippet used in post-processing tests. func MarkdownCodeFence() string { - return "```go\nname := value\n```" + return "```go\nname := value\n```" } // MalformedJSON returns a deliberately malformed JSON string. func MalformedJSON() string { - return "{\"choices\":[{\"delta\":{\"content\":\"oops\"}}]" + return "{\"choices\":[{\"delta\":{\"content\":\"oops\"}}]" } - |
