Skip to content
Permalink
Browse files

Step 8: Filtering by Probability

  • Loading branch information...
tlinkowski committed Jan 31, 2019
1 parent 5495498 commit 6e7516e14bea84a23cd38949f1b433d4ebbeabea
Showing with 7 additions and 0 deletions.
  1. +7 −0 Usage.java
@@ -11,6 +11,13 @@ static double issueCoverage(Stream<? extends IssueWiseText<?>> textStream, Issue
.collect(IssueCoverage.collector());
}

static double issueCoverage(
Stream<? extends IssueWiseText<? extends ProbableIssue>> textStream, double minProbability) {
return textStream
.map(text -> text.filtered(issue -> issue.probability() >= minProbability))
.collect(IssueCoverage.collector());
}

static Stream<IssueWiseText<Issue>> testCaseStream() {
return Stream.of();
}

0 comments on commit 6e7516e

Please sign in to comment.
You can’t perform that action at this time.