This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from zacharygoodwin/PROC-1314
PROC-1314: Add interface for logging proctor results
- Loading branch information
Showing
5 changed files
with
75 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
proctor-common/src/main/java/com/indeed/proctor/common/ProctorResultReporter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.indeed.proctor.common; | ||
|
||
import com.indeed.proctor.common.model.TestType; | ||
|
||
import java.util.Map; | ||
|
||
public interface ProctorResultReporter { | ||
default void reportMetrics( | ||
final ProctorResult result, | ||
final Map<TestType, Integer> testTypesWithInvalidIdentifier) { | ||
reportTotalEvaluatedTests(result); | ||
reportFallbackTests(result); | ||
reportInvalidIdentifierTests(result, testTypesWithInvalidIdentifier); | ||
} | ||
|
||
void reportTotalEvaluatedTests(final ProctorResult result); | ||
|
||
void reportFallbackTests(final ProctorResult result); | ||
|
||
void reportInvalidIdentifierTests( | ||
final ProctorResult result, | ||
final Map<TestType, Integer> testTypesWithInvalidIdentifier); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters