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

Struct validator

cmp/options.go:210–210  ·  cmp/options.go::validator

validator is a sentinel Option type to indicate that some options could not be evaluated due to unexported fields, missing slice elements, or missing map entries. Both values are validator only for unexported fields.

Source from the content-addressed store, hash-verified

208// be evaluated due to unexported fields, missing slice elements, or
209// missing map entries. Both values are validator only for unexported fields.
210type validator struct{ core }
211
212func (validator) filter(_ *state, _ reflect.Type, vx, vy reflect.Value) applicableOption {
213 if !vx.IsValid() || !vy.IsValid() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected