From 110d464be683bdbd0171636e47ea5db6628facc1 Mon Sep 17 00:00:00 2001 From: Darius Tack Date: Tue, 24 Aug 2021 13:46:22 +0200 Subject: [PATCH] Rename method to set test directory --- src/main/kotlin/de/smartsquare/squit/config/ConfigExtensions.kt | 2 +- src/main/kotlin/de/smartsquare/squit/config/TestIndexer.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/de/smartsquare/squit/config/ConfigExtensions.kt b/src/main/kotlin/de/smartsquare/squit/config/ConfigExtensions.kt index db60257..9ae243f 100644 --- a/src/main/kotlin/de/smartsquare/squit/config/ConfigExtensions.kt +++ b/src/main/kotlin/de/smartsquare/squit/config/ConfigExtensions.kt @@ -165,7 +165,7 @@ fun Config.mergeTag(tag: String): Config = withValue(TAGS, ConfigValueFactory.fr /** * Sets the given [testDir]. */ -fun Config.setTestDir(testDir: Path): Config = withValue( +fun Config.withTestDir(testDir: Path): Config = withValue( TEST_DIRECTORY, ConfigValueFactory.fromAnyRef(testDir.toString()) ) diff --git a/src/main/kotlin/de/smartsquare/squit/config/TestIndexer.kt b/src/main/kotlin/de/smartsquare/squit/config/TestIndexer.kt index b2b5619..408f3d6 100644 --- a/src/main/kotlin/de/smartsquare/squit/config/TestIndexer.kt +++ b/src/main/kotlin/de/smartsquare/squit/config/TestIndexer.kt @@ -138,7 +138,7 @@ class TestIndexer(private val projectConfig: Config) { } .let { projectConfig - .setTestDir(path) + .withTestDir(path) .withFallback(it) } }