Skip to content

Commit

Permalink
dataconnect: remove unused extension function: DataConnectArb.pathSeg…
Browse files Browse the repository at this point in the history
…mentType() (#6520)
  • Loading branch information
dconeybe authored Nov 18, 2024
1 parent 4bc552f commit 866e6bd
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import io.kotest.property.Arb
import io.kotest.property.arbitrary.Codepoint
import io.kotest.property.arbitrary.alphanumeric
import io.kotest.property.arbitrary.arbitrary
import io.kotest.property.arbitrary.boolean
import io.kotest.property.arbitrary.choice
import io.kotest.property.arbitrary.constant
import io.kotest.property.arbitrary.enum
Expand All @@ -49,7 +48,6 @@ import io.kotest.property.arbitrary.list
import io.kotest.property.arbitrary.orNull
import io.kotest.property.arbitrary.string
import io.mockk.mockk
import kotlin.reflect.KClass
import kotlinx.serialization.DeserializationStrategy
import kotlinx.serialization.SerializationStrategy
import kotlinx.serialization.modules.SerializersModule
Expand Down Expand Up @@ -77,15 +75,6 @@ internal fun DataConnectArb.dataConnectGrpcMetadata(
)
}

internal fun DataConnectArb.pathSegmentType(
boolean: Arb<Boolean> = Arb.boolean()
): Arb<KClass<out PathSegment>> = arbitrary {
when (boolean.bind()) {
true -> PathSegment.Field::class
false -> PathSegment.ListIndex::class
}
}

internal fun DataConnectArb.fieldPathSegment(
string: Arb<String> = string()
): Arb<PathSegment.Field> = arbitrary { PathSegment.Field(string.bind()) }
Expand Down

0 comments on commit 866e6bd

Please sign in to comment.