Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google/go-cmp
/ functions
Functions
428 in github.com/google/go-cmp
⨍
Functions
428
◇
Types & classes
226
↓ 1 callers
Method
Error
()
cmp/cmpopts/equate.go:132
↓ 1 callers
Method
Errorf
(format string, args ...interface{})
cmp/example_test.go:380
↓ 1 callers
Method
Finish
()
cmp/internal/diff/debug_enable.go:104
↓ 1 callers
Function
IgnoreMapEntries
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 callers
Function
IgnoreSliceElements
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 callers
Function
IgnoreTypes
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 callers
Method
Init
()
cmp/path.go:354
↓ 1 callers
Method
Is
(err error)
cmp/cmpopts/equate.go:133
↓ 1 callers
Method
LenX
LenX is the length of the X list.
cmp/internal/diff/diff.go:85
↓ 1 callers
Method
LenY
LenY is the length of the Y list.
cmp/internal/diff/diff.go:88
↓ 1 callers
Function
MakeGatewayInfo
()
cmp/cmpopts/example_test.go:70
↓ 1 callers
Method
Method
()
cmp/compare_test.go:200
↓ 1 callers
Method
Private
()
cmp/internal/teststructs/structs.go:197
↓ 1 callers
Method
PrivateStruct
()
cmp/internal/teststructs/structs.go:190
↓ 1 callers
Method
PrivateStruct
()
cmp/internal/teststructs/structs.go:196
↓ 1 callers
Method
Proto
()
cmp/internal/testprotos/protos.go:20
↓ 1 callers
Method
PushPair
(vx, vy reflect.Value, d diffMode, deref bool)
cmp/report_references.go:36
↓ 1 callers
Method
SetBoss
(x string)
cmp/internal/teststructs/project4.go:76
↓ 1 callers
Method
SetCreationTime
(x time.Time)
cmp/internal/teststructs/project4.go:125
↓ 1 callers
Method
SetExpiration
(x time.Time)
cmp/internal/teststructs/project4.go:140
↓ 1 callers
Method
SetHorseBack
(x string)
cmp/internal/teststructs/project4.go:119
↓ 1 callers
Method
SetID
(x uint64)
cmp/internal/teststructs/project4.go:112
↓ 1 callers
Method
SetLastTime
(t int64)
cmp/internal/teststructs/project3.go:66
↓ 1 callers
Method
SetLocation
(x string)
cmp/internal/teststructs/project4.go:113
↓ 1 callers
Method
SetManufacturer
(x string)
cmp/internal/teststructs/project4.go:141
↓ 1 callers
Method
SetMetaData
(x *pb.MetaData)
cmp/internal/teststructs/project4.go:116
↓ 1 callers
Method
SetPoisonType
(x pb.PoisonType)
cmp/internal/teststructs/project4.go:139
↓ 1 callers
Method
SetPoisons
(x []*Poison)
cmp/internal/teststructs/project4.go:78
↓ 1 callers
Method
SetPrivate
(i int)
cmp/internal/teststructs/structs.go:186
↓ 1 callers
Method
SetPublicMessage
(x []byte)
cmp/internal/teststructs/project4.go:118
↓ 1 callers
Method
SetSource
(x string)
cmp/internal/teststructs/project4.go:74
↓ 1 callers
Method
SetStatus
(x pb.HoneyStatus)
cmp/internal/teststructs/project4.go:123
↓ 1 callers
Method
SetSubDivisions
(x []string)
cmp/internal/teststructs/project4.go:114
↓ 1 callers
Method
SetTable
(t Table)
cmp/internal/teststructs/project3.go:62
↓ 1 callers
Method
SetTimestamp
(t Timestamp)
cmp/internal/teststructs/project3.go:63
↓ 1 callers
Method
SetWizard
(m map[string]*pb.Wizard)
cmp/internal/teststructs/project3.go:64
↓ 1 callers
Function
SortMaps
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 callers
Function
SortSlices
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 callers
Method
State
()
cmp/internal/teststructs/project3.go:82
↓ 1 callers
Method
String
()
cmp/example_reporter_test.go:36
↓ 1 callers
Method
String
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 callers
Method
String
()
cmp/internal/diff/debug_enable.go:109
↓ 1 callers
Method
Uintptr
Uintptr returns the pointer as a uintptr.
cmp/internal/value/pointer.go:32
↓ 1 callers
Method
WithDiffMode
(d diffMode)
cmp/report_compare.go:56
↓ 1 callers
Method
WithVerbosity
(level int)
cmp/report_compare.go:64
↓ 1 callers
Method
add
(dx, dy int)
cmp/internal/diff/diff.go:392
↓ 1 callers
Method
alignLens
( skipFunc func(textRecord) bool, lenFunc func(textRecord) int, )
cmp/report_text.go:312
↓ 1 callers
Function
appendTypeName
(b []byte, t reflect.Type, qualified, elideFunc bool)
cmp/internal/value/name.go:20
↓ 1 callers
Method
apply
apply executes the option, which may mutate s or panic.
cmp/options.go:43
↓ 1 callers
Function
areNaNsF64s
(x, y float64)
cmp/cmpopts/equate.go:88
↓ 1 callers
Function
areRealF64s
(x, y float64)
cmp/cmpopts/equate.go:63
↓ 1 callers
Method
callTRFunc
(f, v reflect.Value, step Transform)
cmp/compare.go:324
↓ 1 callers
Function
canonicalName
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 callers
Method
checkSort
(v reflect.Value)
cmp/cmpopts/sort.go:66
↓ 1 callers
Method
checkSort
(v reflect.Value)
cmp/cmpopts/sort.go:137
↓ 1 callers
Function
cleanupSurroundingIdentical
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 callers
Function
coalesceAdjacentEdits
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 callers
Function
coalesceAdjacentRecords
coalesceAdjacentRecords coalesces the list of records into groups of adjacent equal, or unequal counts.
cmp/report_compare.go:409
↓ 1 callers
Function
coalesceInterveningIdentical
coalesceInterveningIdentical coalesces sufficiently short (<= windowSize) equal groups into adjacent unequal groups that currently result in a dual in
cmp/report_slices.go:509
↓ 1 callers
Method
compareF64
(x, y float64)
cmp/cmpopts/equate.go:69
↓ 1 callers
Method
compareInterface
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:569
↓ 1 callers
Method
compareMap
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:510
↓ 1 callers
Method
comparePtr
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:552
↓ 1 callers
Method
compareSlice
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:418
↓ 1 callers
Method
compareStruct
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:375
↓ 1 callers
Function
comparerTests
()
cmp/compare_test.go:196
↓ 1 callers
Method
connect
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 callers
Function
cycleTests
()
cmp/compare_test.go:2388
↓ 1 callers
Function
embeddedTests
()
cmp/compare_test.go:1426
↓ 1 callers
Function
formatASCII
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 callers
Method
formatCompactTo
(b []byte, d diffMode)
cmp/report_text.go:121
↓ 1 callers
Method
formatDiffList
(recs []reportRecord, k reflect.Kind, ptrs *pointerReferences)
cmp/report_compare.go:204
↓ 1 callers
Method
formatDiffSlice
( vx, vy reflect.Value, chunkSize int, name string, makeRec func(reflect.Value, diffMode) textRecord, )
cmp/report_slices.go:357
↓ 1 callers
Function
formatReference
(id uint)
cmp/report_references.go:254
↓ 1 callers
Method
formatString
(prefix, s string)
cmp/report_reflect.go:314
↓ 1 callers
Method
insert
insert inserts a sequence of field accesses into the tree.
cmp/cmpopts/struct_filter.go:97
↓ 1 callers
Method
isFiltered
()
cmp/compare.go:205
↓ 1 callers
Function
isLess
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 callers
Function
makeLeafReference
(p value.Pointer, printAddress bool)
cmp/report_references.go:101
↓ 1 callers
Method
matchPrefix
matchPrefix reports whether any selector in the fieldTree matches the start of path p.
cmp/cmpopts/struct_filter.go:112
↓ 1 callers
Function
methodTests
()
cmp/compare_test.go:2009
↓ 1 callers
Function
mustFormatGolden
(path string, in []struct{ Name, Data string })
cmp/compare_test.go:93
↓ 1 callers
Function
mustParseGolden
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 callers
Function
newIfaceFilter
(ifaces interface{})
cmp/cmpopts/ignore.go:73
↓ 1 callers
Function
newStringer
(s string)
cmp/compare_test.go:112
↓ 1 callers
Function
newTypeFilter
(typs ...interface{})
cmp/cmpopts/ignore.go:38
↓ 1 callers
Function
newUnexportedFilter
(typs ...interface{})
cmp/cmpopts/ignore.go:126
↓ 1 callers
Method
pop
()
cmp/path.go:74
↓ 1 callers
Method
processOption
(opt Option)
cmp/compare.go:196
↓ 1 callers
Function
project1Tests
()
cmp/compare_test.go:2571
↓ 1 callers
Function
project2Tests
()
cmp/compare_test.go:2696
↓ 1 callers
Function
project3Tests
()
cmp/compare_test.go:2802
↓ 1 callers
Function
project4Tests
()
cmp/compare_test.go:2877
↓ 1 callers
Method
push
(s PathStep)
cmp/path.go:70
↓ 1 callers
Function
reporterTests
()
cmp/compare_test.go:860
↓ 1 callers
Function
resolveReferences
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 callers
Function
roundF64
(z float64)
cmp/example_test.go:252
↓ 1 callers
Function
transformerTests
()
cmp/compare_test.go:716
↓ 1 callers
Method
tryMethod
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:312
↓ 1 callers
Method
tryOptions
(t reflect.Type, vx, vy reflect.Value)
cmp/compare.go:303
← previous
next →
101–200 of 428, ranked by callers