refactor(tests): move person
type to test function
This commit is contained in:
parent
b3d5fbf332
commit
c0fb09e573
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user