Trait/Object

org.bitcoins.testkit.core.gen

NumberGenerator

Related Docs: object NumberGenerator | package gen

Permalink

trait NumberGenerator extends AnyRef

Created by chris on 6/16/16.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NumberGenerator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def bigInts: Gen[BigInt]

    Permalink

    Chooses a BigInt in the ranges of 0 <= bigInt < 2^^64

  6. def bigIntsUInt64Range: Gen[BigInt]

    Permalink
  7. def bitVector: Gen[BitVector]

    Permalink

    Generates a bit vector

  8. def bool: Gen[Boolean]

    Permalink

    Generates a random boolean

  9. def byte: Gen[Byte]

    Permalink

    Generates an arbitrary Byte in Scala

  10. def bytes(num: Int): Gen[List[Byte]]

    Permalink

    Generates the number of bytes specified by num

  11. def bytes: Gen[List[Byte]]

    Permalink

    Generates a 100 byte sequence

  12. def bytevector(length: Int): Gen[ByteVector]

    Permalink
  13. def bytevector: Gen[ByteVector]

    Permalink

    Generates an arbitrary ByteVector

  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def compactSizeUInts: Gen[CompactSizeUInt]

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def genP: Gen[UInt8]

    Permalink

    Generates a random GCS P parameter.

    Generates a random GCS P parameter.

    Bit parameter for GCS, cannot be more than 32 as we will have a number too large for a UInt64.

    See also

    https://github.com/Roasbeef/btcutil/blob/b5d74480bb5b02a15a9266cbeae37ecf9dd6ffca/gcs/gcs.go#L67

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def int32s: Gen[Int32]

    Permalink
  23. def int64s: Gen[Int64]

    Permalink
  24. val ints: Gen[Int]

    Permalink

    Random integers

  25. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  27. val negativeInts: Gen[Int]

    Permalink

    Integers between Int.MinValue and -1

  28. def negativeLongs: Gen[Long]

    Permalink

    Creates a number generator that generates negative long numbers

  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. def positiveBigInts: Gen[BigInt]

    Permalink
  32. val positiveInts: Gen[Int]

    Permalink

    Integers between 0 and Int.MaxValue

  33. def positiveLongs: Gen[Long]

    Permalink

    Creates a generator that generates positive long numbers

  34. def positiveLongsNoZero: Gen[Long]

    Permalink

    Creates a generator for positive longs without the number zero

  35. def positiveScriptNumbers: Gen[ScriptNumber]

    Permalink
  36. def positiveShort: Gen[Short]

    Permalink
  37. def scriptNumbers: Gen[ScriptNumber]

    Permalink
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def timeLockScriptNumbers: Gen[ScriptNumber]

    Permalink

    The policy bounds for nTimeLock fields (see TxBuilder)

  40. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  41. def uInt32s: Gen[UInt32]

    Permalink

    Generates a number in the range 0 <= x <= 2 ^^32 - 1 then wraps it in a UInt32

  42. def uInt5: Gen[UInt5]

    Permalink
  43. def uInt5s: Gen[Seq[UInt5]]

    Permalink
  44. def uInt64: Gen[UInt64]

    Permalink
  45. def uInt64s: Gen[UInt64]

    Permalink

    Generates a number in the range 0 <= x < 2^^64 then wraps it in a UInt64

  46. def uInt8: Gen[UInt8]

    Permalink
  47. def uInt8s: Gen[Seq[UInt8]]

    Permalink
  48. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped