(row map[string]ValueInterface, containExpression *ast.ContainExpression)
| 707 | } |
| 708 | |
| 709 | func processContainExpression(row map[string]ValueInterface, containExpression *ast.ContainExpression) (bool, error) { |
| 710 | valueLeft, err := getTifierValue(containExpression.Left, row) |
| 711 | if err != nil { |
| 712 | return false, err |
| 713 | } |
| 714 | |
| 715 | result, err := ifValueInterfaceInArray(containExpression.Right, valueLeft) |
| 716 | |
| 717 | if containExpression.Contains { |
| 718 | return result, err |
| 719 | } |
| 720 | |
| 721 | return !result, err |
| 722 | } |
| 723 | |
| 724 | func ifValueInterfaceInArray(array []ast.Anonymitifier, valueLeft ValueInterface) (bool, error) { |
| 725 | for _, expectedValue := range array { |
no test coverage detected