Skip to content

Commit

Permalink
consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
googley42 committed Oct 13, 2024
1 parent 3929401 commit 846da12
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS
() => MiddleTraitLeaf,
Chunk.empty
)
val caseMiddleTraitLeaf = Schema.Case[MiddleTrait, MiddleTraitLeaf.type](
val middleTraitLeafCase = Schema.Case[MiddleTrait, MiddleTraitLeaf.type](
"MiddleTraitLeaf",
middleTraitLeafSchema,
(a: MiddleTrait) => a.asInstanceOf[MiddleTraitLeaf.type],
Expand All @@ -571,7 +571,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS
)
val middleTraitSchema = Schema.Enum1[MiddleTraitLeaf.type, MiddleTrait](
TypeId.parse("zio.schema.DeriveSchemaSpec.MiddleTrait"),
caseMiddleTraitLeaf,
middleTraitLeafCase,
Chunk(simpleEnum(automaticallyAdded = true))
)

Expand All @@ -580,7 +580,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS
() => TraitLeaf,
Chunk.empty
)
val caseTraitLeaf = Schema.Case[TraitWithMiddleTrait, TraitLeaf.type](
val traitLeafCase = Schema.Case[TraitWithMiddleTrait, TraitLeaf.type](
"TraitLeaf",
traitLeafSchema,
(a: TraitWithMiddleTrait) => a.asInstanceOf[TraitLeaf.type],
Expand All @@ -599,7 +599,7 @@ object DeriveSchemaSpec extends ZIOSpecDefault with VersionSpecificDeriveSchemaS
val expected =
Schema.Enum2[TraitLeaf.type, MiddleTrait, TraitWithMiddleTrait](
TypeId.parse("zio.schema.DeriveSchemaSpec.TraitWithMiddleTrait"),
caseTraitLeaf,
traitLeafCase,
caseMiddleTrait
)

Expand Down

0 comments on commit 846da12

Please sign in to comment.