scalaprops magnolia:使用Scalaprops和Magnolia生成任意案例类ADT实例 源码
Scala普兰木兰 build.sbt 对于jvm libraryDependencies + = " com.github.scalaprops " %% " scalaprops-magnolia " % " 0.7.0 " 对于scala-js libraryDependencies + = " com.github.scalaprops " %%% " scalaprops-magnolia " % " 0.7.0 " 例子 将scalaprop.ScalapropsMagnolia的内容导入到您想要scalaprops.Gen类型类的位置,使其自动适用于案例类/密封层次结构, import scalaprops .{ Gen , Cogen } import scalaprops . ScalapropsMagnoliaGen . _ import scalaprops
用户评论