Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
pablf committed Aug 2, 2024
1 parent e6fae67 commit 0d80c32
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions tests/jvm/src/test/scala-3/zio/schema/PlatformSpecificGen.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package zio.schema

import zio.schema.SchemaGen.SchemaTest
import zio.schema.StandardTypeGen.StandardTypeAndGen
import zio.test.Gen

object PlatformSpecificGen {

val platformSpecificStandardTypes: Gen[Any, StandardType[_]] = Gen.fromIterable(
List(
)
)

def platformSpecificStandardTypeAndGen(standardTypeGen: StandardType[_]): StandardTypeAndGen[_] =
standardTypeGen match {
case _ => StandardType.UnitType -> Gen.unit: StandardTypeAndGen[_]
}

val platformSpecificSchemasAndGens: List[SchemaTest[_]] = List(
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ object DynamicValueGen {
def anyDynamicRightValueOfSchema[A](schema: Schema[A]): Gen[Sized, DynamicValue.RightValue] =
anyDynamicValueOfSchema(schema).map(DynamicValue.RightValue(_))

def anyDynamicBothValueOfSchema[A, B](left: Schema[A], right: Schema[A]): Gen[Sized, DynamicValue.BothValue] =
def anyDynamicBothValueOfSchema[A, B](left: Schema[A], right: Schema[B]): Gen[Sized, DynamicValue.BothValue] =
anyDynamicValueOfSchema(left).zip(anyDynamicValueOfSchema(right)).map {
case (l, r) => DynamicValue.BothValue(l, r)
}
Expand Down

0 comments on commit 0d80c32

Please sign in to comment.