(ctx context.Context, root, value interface{})
| 18 | } |
| 19 | |
| 20 | func (p plainPath) evaluatePath(ctx context.Context, root, value interface{}) (interface{}, error) { |
| 21 | var err error |
| 22 | for _, sel := range p { |
| 23 | value, err = sel(ctx, root, value) |
| 24 | if err != nil { |
| 25 | return nil, err |
| 26 | } |
| 27 | } |
| 28 | return value, nil |
| 29 | } |
| 30 | |
| 31 | func (p plainPath) matcher(ctx context.Context, r interface{}, match ambiguousMatcher) ambiguousMatcher { |
| 32 | if len(p) == 0 { |
no outgoing calls
no test coverage detected