From c0fb09e573c7cdb9a630d15e21e2eb61718a1060 Mon Sep 17 00:00:00 2001 From: Piotr Icikowski Date: Tue, 28 May 2024 01:30:00 +0200 Subject: [PATCH] refactor(tests): move `person` type to test function --- collection_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/collection_test.go b/collection_test.go index 6a68142..00bdd10 100644 --- a/collection_test.go +++ b/collection_test.go @@ -13,14 +13,14 @@ import ( //go:embed collection_test.csv var testData []byte -type person struct { - ID int - LastName string - FirstName string - Email string -} - func TestCollection(t *testing.T) { + type person struct { + ID int + LastName string + FirstName string + Email string + } + data := strings.Split(string(testData), "\n") lines := OfSlice(data).Skip(1).Filter(func(s string) bool {