From 5a9cbef64b006df9c500aed983e452e99a1c7a88 Mon Sep 17 00:00:00 2001 From: Tom Arrell Date: Mon, 23 Sep 2024 14:23:47 +0200 Subject: [PATCH] fix avrogen tests --- cmd/avrogen/testdata/golden.go | 3 +-- cmd/avrogen/testdata/golden_encoders.go | 3 +-- cmd/avrogen/testdata/golden_encoders_fullschema.go | 3 +-- cmd/avrogen/testdata/golden_fullname.go | 3 +-- cmd/avrogen/testdata/golden_stricttypes.go | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/cmd/avrogen/testdata/golden.go b/cmd/avrogen/testdata/golden.go index d6f5ca8..1f17271 100644 --- a/cmd/avrogen/testdata/golden.go +++ b/cmd/avrogen/testdata/golden.go @@ -1,8 +1,7 @@ +// Code generated by avro/gen. DO NOT EDIT. // package testpkg is generated from schema.avsc. package testpkg -// Code generated by avro/gen. DO NOT EDIT. - // Test is a test struct. type Test struct { // SomeString is a string. diff --git a/cmd/avrogen/testdata/golden_encoders.go b/cmd/avrogen/testdata/golden_encoders.go index 5f45e05..44b3e50 100644 --- a/cmd/avrogen/testdata/golden_encoders.go +++ b/cmd/avrogen/testdata/golden_encoders.go @@ -1,6 +1,5 @@ -package testpkg - // Code generated by avro/gen. DO NOT EDIT. +package testpkg import ( "github.com/hamba/avro/v2" diff --git a/cmd/avrogen/testdata/golden_encoders_fullschema.go b/cmd/avrogen/testdata/golden_encoders_fullschema.go index 721f0f7..7bc7736 100644 --- a/cmd/avrogen/testdata/golden_encoders_fullschema.go +++ b/cmd/avrogen/testdata/golden_encoders_fullschema.go @@ -1,6 +1,5 @@ -package testpkg - // Code generated by avro/gen. DO NOT EDIT. +package testpkg import ( "github.com/hamba/avro/v2" diff --git a/cmd/avrogen/testdata/golden_fullname.go b/cmd/avrogen/testdata/golden_fullname.go index fff8517..5b44801 100644 --- a/cmd/avrogen/testdata/golden_fullname.go +++ b/cmd/avrogen/testdata/golden_fullname.go @@ -1,6 +1,5 @@ -package testpkg - // Code generated by avro/gen. DO NOT EDIT. +package testpkg // Test is a test struct. type ABTest struct { diff --git a/cmd/avrogen/testdata/golden_stricttypes.go b/cmd/avrogen/testdata/golden_stricttypes.go index 9b2a0ae..a3edc67 100644 --- a/cmd/avrogen/testdata/golden_stricttypes.go +++ b/cmd/avrogen/testdata/golden_stricttypes.go @@ -1,6 +1,5 @@ -package testpkg - // Code generated by avro/gen. DO NOT EDIT. +package testpkg // Test is a test struct. type Test struct {