From e413a6f4b2a6d02ca78fb9c533781abc327d1b8c Mon Sep 17 00:00:00 2001 From: Silas Della Contrada Date: Sat, 10 Aug 2024 14:15:05 +0200 Subject: [PATCH] feat: move BufferSink and BufferSource from test to main module --- .../kotlin/dev/silenium/libs/flows/buffer}/BufferSink.kt | 2 +- .../kotlin/dev/silenium/libs/flows/buffer}/BufferSource.kt | 2 +- .../kotlin/dev/silenium/libs/flows/base/SourceBaseTest.kt | 2 +- .../dev/silenium/libs/flows/impl/FlowGraphImplTest.kt | 7 ++++++- src/test/kotlin/dev/silenium/libs/flows/test/DataType.kt | 1 - 5 files changed, 9 insertions(+), 5 deletions(-) rename src/{test/kotlin/dev/silenium/libs/flows/test => main/kotlin/dev/silenium/libs/flows/buffer}/BufferSink.kt (96%) rename src/{test/kotlin/dev/silenium/libs/flows/test => main/kotlin/dev/silenium/libs/flows/buffer}/BufferSource.kt (89%) diff --git a/src/test/kotlin/dev/silenium/libs/flows/test/BufferSink.kt b/src/main/kotlin/dev/silenium/libs/flows/buffer/BufferSink.kt similarity index 96% rename from src/test/kotlin/dev/silenium/libs/flows/test/BufferSink.kt rename to src/main/kotlin/dev/silenium/libs/flows/buffer/BufferSink.kt index fa071bf..ca98449 100644 --- a/src/test/kotlin/dev/silenium/libs/flows/test/BufferSink.kt +++ b/src/main/kotlin/dev/silenium/libs/flows/buffer/BufferSink.kt @@ -1,4 +1,4 @@ -package dev.silenium.libs.flows.test +package dev.silenium.libs.flows.buffer import dev.silenium.libs.flows.api.FlowItem import dev.silenium.libs.flows.api.Sink diff --git a/src/test/kotlin/dev/silenium/libs/flows/test/BufferSource.kt b/src/main/kotlin/dev/silenium/libs/flows/buffer/BufferSource.kt similarity index 89% rename from src/test/kotlin/dev/silenium/libs/flows/test/BufferSource.kt rename to src/main/kotlin/dev/silenium/libs/flows/buffer/BufferSource.kt index 725bded..82a2ae9 100644 --- a/src/test/kotlin/dev/silenium/libs/flows/test/BufferSource.kt +++ b/src/main/kotlin/dev/silenium/libs/flows/buffer/BufferSource.kt @@ -1,4 +1,4 @@ -package dev.silenium.libs.flows.test +package dev.silenium.libs.flows.buffer import dev.silenium.libs.flows.api.FlowItem import dev.silenium.libs.flows.base.SourceBase diff --git a/src/test/kotlin/dev/silenium/libs/flows/base/SourceBaseTest.kt b/src/test/kotlin/dev/silenium/libs/flows/base/SourceBaseTest.kt index 534e014..5b017f5 100644 --- a/src/test/kotlin/dev/silenium/libs/flows/base/SourceBaseTest.kt +++ b/src/test/kotlin/dev/silenium/libs/flows/base/SourceBaseTest.kt @@ -1,8 +1,8 @@ package dev.silenium.libs.flows.base +import dev.silenium.libs.flows.buffer.BufferSource import dev.silenium.libs.flows.test.Base64Buffer import dev.silenium.libs.flows.test.Base64Decoder -import dev.silenium.libs.flows.test.BufferSource import dev.silenium.libs.flows.test.DataType import io.kotest.core.spec.style.FunSpec import io.kotest.matchers.collections.shouldBeIn diff --git a/src/test/kotlin/dev/silenium/libs/flows/impl/FlowGraphImplTest.kt b/src/test/kotlin/dev/silenium/libs/flows/impl/FlowGraphImplTest.kt index a267532..4d94909 100644 --- a/src/test/kotlin/dev/silenium/libs/flows/impl/FlowGraphImplTest.kt +++ b/src/test/kotlin/dev/silenium/libs/flows/impl/FlowGraphImplTest.kt @@ -1,6 +1,11 @@ package dev.silenium.libs.flows.impl -import dev.silenium.libs.flows.test.* +import dev.silenium.libs.flows.buffer.BufferSink +import dev.silenium.libs.flows.buffer.BufferSource +import dev.silenium.libs.flows.test.Base64Buffer +import dev.silenium.libs.flows.test.Base64Decoder +import dev.silenium.libs.flows.test.DataType +import dev.silenium.libs.flows.test.encodeBase64 import io.kotest.core.spec.style.FunSpec import io.kotest.matchers.collections.shouldNotBeEmpty import io.kotest.matchers.nulls.shouldNotBeNull diff --git a/src/test/kotlin/dev/silenium/libs/flows/test/DataType.kt b/src/test/kotlin/dev/silenium/libs/flows/test/DataType.kt index edf5d0e..b72eaab 100644 --- a/src/test/kotlin/dev/silenium/libs/flows/test/DataType.kt +++ b/src/test/kotlin/dev/silenium/libs/flows/test/DataType.kt @@ -3,5 +3,4 @@ package dev.silenium.libs.flows.test enum class DataType { PLAIN, BASE64, - JSON, }