MCPcopy Create free account

hub / github.com/google/go-cmp / functions

Functions428 in github.com/google/go-cmp

↓ 1 callersMethodError
()
cmp/cmpopts/equate.go:132
↓ 1 callersMethodErrorf
(format string, args ...interface{})
cmp/example_test.go:380
↓ 1 callersMethodFinish
()
cmp/internal/diff/debug_enable.go:104
↓ 1 callersFunctionIgnoreMapEntries
IgnoreMapEntries returns an [cmp.Option] that ignores entries of map[K]V. The discard function must be of the form "func(T, R) bool" which is used to
cmp/cmpopts/ignore.go:183
↓ 1 callersFunctionIgnoreSliceElements
IgnoreSliceElements returns an [cmp.Option] that ignores elements of []V. The discard function must be of the form "func(T) bool" which is used to ign
cmp/cmpopts/ignore.go:155
↓ 1 callersFunctionIgnoreTypes
IgnoreTypes returns an [cmp.Option] that ignores all values assignable to certain types, which are specified by passing in a value of each type.
cmp/cmpopts/ignore.go:31
↓ 1 callersMethodInit
()
cmp/path.go:354
↓ 1 callersMethodIs
(err error)
cmp/cmpopts/equate.go:133
↓ 1 callersMethodLenX
LenX is the length of the X list.
cmp/internal/diff/diff.go:85
↓ 1 callersMethodLenY
LenY is the length of the Y list.
cmp/internal/diff/diff.go:88
↓ 1 callersFunctionMakeGatewayInfo
()
cmp/cmpopts/example_test.go:70
↓ 1 callersMethodMethod
()
cmp/compare_test.go:200
↓ 1 callersMethodPrivate
()
cmp/internal/teststructs/structs.go:197
↓ 1 callersMethodPrivateStruct
()
cmp/internal/teststructs/structs.go:190
↓ 1 callersMethodPrivateStruct
()
cmp/internal/teststructs/structs.go:196
↓ 1 callersMethodProto
()
cmp/internal/testprotos/protos.go:20
↓ 1 callersMethodPushPair
(vx, vy reflect.Value, d diffMode, deref bool)
cmp/report_references.go:36
↓ 1 callersMethodSetBoss
(x string)
cmp/internal/teststructs/project4.go:76
↓ 1 callersMethodSetCreationTime
(x time.Time)
cmp/internal/teststructs/project4.go:125
↓ 1 callersMethodSetExpiration
(x time.Time)
cmp/internal/teststructs/project4.go:140
↓ 1 callersMethodSetHorseBack
(x string)
cmp/internal/teststructs/project4.go:119
↓ 1 callersMethodSetID
(x uint64)
cmp/internal/teststructs/project4.go:112
↓ 1 callersMethodSetLastTime
(t int64)
cmp/internal/teststructs/project3.go:66
↓ 1 callersMethodSetLocation
(x string)
cmp/internal/teststructs/project4.go:113
↓ 1 callersMethodSetManufacturer
(x string)
cmp/internal/teststructs/project4.go:141
↓ 1 callersMethodSetMetaData
(x *pb.MetaData)
cmp/internal/teststructs/project4.go:116
↓ 1 callersMethodSetPoisonType
(x pb.PoisonType)
cmp/internal/teststructs/project4.go:139
↓ 1 callersMethodSetPoisons
(x []*Poison)
cmp/internal/teststructs/project4.go:78
↓ 1 callersMethodSetPrivate
(i int)
cmp/internal/teststructs/structs.go:186
↓ 1 callersMethodSetPublicMessage
(x []byte)
cmp/internal/teststructs/project4.go:118
↓ 1 callersMethodSetSource
(x string)
cmp/internal/teststructs/project4.go:74
↓ 1 callersMethodSetStatus
(x pb.HoneyStatus)
cmp/internal/teststructs/project4.go:123
↓ 1 callersMethodSetSubDivisions
(x []string)
cmp/internal/teststructs/project4.go:114
↓ 1 callersMethodSetTable
(t Table)
cmp/internal/teststructs/project3.go:62
↓ 1 callersMethodSetTimestamp
(t Timestamp)
cmp/internal/teststructs/project3.go:63
↓ 1 callersMethodSetWizard
(m map[string]*pb.Wizard)
cmp/internal/teststructs/project3.go:64
↓ 1 callersFunctionSortMaps
SortMaps returns a [cmp.Transformer] option that flattens map[K]V types to be a sorted []struct{K, V}. The less function must be of the form "func(T,
cmp/cmpopts/sort.go:100
↓ 1 callersFunctionSortSlices
SortSlices returns a [cmp.Transformer] option that sorts all []V. The less function must be of the form "func(T, T) bool" which is used to sort any sl
cmp/cmpopts/sort.go:29
↓ 1 callersMethodState
()
cmp/internal/teststructs/project3.go:82
↓ 1 callersMethodString
()
cmp/example_reporter_test.go:36
↓ 1 callersMethodString
String returns the simplified path to a node. The simplified path only contains struct field accesses. For example: MyMap.MySlices.MyField
cmp/path.go:106
↓ 1 callersMethodString
()
cmp/internal/diff/debug_enable.go:109
↓ 1 callersMethodUintptr
Uintptr returns the pointer as a uintptr.
cmp/internal/value/pointer.go:32
↓ 1 callersMethodWithDiffMode
(d diffMode)
cmp/report_compare.go:56
↓ 1 callersMethodWithVerbosity
(level int)
cmp/report_compare.go:64
↓ 1 callersMethodadd
(dx, dy int)
cmp/internal/diff/diff.go:392
↓ 1 callersMethodalignLens
( skipFunc func(textRecord) bool, lenFunc func(textRecord) int, )
cmp/report_text.go:312
↓ 1 callersFunctionappendTypeName
(b []byte, t reflect.Type, qualified, elideFunc bool)
cmp/internal/value/name.go:20
↓ 1 callersMethodapply
apply executes the option, which may mutate s or panic.
cmp/options.go:43
↓ 1 callersFunctionareNaNsF64s
(x, y float64)
cmp/cmpopts/equate.go:88
↓ 1 callersFunctionareRealF64s
(x, y float64)
cmp/cmpopts/equate.go:63
↓ 1 callersMethodcallTRFunc
(f, v reflect.Value, step Transform)
cmp/compare.go:324
↓ 1 callersFunctioncanonicalName
canonicalName returns a list of identifiers where any struct field access through an embedded field is expanded to include the names of the embedded t
cmp/cmpopts/struct_filter.go:143
↓ 1 callersMethodcheckSort
(v reflect.Value)
cmp/cmpopts/sort.go:66
↓ 1 callersMethodcheckSort
(v reflect.Value)
cmp/cmpopts/sort.go:137
↓ 1 callersFunctioncleanupSurroundingIdentical
cleanupSurroundingIdentical scans through all unequal groups, and moves any leading sequence of equal elements to the preceding equal group and moves
cmp/report_slices.go:553
↓ 1 callersFunctioncoalesceAdjacentEdits
coalesceAdjacentEdits coalesces the list of edits into groups of adjacent equal or unequal counts. Example: Input: "..XXY...Y" Output: [ {NumId
cmp/report_slices.go:453
↓ 1 callersFunctioncoalesceAdjacentRecords
coalesceAdjacentRecords coalesces the list of records into groups of adjacent equal, or unequal counts.
cmp/report_compare.go:409
↓ 1 callersFunctioncoalesceInterveningIdentical
coalesceInterveningIdentical coalesces sufficiently short (<= windowSize) equal groups into adjacent unequal groups that currently result in a dual in
cmp/report_slices.go:509
↓ 1 callersMethodcompareF64
(x, y float64)
cmp/cmpopts/equate.go:69
↓ 1 callersMethodcompareInterface
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:569
↓ 1 callersMethodcompareMap
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:510
↓ 1 callersMethodcomparePtr
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:552
↓ 1 callersMethodcompareSlice
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:418
↓ 1 callersMethodcompareStruct
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:375
↓ 1 callersFunctioncomparerTests
()
cmp/compare_test.go:196
↓ 1 callersMethodconnect
connect appends any necessary Identity, Modified, UniqueX, or UniqueY types to the edit-script to connect p.point to dst.
cmp/internal/diff/diff.go:333
↓ 1 callersFunctioncycleTests
()
cmp/compare_test.go:2388
↓ 1 callersFunctionembeddedTests
()
cmp/compare_test.go:1426
↓ 1 callersFunctionformatASCII
formatASCII formats s as an ASCII string. This is useful for printing binary strings in a semi-legible way.
cmp/report_slices.go:347
↓ 1 callersMethodformatCompactTo
(b []byte, d diffMode)
cmp/report_text.go:121
↓ 1 callersMethodformatDiffList
(recs []reportRecord, k reflect.Kind, ptrs *pointerReferences)
cmp/report_compare.go:204
↓ 1 callersMethodformatDiffSlice
( vx, vy reflect.Value, chunkSize int, name string, makeRec func(reflect.Value, diffMode) textRecord, )
cmp/report_slices.go:357
↓ 1 callersFunctionformatReference
(id uint)
cmp/report_references.go:254
↓ 1 callersMethodformatString
(prefix, s string)
cmp/report_reflect.go:314
↓ 1 callersMethodinsert
insert inserts a sequence of field accesses into the tree.
cmp/cmpopts/struct_filter.go:97
↓ 1 callersMethodisFiltered
()
cmp/compare.go:205
↓ 1 callersFunctionisLess
isLess is a generic function for sorting arbitrary map keys. The inputs must be of the same type and must be comparable.
cmp/internal/value/sort.go:36
↓ 1 callersFunctionmakeLeafReference
(p value.Pointer, printAddress bool)
cmp/report_references.go:101
↓ 1 callersMethodmatchPrefix
matchPrefix reports whether any selector in the fieldTree matches the start of path p.
cmp/cmpopts/struct_filter.go:112
↓ 1 callersFunctionmethodTests
()
cmp/compare_test.go:2009
↓ 1 callersFunctionmustFormatGolden
(path string, in []struct{ Name, Data string })
cmp/compare_test.go:93
↓ 1 callersFunctionmustParseGolden
mustParseGolden parses a file as a set of key-value pairs. The syntax is simple and looks something like: <<< Key1 value1a value1b >>> Key1 <<<
cmp/compare_test.go:60
↓ 1 callersFunctionnewIfaceFilter
(ifaces interface{})
cmp/cmpopts/ignore.go:73
↓ 1 callersFunctionnewStringer
(s string)
cmp/compare_test.go:112
↓ 1 callersFunctionnewTypeFilter
(typs ...interface{})
cmp/cmpopts/ignore.go:38
↓ 1 callersFunctionnewUnexportedFilter
(typs ...interface{})
cmp/cmpopts/ignore.go:126
↓ 1 callersMethodpop
()
cmp/path.go:74
↓ 1 callersMethodprocessOption
(opt Option)
cmp/compare.go:196
↓ 1 callersFunctionproject1Tests
()
cmp/compare_test.go:2571
↓ 1 callersFunctionproject2Tests
()
cmp/compare_test.go:2696
↓ 1 callersFunctionproject3Tests
()
cmp/compare_test.go:2802
↓ 1 callersFunctionproject4Tests
()
cmp/compare_test.go:2877
↓ 1 callersMethodpush
(s PathStep)
cmp/path.go:70
↓ 1 callersFunctionreporterTests
()
cmp/compare_test.go:860
↓ 1 callersFunctionresolveReferences
resolveReferences walks the textNode tree searching for any leaf reference metadata and resolves each against the corresponding trunk references. Sinc
cmp/report_references.go:114
↓ 1 callersFunctionroundF64
(z float64)
cmp/example_test.go:252
↓ 1 callersFunctiontransformerTests
()
cmp/compare_test.go:716
↓ 1 callersMethodtryMethod
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:312
↓ 1 callersMethodtryOptions
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:303
← previousnext →101–200 of 428, ranked by callers