From 73bfcdba4a5d13344c8c33ca2b33dd13c0d3713d Mon Sep 17 00:00:00 2001 From: "bartosz.kolej" Date: Wed, 18 Oct 2023 15:09:15 +0200 Subject: [PATCH] change variable name --- .../tests_execution_chart/JsonToHtmlReportApp.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/functionalTest/kotlin/io/github/platan/tests_execution_chart/JsonToHtmlReportApp.kt b/src/functionalTest/kotlin/io/github/platan/tests_execution_chart/JsonToHtmlReportApp.kt index 10ba8fc..e4c108e 100644 --- a/src/functionalTest/kotlin/io/github/platan/tests_execution_chart/JsonToHtmlReportApp.kt +++ b/src/functionalTest/kotlin/io/github/platan/tests_execution_chart/JsonToHtmlReportApp.kt @@ -40,25 +40,25 @@ private class CommandLineParser : CliktCommand() { @OptIn(ExperimentalSerializationApi::class) fun main(args: Array) { - val reportBuilder = CommandLineParser() - reportBuilder.main(args) + val commandLineParser = CommandLineParser() + commandLineParser.main(args) val outputLocation = "html-report" - val report = json.decodeFromStream(FileInputStream(reportBuilder.input)) + val report = json.decodeFromStream(FileInputStream(commandLineParser.input)) val reportConfig = ReportConfig( listOf( HtmlConfig( true, outputLocation, HtmlConfig.Script( - reportBuilder.mermaidScriptSrc, - reportBuilder.embed, - HtmlConfig.Script.Options(reportBuilder.maxTextSize) + commandLineParser.mermaidScriptSrc, + commandLineParser.embed, + HtmlConfig.Script.Options(commandLineParser.maxTextSize) ) ), ), ReportConfig.Marks(), false, ) - ReportCreator(logger).createReports(report, reportConfig, File(reportBuilder.outputDir), reportBuilder.taskName) + ReportCreator(logger).createReports(report, reportConfig, File(commandLineParser.outputDir), commandLineParser.taskName) }