Option configures for specific behavior of [Equal] and [Diff]. In particular, the fundamental Option functions ([Ignore], [Transformer], and [Comparer]), configure how equality is determined. The fundamental options may be composed with filters ([FilterPath] and [FilterValues]) to control the scope
| 23 | // The [github.com/google/go-cmp/cmp/cmpopts] package provides helper functions |
| 24 | // for creating options that may be used with [Equal] and [Diff]. |
| 25 | type Option interface { |
| 26 | // filter applies all filters and returns the option that remains. |
| 27 | // Each option may only read s.curPath and call s.callTTBFunc. |
| 28 | // |
| 29 | // An Options is returned only if multiple comparers or transformers |
| 30 | // can apply simultaneously and will only contain values of those types |
| 31 | // or sub-Options containing values of those types. |
| 32 | filter(s *state, t reflect.Type, vx, vy reflect.Value) applicableOption |
| 33 | } |
| 34 | |
| 35 | // applicableOption represents the following types: |
| 36 | // |
no outgoing calls
no test coverage detected