com.outworkers.util.samplers

Generators

trait Generators extends GenerationDomain

Linear Supertypes
GenerationDomain, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Generators
  2. GenerationDomain
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type City = domain.Definitions.City

    Definition Classes
    GenerationDomain
  2. type Country = domain.Definitions.Country

    Definition Classes
    GenerationDomain
  3. type CountryCode = domain.Definitions.CountryCode

    Definition Classes
    GenerationDomain
  4. type Domain = domain.Definitions.Domain

    Definition Classes
    GenerationDomain
  5. type EmailAddress = domain.Definitions.EmailAddress

    Definition Classes
    GenerationDomain
  6. type FirstName = domain.Definitions.FirstName

    Definition Classes
    GenerationDomain
  7. type FullName = domain.Definitions.FullName

    Definition Classes
    GenerationDomain
  8. type LastName = domain.Definitions.LastName

    Definition Classes
    GenerationDomain
  9. type LoremIpsum = domain.Definitions.LoremIpsum

    Definition Classes
    GenerationDomain
  10. type ProgrammingLanguage = domain.Definitions.ProgrammingLanguage

    Definition Classes
    GenerationDomain
  11. type ShortString = domain.Definitions.ShortString

    Definition Classes
    GenerationDomain
  12. type Url = domain.Definitions.Url

    Definition Classes
    GenerationDomain

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val City: domain.Definitions.City.type

    Definition Classes
    GenerationDomain
  7. val Country: domain.Definitions.Country.type

    Definition Classes
    GenerationDomain
  8. val CountryCode: domain.Definitions.CountryCode.type

    Definition Classes
    GenerationDomain
  9. val Domain: domain.Definitions.Domain.type

    Definition Classes
    GenerationDomain
  10. val EmailAddress: domain.Definitions.EmailAddress.type

    Definition Classes
    GenerationDomain
  11. val FirstName: domain.Definitions.FirstName.type

    Definition Classes
    GenerationDomain
  12. val FullName: domain.Definitions.FullName.type

    Definition Classes
    GenerationDomain
  13. val LastName: domain.Definitions.LastName.type

    Definition Classes
    GenerationDomain
  14. val LoremIpsum: domain.Definitions.LoremIpsum.type

    Definition Classes
    GenerationDomain
  15. val ProgrammingLanguage: domain.Definitions.ProgrammingLanguage.type

    Definition Classes
    GenerationDomain
  16. val ShortString: domain.Definitions.ShortString.type

    Definition Classes
    GenerationDomain
  17. val Url: domain.Definitions.Url.type

    Definition Classes
    GenerationDomain
  18. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. val defaultGeneration: Int

  21. val domains: List[String]

    Attributes
    protected[this]
  22. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def gen[M[X] <: TraversableOnce[X], T](size: Int = defaultGeneration)(implicit cbf: CanBuildFrom[Nothing, T, M[T]], sampler: Sample[T]): M[T]

    Generates a list of elements based on an input collection type.

    Generates a list of elements based on an input collection type.

    M

    The type of collection to build

    T

    The type of the underlying sampled type.

    size

    The number of elements to generate

    cbf

    The implicit builder

    returns

    A Collection of "size" elements with type T.

  26. def gen[T](implicit arg0: Sample[T]): T

    Uses the type class available in implicit scope to mock a certain custom object.

    Uses the type class available in implicit scope to mock a certain custom object.

    T

    The parameter to mock.

    returns

    A sample of the given type generated using the implicit sampler.

  27. def genList[T](size: Int = defaultGeneration)(implicit arg0: Sample[T]): List[T]

  28. def genMap[A1, A2](size: Int = defaultGeneration)(implicit arg0: Sample[A1], arg1: Sample[A2], cbf: CanBuildFrom[Nothing, (A1, A2), Map[A1, A2]]): Map[A1, A2]

  29. def genOpt[T](implicit arg0: Sample[T]): Option[T]

  30. def genSet[T](size: Int = defaultGeneration)(implicit arg0: Sample[T]): Set[T]

  31. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  32. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  37. def oneOf[T <: Enumeration](enum: T): oneOf.T.Value

  38. def oneOf[T](list: Seq[T]): T

  39. val protocols: List[String]

    Attributes
    protected[this]
  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from GenerationDomain

Inherited from AnyRef

Inherited from Any

Ungrouped