本文整理了Java中org.pitest.util.Glob.toGlobPredicates()
方法的一些代码示例,展示了Glob.toGlobPredicates()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Glob.toGlobPredicates()
方法的具体详情如下:
包路径:org.pitest.util.Glob
类名称:Glob
方法名:toGlobPredicates
暂无
代码示例来源:origin: hcoles/pitest
private static Predicate<MethodInfo> stringToMethodInfoPredicate(
final Collection<String> excludedMethods) {
final Predicate<String> excluded = Prelude.or(Glob.toGlobPredicates(excludedMethods));
return a -> excluded.test(a.getName());
}
代码示例来源:origin: hcoles/pitest
protected Collection<Predicate<String>> predicateFor(final String... glob) {
return Glob.toGlobPredicates(Arrays.asList(glob));
}
代码示例来源:origin: hcoles/pitest
IgnoreCoreClasses() {
this.impl = Prelude.not(Prelude.or(Glob.toGlobPredicates(this.filtered)));
}
代码示例来源:origin: hcoles/pitest
private Predicate<ClassPathRoot> createCodePathFilter() {
if ((this.codePaths != null) && !this.codePaths.isEmpty()) {
return new PathNamePredicate(Prelude.or(Glob
.toGlobPredicates(this.codePaths)));
} else {
return new DefaultCodePathPredicate();
}
}
代码示例来源:origin: hcoles/pitest
public Predicate<String> getTargetClassesFilter() {
final Predicate<String> filter = Prelude.and(or(Glob.toGlobPredicates(this.targetClasses)),
not(isBlackListed(Glob.toGlobPredicates(ReportOptions.this.excludedClasses))));
checkNotTryingToMutateSelf(filter);
return filter;
}
代码示例来源:origin: hcoles/pitest
public Predicate<String> getFilter() {
return Prelude.and(Prelude.or(Glob.toGlobPredicates(this.include)),
Prelude.not(Prelude.or(Glob.toGlobPredicates(this.exclude))),
Prelude.not(commonClasses()));
}
代码示例来源:origin: hcoles/pitest
public Predicate<String> getTargetTestsFilter() {
if ((this.targetTests == null) || this.targetTests.isEmpty()) {
// If target tests is not explicitly set we assume that the
// target classes predicate covers both classes and tests
return Prelude.and(or(Glob.toGlobPredicates(this.targetClasses)),
not(isBlackListed(ReportOptions.this.excludedTestClasses)));
} else {
return Prelude.and(or(this.targetTests),
not(isBlackListed(ReportOptions.this.excludedTestClasses)));
}
}
代码示例来源:origin: org.pitest/pitest
private static Predicate<MethodInfo> stringToMethodInfoPredicate(
final Collection<String> excludedMethods) {
final Predicate<String> excluded = Prelude.or(Glob.toGlobPredicates(excludedMethods));
return a -> excluded.test(a.getName());
}
代码示例来源:origin: STAMP-project/pitest-descartes
public static Predicate<Method> globsToPredicate(Collection<String> globs) {
Predicate<String> excludedNames = Prelude.or(Glob.toGlobPredicates(globs));
return (method) -> excludedNames.test(method.getName());
}
代码示例来源:origin: org.pitest/pitest
IgnoreCoreClasses() {
this.impl = Prelude.not(Prelude.or(Glob.toGlobPredicates(this.filtered)));
}
代码示例来源:origin: org.pitest/pitest
public Predicate<String> getFilter() {
return Prelude.and(Prelude.or(Glob.toGlobPredicates(this.include)),
Prelude.not(Prelude.or(Glob.toGlobPredicates(this.exclude))),
Prelude.not(commonClasses()));
}
内容来源于网络,如有侵权,请联系作者删除!