(exp *vm.Program, params map[string]interface{})
| 407 | } |
| 408 | |
| 409 | func CompareWithExpr(exp *vm.Program, params map[string]interface{}) bool { |
| 410 | res, err := expr.Run(exp, params) |
| 411 | if err != nil { |
| 412 | logs.Log.Warn(err.Error()) |
| 413 | } |
| 414 | |
| 415 | if res == true { |
| 416 | return true |
| 417 | } else { |
| 418 | return false |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | func MatchWithGlobs(u string, globs []string) bool { |
| 423 | for _, glob := range globs { |
no test coverage detected