returns the subtree path if it is a valid definition
(p *eskip.Predicate)
| 433 | |
| 434 | // returns the subtree path if it is a valid definition |
| 435 | func processPathOrSubTree(p *eskip.Predicate) (string, error) { |
| 436 | if len(p.Args) != 1 { |
| 437 | return "", predicates.ErrInvalidPredicateParameters |
| 438 | } |
| 439 | |
| 440 | if s, ok := p.Args[0].(string); ok { |
| 441 | return s, nil |
| 442 | } |
| 443 | |
| 444 | return "", predicates.ErrInvalidPredicateParameters |
| 445 | } |
| 446 | |
| 447 | func validTreePredicates(predicateList []*eskip.Predicate) bool { |
| 448 | var has bool |
no outgoing calls
no test coverage detected
searching dependent graphs…