#78 - Fix benchmark filtering.
Ensure method name regex does not match on substrings.
This commit is contained in:
@@ -67,7 +67,8 @@ class JmhSupport {
|
|||||||
|
|
||||||
if (!StringUtils.hasText(tests)) {
|
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());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user