MCPcopy
hub / github.com/google/go-cmp / apply

Method apply

cmp/options.go:331–337  ·  view source on GitHub ↗
(s *state, vx, vy reflect.Value)

Source from the content-addressed store, hash-verified

329}
330
331func (tr *transformer) apply(s *state, vx, vy reflect.Value) {
332 step := Transform{&transform{pathStep{typ: tr.fnc.Type().Out(0)}, tr}}
333 vvx := s.callTRFunc(tr.fnc, vx, step)
334 vvy := s.callTRFunc(tr.fnc, vy, step)
335 step.vx, step.vy = vvx, vvy
336 s.compareAny(step)
337}
338
339func (tr transformer) String() string {
340 return fmt.Sprintf("Transformer(%s, %s)", tr.name, function.NameOf(tr.fnc))

Callers

nothing calls this directly

Calls 3

callTRFuncMethod · 0.80
compareAnyMethod · 0.80
TypeMethod · 0.65

Tested by

no test coverage detected