Trials

trait Trials[+Case] extends TrialsScaffolding[Case]
Companion:
object
trait TrialsScaffolding[Case]
trait TrialsFactoring[Case]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

abstract class TrialException(cause: Throwable) extends RuntimeException
Inherited from:
TrialsFactoring

Types

override type SupplySyntaxType <: SupplyToSyntax[Case]

Value members

Abstract methods

def and[Case2](secondTrials: Trials[Case2]): Tuple2Trials[Case, Case2]
def filter(predicate: Case => Boolean): Trials[Case]
def flatMap[TransformedCase](step: Case => Trials[TransformedCase]): Trials[TransformedCase]
def javaTrials: Trials[_ <: Case]
def lists: Trials[List[Case]]
def listsOfSize(size: Int): Trials[List[Case]]
def lotsOfSize[Container](size: Int)(implicit factory: Factory[Case, Container]): Trials[Container]
def map[TransformedCase](transform: Case => TransformedCase): Trials[TransformedCase]
def mapFilter[TransformedCase](filteringTransform: Case => Option[TransformedCase]): Trials[TransformedCase]
def maps[Value](values: Trials[Value]): Trials[Map[_ <: Case, Value]]
def options: Trials[Option[Case]]
def or[Case2](alternativeTrials: Trials[Case2]): Trials[Either[Case, Case2]]
def sets: Trials[Set[_ <: Case]]
def several[Container](implicit factory: Factory[Case, Container]): Trials[Container]
def sortedMaps[Value](values: Trials[Value])(implicit ordering: Ordering[_ >: Case]): Trials[SortedMap[_ <: Case, Value]]
def sortedSets(implicit ordering: Ordering[_ >: Case]): Trials[SortedSet[_ <: Case]]

Concrete methods

def strings: Trials[String]
Implicitly added by CharacterTrialsSyntax
def stringsOfSize(size: Int): Trials[String]
Implicitly added by CharacterTrialsSyntax

Inherited methods

def reproduce(recipe: String): Case

Reproduce a specific case in a repeatable fashion, based on a recipe.

Reproduce a specific case in a repeatable fashion, based on a recipe.

Value parameters:
recipe

This encodes a specific case and will only be understood by the same value of trials instance that was used to obtain it.

Returns:

The specific Case denoted by the recipe.

Throws:
RuntimeException

if the recipe does not correspond to the receiver, either due to it being created by a different flavour of trials instance or subsequent code changes.

Inherited from:
TrialsFactoring
def trials: Trials[Case]
Inherited from:
TrialsScaffolding
def withLimits(casesLimit: Int, complexityLimit: Int, shrinkageAttemptsLimit: Int, shrinkageStop: () => Case): SupplySyntaxType
Inherited from:
TrialsScaffolding
def withRecipe(recipe: String): SupplySyntaxType
Inherited from:
TrialsScaffolding

Deprecated and Inherited methods

@deprecated("Use `withLimits` instead.")
def withLimit(limit: Int, complexityLimit: Int): SupplySyntaxType
Deprecated
Inherited from:
TrialsScaffolding
@deprecated("Use `withLimits` instead.")
def withLimit(limit: Int): SupplySyntaxType
Deprecated
Inherited from:
TrialsScaffolding

Concrete fields

Implicitly added by CharacterTrialsSyntax

Inherited fields

val generation: Free[GenerationOperation, _ <: Case]
Inherited from:
GenerationSupport