Open johnynek opened 11 years ago
Probably we want:
implicit def scaldingSource[T](implicit arb: Arbitrary[T]): Arbitrary[Source[Scalding, T]]
implicit def stormSource[T](implicit arb: Arbitrary[T]): Arbitrary[Source[Storm, T]]
So we can reuse existing Gen[T]/Arbitrary[T]
to build Sources. We probably don't want laws on whole runs, which are really integration tests and don't seem to play well with scalacheck + these frameworks (cascading/storm), but it is still good to have one API to use to generate input instances.
If someone has a
scalacheck.Gen[T]
it should be good as aP#Source[T]
.