Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #165 from zacharygoodwin/PROC-1464
Browse files Browse the repository at this point in the history
PROC-1464: Add ability to log to CED via test name input
  • Loading branch information
zacharygoodwin authored May 20, 2024
2 parents 39e0924 + 1f41e3d commit 592b42f
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,23 @@ public final void markTestsUsed(final Collection<String> testNames) {
if (testUsageObserver != null) {
testUsageObserver.markUsedForToggling(testNames);
}
if (exposureLogger != null) {
testNames.forEach(testName -> exposureLogger.logExposureInfo(proctorResult, testName));
}
}

/**
* mark a test to additionally be included in getAsUsedTestsProctorResult(), even when no
* corresponding method has been called. for usecases where exposure happens without calls to
* generated methods calling getValue()
*/
public final void markTestUsed(final String testName) {
if (testUsageObserver != null) {
testUsageObserver.markUsedForToggling(testName);
}
if (exposureLogger != null) {
exposureLogger.logExposureInfo(proctorResult, testName);
}
}

/**
Expand Down

0 comments on commit 592b42f

Please sign in to comment.