From 407b0eba4b99486e75df11696c341a09c51d605c Mon Sep 17 00:00:00 2001 From: Martin Nonnenmacher Date: Thu, 11 Jul 2024 18:58:27 +0200 Subject: [PATCH] feat(model): Add a constant for an empty `AdvisorRun` The constant will be used in later commits. Signed-off-by: Martin Nonnenmacher --- model/src/main/kotlin/AdvisorRun.kt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/model/src/main/kotlin/AdvisorRun.kt b/model/src/main/kotlin/AdvisorRun.kt index c5ad2cf3eb5f4..5126f91996776 100644 --- a/model/src/main/kotlin/AdvisorRun.kt +++ b/model/src/main/kotlin/AdvisorRun.kt @@ -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()) + ) + } +}