From c89179825c9690c0584b21112ccc6ce15998308c Mon Sep 17 00:00:00 2001 From: Major- Date: Tue, 28 Aug 2018 18:09:33 +0100 Subject: [PATCH] Remove inline modifier from string asserts --- .../game/plugin/testing/assertions/StringAssertions.kt | 7 +++++++ .../apollo/game/plugin/testing/assertions/stringAsserts.kt | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 game/plugin-testing/src/main/kotlin/org/apollo/game/plugin/testing/assertions/StringAssertions.kt delete mode 100644 game/plugin-testing/src/main/kotlin/org/apollo/game/plugin/testing/assertions/stringAsserts.kt diff --git a/game/plugin-testing/src/main/kotlin/org/apollo/game/plugin/testing/assertions/StringAssertions.kt b/game/plugin-testing/src/main/kotlin/org/apollo/game/plugin/testing/assertions/StringAssertions.kt new file mode 100644 index 00000000..c32e8841 --- /dev/null +++ b/game/plugin-testing/src/main/kotlin/org/apollo/game/plugin/testing/assertions/StringAssertions.kt @@ -0,0 +1,7 @@ +package org.apollo.game.plugin.testing.assertions + +import io.mockk.MockKMatcherScope + +fun MockKMatcherScope.contains(search: String) = match { it.contains(search) } +fun MockKMatcherScope.startsWith(search: String) = match { it.startsWith(search) } +fun MockKMatcherScope.endsWith(search: String) = match { it.endsWith(search) } \ No newline at end of file diff --git a/game/plugin-testing/src/main/kotlin/org/apollo/game/plugin/testing/assertions/stringAsserts.kt b/game/plugin-testing/src/main/kotlin/org/apollo/game/plugin/testing/assertions/stringAsserts.kt deleted file mode 100644 index a21d4a49..00000000 --- a/game/plugin-testing/src/main/kotlin/org/apollo/game/plugin/testing/assertions/stringAsserts.kt +++ /dev/null @@ -1,7 +0,0 @@ -package org.apollo.game.plugin.testing.assertions - -import io.mockk.MockKMatcherScope - -inline fun MockKMatcherScope.contains(search: String) = match { it.contains(search) } -inline fun MockKMatcherScope.startsWith(search: String) = match { it.startsWith(search) } -inline fun MockKMatcherScope.endsWith(search: String) = match { it.endsWith(search) } \ No newline at end of file