Skip to content

Commit

Permalink
feat(model): Add a constant for an empty AdvisorRun
Browse files Browse the repository at this point in the history
The constant will be used in later commits.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>
  • Loading branch information
mnonnenmacher committed Jul 11, 2024
1 parent d881059 commit ed44b6a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion model/src/main/kotlin/AdvisorRun.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,14 @@ data class AdvisorRun(
* The result of this run.
*/
val results: AdvisorRecord
)
) {
companion object {
val EMPTY = AdvisorRun(
startTime = Instant.EPOCH,
endTime = Instant.EPOCH,
environment = Environment(),
config = AdvisorConfiguration(),
results = AdvisorRecord(emptyMap())
)
}
}

0 comments on commit ed44b6a

Please sign in to comment.