Home
last modified time | relevance | path

Searched refs:Stringer (Results 1 – 6 of 6) sorted by relevance

/external/go-cmp/cmp/internal/testprotos/
Dprotos.go27 type Stringer struct{ X string } argument
29 func (s *Stringer) String() string { return s.X } argument
45 Stringer anonMember
50 Stringer anonMember
55 Stringer anonMember
60 Stringer anonMember
65 Stringer anonMember
74 Stringer anonMember
79 Stringer anonMember
88 Stringer anonMember
[all …]
/external/go-cmp/cmp/
Dcompare_test.go110 type Stringer string type
112 func newStringer(s string) fmt.Stringer { return (*Stringer)(&s) }
113 func (s Stringer) String() string { return string(s) }
466 x: struct{ fmt.Stringer }{bytes.NewBufferString("hello")},
467 y: struct{ fmt.Stringer }{regexp.MustCompile("hello")},
468 …opts: []cmp.Option{cmp.Comparer(func(x, y fmt.Stringer) bool { return x.String() == y.String(…
473 x: struct{ fmt.Stringer }{bytes.NewBufferString("hello")},
474 y: struct{ fmt.Stringer }{regexp.MustCompile("hello2")},
475 …opts: []cmp.Option{cmp.Comparer(func(x, y fmt.Stringer) bool { return x.String() == y.String(…
486 x: new(fmt.Stringer),
[all …]
Dreport_reflect.go143 case fmt.Stringer:
Dreport_text.go147 Comment fmt.Stringer // e.g., "6 identical fields"
/external/go-cmp/cmp/testdata/
Ddiffs35 struct{ fmt.Stringer }(
50 - &fmt.Stringer(nil),
132 map[*testprotos.Stringer]*testprotos.Stringer(
139 - []*testprotos.Stringer{s`multi\nline\nline\nline`},
258 struct{ X fmt.Stringer }{
259 - X: struct{ fmt.Stringer }{},
301 - cmp_test.Stringer("hello"),
302 + &cmp_test.Stringer("hello"),
306 struct{ S fmt.Stringer }{
307 - S: cmp_test.Stringer("hello"),
[all …]
/external/go-cmp/cmp/cmpopts/
Dutil_test.go845 fmt.Stringer