Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 435 Bytes
package io.pager
import io.pager.client.telegram.ChatId
import io.pager.subscription.Repository.Name
import zio.random.Random
import zio.test.{ Gen, Sized }
import zio.test.Gen._
object Generators {
val repositoryName: Gen[Random with Sized, Name] = anyString.map(Name)
val chatId: Gen[Random with Sized, ChatId] = anyLong.map(ChatId)
val chatIds: Gen[Random with Sized, (ChatId, ChatId)] = chatId <*> chatId
}
You can’t perform that action at this time.