refactor(tests): move person type to test function

This commit is contained in:
Piotr Icikowski 2024-05-28 01:30:00 +02:00
parent b3d5fbf332
commit c0fb09e573
Signed by: Piotr Icikowski
GPG Key ID: 3931CA47A91F7666

View File

@ -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 {