#78 - Fix benchmark filtering.

Ensure method name regex does not match on substrings.
This commit is contained in:
Mark Paluch
2018-08-09 13:07:07 +02:00
parent 95ef25789f
commit 1cb4edec88

View File

@@ -67,7 +67,8 @@ class JmhSupport {
if (!StringUtils.hasText(tests)) {
return methods.stream().map(it -> Pattern.quote(it.getDeclaringClass().getName()) + "\\." + it.getName())
return methods.stream()
.map(it -> Pattern.quote(it.getDeclaringClass().getName()) + "\\." + Pattern.quote(it.getName()) + "$")
.collect(Collectors.toList());
}