type github.com/google/go-cmp/cmp.Transform
15 uses
github.com/google/go-cmp/cmp (current package)
compare.go#L321: func (s *state) callTRFunc(f, v reflect.Value, step Transform) reflect.Value {
compare.go#L632: if t, ok := ps.(Transform); ok {
options.go#L306: if t, ok := s.curPath[i].(Transform); !ok {
options.go#L319: step := Transform{&transform{pathStep{typ: tr.fnc.Type().Out(0)}, tr}}
path.go#L62: _ PathStep = Transform{}
path.go#L138: case Transform:
path.go#L288: type Transform struct{ *transform }
path.go#L294: func (tf Transform) Type() reflect.Type { return tf.typ }
path.go#L295: func (tf Transform) Values() (vx, vy reflect.Value) { return tf.vx, tf.vy }
path.go#L296: func (tf Transform) String() string { return fmt.Sprintf("%s()", tf.trans.name) }
path.go#L299: func (tf Transform) Name() string { return tf.trans.name }
path.go#L302: func (tf Transform) Func() reflect.Value { return tf.trans.fnc }
path.go#L306: func (tf Transform) Option() Option { return tf.trans }
report_value.go#L72: case Transform:
github.com/google/go-cmp/cmp/cmpopts
xform.go#L15: if t, ok := ps.(cmp.Transform); ok && t.Option() == xf.xform {
![]() |
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. |