Skip to content

Commit bb86f76

Browse files
committed
test reproducing the issue
1 parent 8bab0f5 commit bb86f76

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

formatter_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ func TestFormat(t *testing.T) {
113113
},
114114
expected: "Example is: {123 This is a test str, nothing more special -1.098743 main question error, is 42}",
115115
},
116+
"open bracket at the end of line of go file": {
117+
template: "type serviceHealth struct {",
118+
args: []any{},
119+
expected: "type serviceHealth struct {",
120+
},
116121
} {
117122
t.Run(name, func(t *testing.T) {
118123
assert.Equal(t, test.expected, stringFormatter.Format(test.template, test.args...))

0 commit comments

Comments
 (0)