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,6 +13,7 @@ import (
//go:embed collection_test.csv
var testData []byte
func TestCollection(t *testing.T) {
type person struct {
ID int
LastName string
@ -20,7 +21,6 @@ type person struct {
Email string
}
func TestCollection(t *testing.T) {
data := strings.Split(string(testData), "\n")
lines := OfSlice(data).Skip(1).Filter(func(s string) bool {