MCPcopy Create free account

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

Functions428 in github.com/google/go-cmp

↓ 1 callersFunctionupdateReferencePrefix
(prefix, ref string)
cmp/report_references.go:258
↓ 1 callersFunctionvalidateScript
(x, y string, es EditScript)
cmp/internal/diff/diff_test.go:356
↓ 1 callersFunctionwrapParens
wrapParens wraps s with a set of parenthesis, but avoids it if the wrapped node itself is already surrounded by a pair of parenthesis or braces. It ha
cmp/report_reflect.go:86
↓ 1 callersFunctionwrapTrunkReference
(p value.Pointer, printAddress bool, s textNode)
cmp/report_references.go:94
↓ 1 callersFunctionwrapTrunkReferences
(pp [2]value.Pointer, s textNode)
cmp/report_references.go:82
↓ 1 callersFunctionzigzag
zigzag maps a consecutive sequence of integers to a zig-zag sequence. [0 1 2 3 4 5 ...] => [0 -1 +1 -2 +2 ...]
cmp/internal/diff/diff.go:397
MethodBegin
(_, _ int, f EqualFunc, _, _ *EditScript)
cmp/internal/diff/debug_disable.go:14
FunctionBenchmarkBytes
BenchmarkBytes benchmarks the performance of performing Equal or Diff on large slices of bytes.
cmp/compare_test.go:2962
FunctionBenchmarkDifference
(b *testing.B)
cmp/internal/diff/diff_test.go:295
MethodBoss
()
cmp/internal/teststructs/project4.go:70
MethodByCycle
ByCycle reports whether a reference cycle was detected.
cmp/options.go:464
MethodConvulsion
()
cmp/internal/teststructs/project4.go:106
FunctionCreateDish
(m *pb.Dish, err error)
cmp/internal/teststructs/project2.go:65
FunctionCreateMockTable
(s []string)
cmp/internal/teststructs/project3.go:78
MethodCreationDate
()
cmp/internal/teststructs/project4.go:69
MethodCreationTime
()
cmp/internal/teststructs/project4.go:110
FunctionEqual
(x, y Message)
cmp/internal/testprotos/protos.go:7
MethodEqual
Equal reports whether the node was determined to be equal or not. As a special case, ignored nodes are considered equal.
cmp/options.go:443
MethodEqual
(s2 textNode)
cmp/report_text.go:106
MethodEqual
(s2 textNode)
cmp/report_text.go:182
MethodEqual
(s2 textNode)
cmp/report_text.go:349
MethodEqual
(y otherString)
cmp/example_test.go:222
MethodEqual
Equal indicates whether the symbols are equal. Two symbols are equal if and only if NumDiff == 0. If Equal, then they are also Similar.
cmp/internal/diff/diff.go:110
MethodEqual
(y StructA)
cmp/internal/teststructs/structs.go:79
MethodEqual
(y *StructB)
cmp/internal/teststructs/structs.go:80
MethodEqual
(y InterfaceA)
cmp/internal/teststructs/structs.go:81
MethodEqual
(y InterfaceA)
cmp/internal/teststructs/structs.go:83
MethodEqual
(y InterfaceA)
cmp/internal/teststructs/structs.go:85
MethodEqual
(y InterfaceA)
cmp/internal/teststructs/structs.go:87
MethodEqual
(y InterfaceA)
cmp/internal/teststructs/structs.go:89
MethodEqual
(y func() int)
cmp/internal/teststructs/structs.go:91
MethodEqual
(y struct{ A int })
cmp/internal/teststructs/structs.go:92
MethodEqual
(y chan bool)
cmp/internal/teststructs/structs.go:93
MethodEqual
(y <-chan bool)
cmp/internal/teststructs/structs.go:94
FunctionExampleDiff_testing
TODO: Re-write these examples in terms of how you actually use the fundamental options and filters and not in terms of what cool things you can do wit
cmp/example_test.go:25
FunctionExampleIgnoreFields_testing
Use IgnoreFields to ignore fields on a struct type when comparing by providing a value of the type and the field names to ignore. Typically, a zero va
cmp/cmpopts/example_test.go:24
FunctionExampleOption_approximateFloats
Approximate equality for floats can be handled by defining a custom comparer on floats that determines two values to be equal if they are within some
cmp/example_test.go:66
FunctionExampleOption_avoidEqualMethod
If the Equal method defined on a type is not suitable, the type can be dynamically transformed to be stripped of the Equal method (or any method for t
cmp/example_test.go:229
FunctionExampleOption_equalEmpty
Sometimes, an empty map or slice is considered equal to an allocated one of zero length. This example is for demonstrative purposes; use [github.com/
cmp/example_test.go:163
FunctionExampleOption_equalNaNs
Normal floating-point arithmetic defines == to be false when comparing NaN with itself. In certain cases, this is not the desired property. This exam
cmp/example_test.go:95
FunctionExampleOption_equalNaNsAndApproximateFloats
To have floating-point comparisons combine both properties of NaN being equal to itself and also approximate equality of values, filters are needed to
cmp/example_test.go:123
FunctionExampleOption_sortedSlice
Two slices may be considered equal if they have the same elements, regardless of the order that they appear in. Transformations can be used to sort th
cmp/example_test.go:198
FunctionExampleOption_transformComplex
The complex numbers complex64 and complex128 can really just be decomposed into a pair of float32 or float64 values. It would be convenient to be able
cmp/example_test.go:264
FunctionExampleReporter
()
cmp/example_reporter_test.go:40
MethodExpansion
()
cmp/internal/teststructs/project4.go:107
MethodExpiration
()
cmp/internal/teststructs/project4.go:135
FunctionExporter
Exporter returns an [Option] that specifies whether [Equal] is allowed to introspect into the unexported fields of certain struct types. Users of thi
cmp/options.go:408
MethodFinish
()
cmp/internal/diff/debug_disable.go:18
MethodFunc
Func is the function pointer to the transformer function.
cmp/path.go:314
MethodGoString
GoString returns the path to a specific node using Go syntax. For example: (*root.MyMap["key"].(*mypkg.MyStruct).MySlices)[2][3].MyField
cmp/path.go:121
MethodHorseBack
()
cmp/internal/teststructs/project4.go:104
MethodID
()
cmp/internal/teststructs/project4.go:97
MethodIncorporatedDate
()
cmp/internal/teststructs/project4.go:100
MethodIndex
Index is the index of the field in the parent struct type. See [reflect.Type.Field].
cmp/path.go:216
MethodInterfaceA
()
cmp/internal/teststructs/structs.go:8
MethodInterfaceA
()
cmp/internal/teststructs/structs.go:82
MethodInterfaceA
()
cmp/internal/teststructs/structs.go:84
MethodInterfaceA
()
cmp/internal/teststructs/structs.go:86
MethodInterfaceA
()
cmp/internal/teststructs/structs.go:88
MethodKey
Key is the index key; it may return -1 if in a split state
cmp/path.go:246
MethodLastCrimeDate
()
cmp/internal/teststructs/project4.go:71
MethodLen
()
cmp/compare_test.go:2692
MethodLen
()
cmp/report_text.go:103
MethodLen
()
cmp/report_text.go:168
MethodLen
()
cmp/report_text.go:346
MethodLess
(i, j int)
cmp/compare_test.go:2693
MethodLocation
()
cmp/internal/teststructs/project4.go:98
MethodManufacturer
()
cmp/internal/teststructs/project4.go:136
MethodMetaData
()
cmp/internal/teststructs/project4.go:101
MethodMethod
()
cmp/compare_test.go:203
MethodName
Name is the field name.
cmp/path.go:212
FunctionNewParentStructG
()
cmp/internal/teststructs/structs.go:171
FunctionNewParentStructH
()
cmp/internal/teststructs/structs.go:174
FunctionNewParentStructI
()
cmp/internal/teststructs/structs.go:177
FunctionNewParentStructJ
()
cmp/internal/teststructs/structs.go:180
MethodOperation1
()
cmp/internal/teststructs/project3.go:69
MethodOperation1
()
cmp/internal/teststructs/project3.go:79
MethodOperation2
()
cmp/internal/teststructs/project3.go:70
MethodOperation2
()
cmp/internal/teststructs/project3.go:80
MethodOperation3
()
cmp/internal/teststructs/project3.go:71
MethodOperation3
()
cmp/internal/teststructs/project3.go:81
MethodPointerMethod
()
cmp/internal/function/func_test.go:19
MethodPoisonType
()
cmp/internal/teststructs/project4.go:134
MethodPoisons
()
cmp/internal/teststructs/project4.go:72
MethodPop
()
cmp/report_references.go:66
MethodPopStep
()
cmp/example_reporter_test.go:32
MethodPopStep
()
cmp/report_value.go:106
MethodPopStep
()
cmp/report.go:32
MethodPotency
()
cmp/internal/teststructs/project4.go:137
MethodPrivateMessage
()
cmp/internal/teststructs/project4.go:102
MethodPrivateStruct
()
cmp/internal/teststructs/structs.go:191
MethodPrivateStruct
()
cmp/internal/teststructs/structs.go:192
MethodPrivateStruct
()
cmp/internal/teststructs/structs.go:193
MethodPrivateStruct
()
cmp/internal/teststructs/structs.go:194
MethodPrivateStruct
()
cmp/internal/teststructs/structs.go:195
MethodProto
()
cmp/internal/testprotos/protos.go:15
MethodProto
()
cmp/internal/teststructs/project1.go:263
MethodProto
()
cmp/internal/teststructs/project1.go:264
MethodProto
()
cmp/internal/teststructs/project1.go:265
MethodProto
()
cmp/internal/teststructs/project1.go:266
← previousnext →201–300 of 428, ranked by callers