We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dca32d0 commit 14b4079Copy full SHA for 14b4079
genprovider/internal/apitypes/test_helper.go
@@ -203,11 +203,11 @@ func runTestProgram(t *testing.T, d data) {
203
if err := temp.Execute(buf, d); err != nil {
204
t.Fatalf("error executing template: %v", err)
205
}
206
- bytes := buf.Bytes()
+ bs := buf.Bytes()
207
208
- formatted, err := format.Source(bytes)
+ formatted, err := format.Source(bs)
209
if err != nil {
210
- t.Fatalf("error formatting source: %v\n\n%s", err, string(bytes))
+ t.Fatalf("error formatting source: %v\n\n%s", err, string(bs))
211
212
213
outPath := dname + "/sampleprogram.go"
0 commit comments