From a197715f7775a56c00c73a7eaa1b8017494370e5 Mon Sep 17 00:00:00 2001 From: golandscape Date: Wed, 19 Apr 2023 11:38:09 +0800 Subject: [PATCH] Fix BenchmarkRegexExpression this function field value does not match --- benchmarks_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks_test.go b/benchmarks_test.go index 23eaf67..7387709 100644 --- a/benchmarks_test.go +++ b/benchmarks_test.go @@ -169,14 +169,14 @@ func BenchmarkRegexExpression(bench *testing.B) { var expressionString string - expressionString = "(foo !~ bar) && (foobar =~ oba)" + expressionString = "(foo !~ bar) && (baz =~ oba)" expression, _ := NewEvaluableExpression(expressionString) parameters := map[string]interface{}{ "foo": "foo", "bar": "bar", "baz": "baz", - "oba": ".*oba.*", + "oba": ".*b.*", } bench.ResetTimer()