Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
13 lines (11 sloc)
435 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |