check if a predicate is a distinguished, path tree predicate
(name string)
| 279 | |
| 280 | // check if a predicate is a distinguished, path tree predicate |
| 281 | func isTreePredicate(name string) bool { |
| 282 | switch name { |
| 283 | case predicates.PathSubtreeName: |
| 284 | return true |
| 285 | case predicates.PathName: |
| 286 | return true |
| 287 | default: |
| 288 | return false |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | func getFreeStringArgs(count int, p *eskip.Predicate) ([]string, error) { |
| 293 | if len(p.Args) != count { |
no outgoing calls
no test coverage detected
searching dependent graphs…