Lines Matching refs:ts
32 ts "github.com/google/go-cmp/cmp/internal/teststructs" packageName
1360 privateStruct := *new(ts.ParentStructA).PrivateStruct()
1362 createStructA := func(i int) ts.ParentStructA {
1363 s := ts.ParentStructA{}
1369 createStructB := func(i int) ts.ParentStructB {
1370 s := ts.ParentStructB{}
1376 createStructC := func(i int) ts.ParentStructC {
1377 s := ts.ParentStructC{}
1385 createStructD := func(i int) ts.ParentStructD {
1386 s := ts.ParentStructD{}
1394 createStructE := func(i int) ts.ParentStructE {
1395 s := ts.ParentStructE{}
1403 createStructF := func(i int) ts.ParentStructF {
1404 s := ts.ParentStructF{}
1414 createStructG := func(i int) *ts.ParentStructG {
1415 s := ts.NewParentStructG()
1421 createStructH := func(i int) *ts.ParentStructH {
1422 s := ts.NewParentStructH()
1428 createStructI := func(i int) *ts.ParentStructI {
1429 s := ts.NewParentStructI()
1437 createStructJ := func(i int) *ts.ParentStructJ {
1438 s := ts.NewParentStructJ()
1452 x: ts.ParentStructA{},
1453 y: ts.ParentStructA{},
1458 x: ts.ParentStructA{},
1459 y: ts.ParentStructA{},
1461 cmpopts.IgnoreUnexported(ts.ParentStructA{}),
1470 cmp.AllowUnexported(ts.ParentStructA{}),
1479 cmp.AllowUnexported(ts.ParentStructA{}, privateStruct),
1488 cmp.AllowUnexported(ts.ParentStructA{}, privateStruct),
1494 x: ts.ParentStructB{},
1495 y: ts.ParentStructB{},
1497 cmpopts.IgnoreUnexported(ts.ParentStructB{}),
1503 x: ts.ParentStructB{},
1504 y: ts.ParentStructB{},
1506 cmpopts.IgnoreUnexported(ts.ParentStructB{}),
1507 cmpopts.IgnoreUnexported(ts.PublicStruct{}),
1516 cmp.AllowUnexported(ts.ParentStructB{}),
1525 cmp.AllowUnexported(ts.ParentStructB{}, ts.PublicStruct{}),
1534 cmp.AllowUnexported(ts.ParentStructB{}, ts.PublicStruct{}),
1540 x: ts.ParentStructC{},
1541 y: ts.ParentStructC{},
1546 x: ts.ParentStructC{},
1547 y: ts.ParentStructC{},
1549 cmpopts.IgnoreUnexported(ts.ParentStructC{}),
1558 cmp.AllowUnexported(ts.ParentStructC{}),
1567 cmp.AllowUnexported(ts.ParentStructC{}, privateStruct),
1576 cmp.AllowUnexported(ts.ParentStructC{}, privateStruct),
1582 x: ts.ParentStructD{},
1583 y: ts.ParentStructD{},
1585 cmpopts.IgnoreUnexported(ts.ParentStructD{}),
1591 x: ts.ParentStructD{},
1592 y: ts.ParentStructD{},
1594 cmpopts.IgnoreUnexported(ts.ParentStructD{}),
1595 cmpopts.IgnoreUnexported(ts.PublicStruct{}),
1604 cmp.AllowUnexported(ts.ParentStructD{}),
1613 cmp.AllowUnexported(ts.ParentStructD{}, ts.PublicStruct{}),
1622 cmp.AllowUnexported(ts.ParentStructD{}, ts.PublicStruct{}),
1628 x: ts.ParentStructE{},
1629 y: ts.ParentStructE{},
1631 cmpopts.IgnoreUnexported(ts.ParentStructE{}),
1637 x: ts.ParentStructE{},
1638 y: ts.ParentStructE{},
1640 cmpopts.IgnoreUnexported(ts.ParentStructE{}),
1641 cmpopts.IgnoreUnexported(ts.PublicStruct{}),
1650 cmp.AllowUnexported(ts.ParentStructE{}),
1659 cmp.AllowUnexported(ts.ParentStructE{}, ts.PublicStruct{}),
1668 cmp.AllowUnexported(ts.ParentStructE{}, ts.PublicStruct{}, privateStruct),
1677 cmp.AllowUnexported(ts.ParentStructE{}, ts.PublicStruct{}, privateStruct),
1683 x: ts.ParentStructF{},
1684 y: ts.ParentStructF{},
1686 cmpopts.IgnoreUnexported(ts.ParentStructF{}),
1692 x: ts.ParentStructF{},
1693 y: ts.ParentStructF{},
1695 cmpopts.IgnoreUnexported(ts.ParentStructF{}),
1696 cmpopts.IgnoreUnexported(ts.PublicStruct{}),
1705 cmp.AllowUnexported(ts.ParentStructF{}),
1714 cmp.AllowUnexported(ts.ParentStructF{}, ts.PublicStruct{}),
1723 cmp.AllowUnexported(ts.ParentStructF{}, ts.PublicStruct{}, privateStruct),
1732 cmp.AllowUnexported(ts.ParentStructF{}, ts.PublicStruct{}, privateStruct),
1738 x: ts.ParentStructG{},
1739 y: ts.ParentStructG{},
1744 x: ts.ParentStructG{},
1745 y: ts.ParentStructG{},
1747 cmpopts.IgnoreUnexported(ts.ParentStructG{}),
1756 cmp.AllowUnexported(ts.ParentStructG{}),
1765 cmp.AllowUnexported(ts.ParentStructG{}, privateStruct),
1774 cmp.AllowUnexported(ts.ParentStructG{}, privateStruct),
1780 x: ts.ParentStructH{},
1781 y: ts.ParentStructH{},
1792 x: ts.ParentStructH{},
1793 y: ts.ParentStructH{},
1795 cmpopts.IgnoreUnexported(ts.ParentStructH{}),
1804 cmp.AllowUnexported(ts.ParentStructH{}),
1813 cmp.AllowUnexported(ts.ParentStructH{}, ts.PublicStruct{}),
1822 cmp.AllowUnexported(ts.ParentStructH{}, ts.PublicStruct{}),
1828 x: ts.ParentStructI{},
1829 y: ts.ParentStructI{},
1834 x: ts.ParentStructI{},
1835 y: ts.ParentStructI{},
1837 cmpopts.IgnoreUnexported(ts.ParentStructI{}),
1846 cmpopts.IgnoreUnexported(ts.ParentStructI{}),
1855 cmpopts.IgnoreUnexported(ts.ParentStructI{}, ts.PublicStruct{}),
1864 cmp.AllowUnexported(ts.ParentStructI{}),
1873 cmp.AllowUnexported(ts.ParentStructI{}, ts.PublicStruct{}, privateStruct),
1882 cmp.AllowUnexported(ts.ParentStructI{}, ts.PublicStruct{}, privateStruct),
1888 x: ts.ParentStructJ{},
1889 y: ts.ParentStructJ{},
1894 x: ts.ParentStructJ{},
1895 y: ts.ParentStructJ{},
1897 cmpopts.IgnoreUnexported(ts.ParentStructJ{}),
1903 x: ts.ParentStructJ{},
1904 y: ts.ParentStructJ{},
1906 cmpopts.IgnoreUnexported(ts.ParentStructJ{}, ts.PublicStruct{}),
1915 cmp.AllowUnexported(ts.ParentStructJ{}, ts.PublicStruct{}),
1924 cmp.AllowUnexported(ts.ParentStructJ{}, ts.PublicStruct{}, privateStruct),
1933 cmp.AllowUnexported(ts.ParentStructJ{}, ts.PublicStruct{}, privateStruct),
1972 x: ts.StructA{X: "NotEqual"},
1973 y: ts.StructA{X: "not_equal"},
1978 x: &ts.StructA{X: "NotEqual"},
1979 y: &ts.StructA{X: "not_equal"},
1984 x: ts.StructB{X: "NotEqual"},
1985 y: ts.StructB{X: "not_equal"},
1990 x: ts.StructB{X: "NotEqual"},
1991 y: ts.StructB{X: "not_equal"},
1997 x: &ts.StructB{X: "NotEqual"},
1998 y: &ts.StructB{X: "not_equal"},
2003 x: ts.StructC{X: "NotEqual"},
2004 y: ts.StructC{X: "not_equal"},
2009 x: &ts.StructC{X: "NotEqual"},
2010 y: &ts.StructC{X: "not_equal"},
2015 x: ts.StructD{X: "NotEqual"},
2016 y: ts.StructD{X: "not_equal"},
2021 x: ts.StructD{X: "NotEqual"},
2022 y: ts.StructD{X: "not_equal"},
2028 x: &ts.StructD{X: "NotEqual"},
2029 y: &ts.StructD{X: "not_equal"},
2034 x: ts.StructE{X: "NotEqual"},
2035 y: ts.StructE{X: "not_equal"},
2040 x: ts.StructE{X: "NotEqual"},
2041 y: ts.StructE{X: "not_equal"},
2047 x: &ts.StructE{X: "NotEqual"},
2048 y: &ts.StructE{X: "not_equal"},
2053 x: ts.StructF{X: "NotEqual"},
2054 y: ts.StructF{X: "not_equal"},
2059 x: &ts.StructF{X: "NotEqual"},
2060 y: &ts.StructF{X: "not_equal"},
2065 x: ts.StructA1{StructA: ts.StructA{X: "NotEqual"}, X: "equal"},
2066 y: ts.StructA1{StructA: ts.StructA{X: "not_equal"}, X: "equal"},
2071 x: ts.StructA1{StructA: ts.StructA{X: "NotEqual"}, X: "NotEqual"},
2072 y: ts.StructA1{StructA: ts.StructA{X: "not_equal"}, X: "not_equal"},
2077 x: &ts.StructA1{StructA: ts.StructA{X: "NotEqual"}, X: "equal"},
2078 y: &ts.StructA1{StructA: ts.StructA{X: "not_equal"}, X: "equal"},
2083 x: &ts.StructA1{StructA: ts.StructA{X: "NotEqual"}, X: "NotEqual"},
2084 y: &ts.StructA1{StructA: ts.StructA{X: "not_equal"}, X: "not_equal"},
2089 x: ts.StructB1{StructB: ts.StructB{X: "NotEqual"}, X: "equal"},
2090 y: ts.StructB1{StructB: ts.StructB{X: "not_equal"}, X: "equal"},
2096 x: ts.StructB1{StructB: ts.StructB{X: "NotEqual"}, X: "NotEqual"},
2097 y: ts.StructB1{StructB: ts.StructB{X: "not_equal"}, X: "not_equal"},
2103 x: &ts.StructB1{StructB: ts.StructB{X: "NotEqual"}, X: "equal"},
2104 y: &ts.StructB1{StructB: ts.StructB{X: "not_equal"}, X: "equal"},
2110 x: &ts.StructB1{StructB: ts.StructB{X: "NotEqual"}, X: "NotEqual"},
2111 y: &ts.StructB1{StructB: ts.StructB{X: "not_equal"}, X: "not_equal"},
2117 x: ts.StructC1{StructC: ts.StructC{X: "NotEqual"}, X: "NotEqual"},
2118 y: ts.StructC1{StructC: ts.StructC{X: "not_equal"}, X: "not_equal"},
2123 x: &ts.StructC1{StructC: ts.StructC{X: "NotEqual"}, X: "NotEqual"},
2124 y: &ts.StructC1{StructC: ts.StructC{X: "not_equal"}, X: "not_equal"},
2129 x: ts.StructD1{StructD: ts.StructD{X: "NotEqual"}, X: "NotEqual"},
2130 y: ts.StructD1{StructD: ts.StructD{X: "not_equal"}, X: "not_equal"},
2135 x: ts.StructD1{StructD: ts.StructD{X: "NotEqual"}, X: "NotEqual"},
2136 y: ts.StructD1{StructD: ts.StructD{X: "not_equal"}, X: "not_equal"},
2142 x: &ts.StructD1{StructD: ts.StructD{X: "NotEqual"}, X: "NotEqual"},
2143 y: &ts.StructD1{StructD: ts.StructD{X: "not_equal"}, X: "not_equal"},
2148 x: ts.StructE1{StructE: ts.StructE{X: "NotEqual"}, X: "NotEqual"},
2149 y: ts.StructE1{StructE: ts.StructE{X: "not_equal"}, X: "not_equal"},
2154 x: ts.StructE1{StructE: ts.StructE{X: "NotEqual"}, X: "NotEqual"},
2155 y: ts.StructE1{StructE: ts.StructE{X: "not_equal"}, X: "not_equal"},
2161 x: &ts.StructE1{StructE: ts.StructE{X: "NotEqual"}, X: "NotEqual"},
2162 y: &ts.StructE1{StructE: ts.StructE{X: "not_equal"}, X: "not_equal"},
2167 x: ts.StructF1{StructF: ts.StructF{X: "NotEqual"}, X: "NotEqual"},
2168 y: ts.StructF1{StructF: ts.StructF{X: "not_equal"}, X: "not_equal"},
2173 x: &ts.StructF1{StructF: ts.StructF{X: "NotEqual"}, X: "NotEqual"},
2174 y: &ts.StructF1{StructF: ts.StructF{X: "not_equal"}, X: "not_equal"},
2179 x: ts.StructA2{StructA: &ts.StructA{X: "NotEqual"}, X: "equal"},
2180 y: ts.StructA2{StructA: &ts.StructA{X: "not_equal"}, X: "equal"},
2185 x: ts.StructA2{StructA: &ts.StructA{X: "NotEqual"}, X: "NotEqual"},
2186 y: ts.StructA2{StructA: &ts.StructA{X: "not_equal"}, X: "not_equal"},
2191 x: &ts.StructA2{StructA: &ts.StructA{X: "NotEqual"}, X: "equal"},
2192 y: &ts.StructA2{StructA: &ts.StructA{X: "not_equal"}, X: "equal"},
2197 x: &ts.StructA2{StructA: &ts.StructA{X: "NotEqual"}, X: "NotEqual"},
2198 y: &ts.StructA2{StructA: &ts.StructA{X: "not_equal"}, X: "not_equal"},
2203 x: ts.StructB2{StructB: &ts.StructB{X: "NotEqual"}, X: "equal"},
2204 y: ts.StructB2{StructB: &ts.StructB{X: "not_equal"}, X: "equal"},
2209 x: ts.StructB2{StructB: &ts.StructB{X: "NotEqual"}, X: "NotEqual"},
2210 y: ts.StructB2{StructB: &ts.StructB{X: "not_equal"}, X: "not_equal"},
2215 x: &ts.StructB2{StructB: &ts.StructB{X: "NotEqual"}, X: "equal"},
2216 y: &ts.StructB2{StructB: &ts.StructB{X: "not_equal"}, X: "equal"},
2221 x: &ts.StructB2{StructB: &ts.StructB{X: "NotEqual"}, X: "NotEqual"},
2222 y: &ts.StructB2{StructB: &ts.StructB{X: "not_equal"}, X: "not_equal"},
2227 x: ts.StructC2{StructC: &ts.StructC{X: "NotEqual"}, X: "NotEqual"},
2228 y: ts.StructC2{StructC: &ts.StructC{X: "not_equal"}, X: "not_equal"},
2233 x: &ts.StructC2{StructC: &ts.StructC{X: "NotEqual"}, X: "NotEqual"},
2234 y: &ts.StructC2{StructC: &ts.StructC{X: "not_equal"}, X: "not_equal"},
2239 x: ts.StructD2{StructD: &ts.StructD{X: "NotEqual"}, X: "NotEqual"},
2240 y: ts.StructD2{StructD: &ts.StructD{X: "not_equal"}, X: "not_equal"},
2245 x: &ts.StructD2{StructD: &ts.StructD{X: "NotEqual"}, X: "NotEqual"},
2246 y: &ts.StructD2{StructD: &ts.StructD{X: "not_equal"}, X: "not_equal"},
2251 x: ts.StructE2{StructE: &ts.StructE{X: "NotEqual"}, X: "NotEqual"},
2252 y: ts.StructE2{StructE: &ts.StructE{X: "not_equal"}, X: "not_equal"},
2257 x: &ts.StructE2{StructE: &ts.StructE{X: "NotEqual"}, X: "NotEqual"},
2258 y: &ts.StructE2{StructE: &ts.StructE{X: "not_equal"}, X: "not_equal"},
2263 x: ts.StructF2{StructF: &ts.StructF{X: "NotEqual"}, X: "NotEqual"},
2264 y: ts.StructF2{StructF: &ts.StructF{X: "not_equal"}, X: "not_equal"},
2269 x: &ts.StructF2{StructF: &ts.StructF{X: "NotEqual"}, X: "NotEqual"},
2270 y: &ts.StructF2{StructF: &ts.StructF{X: "not_equal"}, X: "not_equal"},
2275 x: ts.StructNo{X: "NotEqual"},
2276 y: ts.StructNo{X: "not_equal"},
2281 x: ts.AssignA(func() int { return 0 }),
2282 y: ts.AssignA(func() int { return 1 }),
2287 x: ts.AssignB(struct{ A int }{0}),
2288 y: ts.AssignB(struct{ A int }{1}),
2293 x: ts.AssignC(make(chan bool)),
2294 y: ts.AssignC(make(chan bool)),
2299 x: ts.AssignD(make(chan bool)),
2300 y: ts.AssignD(make(chan bool)),
2506 ts.EagleImmutable{},
2507 ts.DreamerImmutable{},
2508 ts.SlapImmutable{},
2509 ts.GoatImmutable{},
2510 ts.DonkeyImmutable{},
2511 ts.LoveRadius{},
2512 ts.SummerLove{},
2513 ts.SummerLoveSummary{},
2516 createEagle := func() ts.Eagle {
2517 return ts.Eagle{
2521 Dreamers: []ts.Dreamer{{}, {
2524 ts.Goat{
2526 Immutable: &ts.GoatImmutable{
2532 ts.Donkey{},
2536 Slaps: []ts.Slap{{
2539 Immutable: &ts.SlapImmutable{
2543 LoveRadius: &ts.LoveRadius{
2544 Summer: &ts.SummerLove{
2545 Summary: &ts.SummerLoveSummary{
2553 Immutable: &ts.EagleImmutable{
2563 x: ts.Eagle{Slaps: []ts.Slap{{
2566 y: ts.Eagle{Slaps: []ts.Slap{{
2573 x: ts.Eagle{Slaps: []ts.Slap{{
2576 y: ts.Eagle{Slaps: []ts.Slap{{
2584 x: ts.Eagle{Slaps: []ts.Slap{{}, {}, {}, {}, {
2587 y: ts.Eagle{Slaps: []ts.Slap{{}, {}, {}, {}, {
2602 x: func() ts.Eagle {
2604 eg.Dreamers[1].Animal[0].(ts.Goat).Immutable.ID = "southbay2"
2605 eg.Dreamers[1].Animal[0].(ts.Goat).Immutable.State = (*pb.Goat_States)(newInt(6))
2609 y: func() ts.Eagle {
2636 equalDish := cmp.Comparer(func(x, y *ts.Dish) bool {
2648 createBatch := func() ts.GermBatch {
2649 return ts.GermBatch{
2664 DishMap: map[int32]*ts.Dish{
2665 0: ts.CreateDish(nil, io.EOF),
2666 1: ts.CreateDish(nil, io.ErrUnexpectedEOF),
2667 2: ts.CreateDish(&pb.Dish{Stringer: pb.Stringer{X: "dish"}}, nil),
2692 y: func() ts.GermBatch {
2704 y: func() ts.GermBatch {
2715 x: func() ts.GermBatch {
2721 y: func() ts.GermBatch {
2736 allowVisibility := cmp.AllowUnexported(ts.Dirt{})
2744 equalTable := cmp.Comparer(func(x, y ts.Table) bool {
2745 tx, ok1 := x.(*ts.MockTable)
2746 ty, ok2 := y.(*ts.MockTable)
2753 createDirt := func() (d ts.Dirt) {
2754 d.SetTable(ts.CreateMockTable([]string{"a", "b", "c"}))
2788 x: func() ts.Dirt {
2790 d.SetTable(ts.CreateMockTable([]string{"a", "c"}))
2794 y: func() ts.Dirt {
2812 ts.Cartel{},
2813 ts.Headquarter{},
2814 ts.Poison{},
2821 createCartel := func() ts.Cartel {
2822 var p ts.Poison
2827 var hq ts.Headquarter
2836 var c ts.Cartel
2841 c.SetPoisons([]*ts.Poison{&p})
2868 x: func() ts.Cartel {
2870 var p1, p2 ts.Poison
2876 d.SetPoisons([]*ts.Poison{&p1, &p2})
2879 y: func() ts.Cartel {
2908 for _, ts := range []benchSize{
2914 bx := append(append(make([]byte, ts.size/2), 'x'), make([]byte, ts.size/2)...)
2915 by := append(append(make([]byte, ts.size/2), 'y'), make([]byte, ts.size/2)...)
2916 b.Run(ts.label, func(b *testing.B) {
2922 b.SetBytes(2 * ts.size)
2931 b.SetBytes(2 * ts.size)