func Ignore() TestDeep
Ignore
operator is always true, whatever data is. It is useful when
comparing a slice and wanting to ignore some indexes, for example.
See also Ignore godoc.
t := &testing.T{}
ok := Cmp(t, []int{1, 2, 3},
Slice([]int{}, ArrayEntries{
0: 1,
1: Ignore(), // do not care about this entry
2: 3,
}))
fmt.Println(ok)
// Output:
// true