type github.com/google/go-cmp/cmp.textLine
41 uses
github.com/google/go-cmp/cmp (current package)
report_reflect.go#L157: return textLine(fmt.Sprint(v.Bool()))
report_reflect.go#L159: return textLine(fmt.Sprint(v.Int()))
report_reflect.go#L161: return textLine(fmt.Sprint(v.Uint()))
report_reflect.go#L164: return textLine(formatHex(v.Uint()))
report_reflect.go#L166: return textLine(fmt.Sprint(v.Uint()))
report_reflect.go#L168: return textLine(formatHex(v.Uint()))
report_reflect.go#L170: return textLine(fmt.Sprint(v.Float()))
report_reflect.go#L172: return textLine(fmt.Sprint(v.Complex()))
report_reflect.go#L176: return textLine(formatPointer(value.PointerOf(v), true))
report_reflect.go#L325: list = append(list, textRecord{Diff: opts.DiffMode, Value: textLine(prefix + `"""`), ElideComma: true})
report_reflect.go#L332: list = append(list, textRecord{Diff: opts.DiffMode, Value: textLine(line), ElideComma: true})
report_reflect.go#L334: list = append(list, textRecord{Diff: opts.DiffMode, Value: textLine(prefix + `"""`), ElideComma: true})
report_reflect.go#L340: return textLine(prefix + formatString(s[:maxLen]) + string(textEllipsis))
report_reflect.go#L342: return textLine(prefix + formatString(s))
report_slices.go#L131: return textRecord{Diff: d, Value: textLine(s)}
report_slices.go#L157: list2 = append(list2, textRecord{Value: textLine(`"""`), ElideComma: true})
report_slices.go#L160: line, _ := strconv.Unquote(string(r.Value.(textLine)))
report_slices.go#L183: r.Value = textLine(line)
report_slices.go#L192: if r := list2[len(list2)-1]; r.Diff == diffIdentical && len(r.Value.(textLine)) == 0 {
report_slices.go#L195: list2 = append(list2, textRecord{Value: textLine(`"""`), ElideComma: true})
report_slices.go#L220: return textRecord{Diff: d, Value: textLine(s)}
report_slices.go#L238: return textRecord{Diff: d, Value: textLine(s), Comment: comment}
report_slices.go#L278: return textRecord{Diff: d, Value: textLine(s)}
report_text.go#L126: if _, ok := s.Value.(textLine); ok {
report_text.go#L127: return b, textLine(b[n0:])
report_text.go#L217: if _, ok := s[i].Value.(textLine); !ok {
report_text.go#L233: return b, textLine(b[n0:])
report_text.go#L241: _, isLine := r.Value.(textLine)
report_text.go#L248: _, isLine := r.Value.(textLine)
report_text.go#L251: func(r textRecord) int { return utf8.RuneCount(r.Value.(textLine)) },
report_text.go#L259: _, isLine := r.Value.(textLine)
report_text.go#L276: line := r.Value.(textLine)
report_text.go#L339: type textLine []byte
report_text.go#L342: textNil = textLine("nil")
report_text.go#L343: textEllipsis = textLine("...")
report_text.go#L346: func (s textLine) Len() int {
report_text.go#L349: func (s1 textLine) Equal(s2 textNode) bool {
report_text.go#L350: if s2, ok := s2.(textLine); ok {
report_text.go#L355: func (s textLine) String() string {
report_text.go#L358: func (s textLine) formatCompactTo(b []byte, d diffMode) ([]byte, textNode) {
report_text.go#L361: func (s textLine) formatExpandedTo(b []byte, _ diffMode, _ indentMode) []byte {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |