Class: Forall::Shrink
- Inherits:
-
Object
- Object
- Forall::Shrink
- Defined in:
- lib/forall/shrink.rb
Instance Method Summary collapse
- #array(xs, size: nil) ⇒ Object
- #boolean(x) ⇒ Object
- #date ⇒ Object
- #datetime ⇒ Object
- #float(x, range = 0..Float::MAX) ⇒ Object
- #hash(x, size: nil) ⇒ Object
- #integer(x, range = 0..2**64-1) ⇒ Object
- #permutation(x, size: nil) ⇒ Object
- #range(x, range = nil, width: nil) ⇒ Object
- #sample(items, count: nil) ⇒ Object (also: #choose)
- #set(x, size: nil) ⇒ Object
- #string ⇒ Object
- #time ⇒ Object
Instance Method Details
#array(xs, size: nil) ⇒ Object
40 41 |
# File 'lib/forall/shrink.rb', line 40 def array(xs, size: nil) end |
#boolean(x) ⇒ Object
3 4 5 |
# File 'lib/forall/shrink.rb', line 3 def boolean(x) x ? [false] : [] end |
#date ⇒ Object
17 18 19 |
# File 'lib/forall/shrink.rb', line 17 def date # TODO end |
#datetime ⇒ Object
25 26 27 |
# File 'lib/forall/shrink.rb', line 25 def datetime # TODO end |
#float(x, range = 0..Float::MAX) ⇒ Object
10 11 |
# File 'lib/forall/shrink.rb', line 10 def float(x, range = 0..Float::MAX) end |
#hash(x, size: nil) ⇒ Object
43 44 |
# File 'lib/forall/shrink.rb', line 43 def hash(x, size: nil) end |
#integer(x, range = 0..2**64-1) ⇒ Object
7 8 |
# File 'lib/forall/shrink.rb', line 7 def integer(x, range = 0..2**64-1) end |
#permutation(x, size: nil) ⇒ Object
37 38 |
# File 'lib/forall/shrink.rb', line 37 def permutation(x, size: nil) end |
#range(x, range = nil, width: nil) ⇒ Object
29 30 |
# File 'lib/forall/shrink.rb', line 29 def range(x, range = nil, width: nil) end |
#sample(items, count: nil) ⇒ Object Also known as: choose
32 33 |
# File 'lib/forall/shrink.rb', line 32 def sample(items, count: nil) end |
#set(x, size: nil) ⇒ Object
46 47 |
# File 'lib/forall/shrink.rb', line 46 def set(x, size: nil) end |
#string ⇒ Object
13 14 15 |
# File 'lib/forall/shrink.rb', line 13 def string # TODO end |
#time ⇒ Object
21 22 23 |
# File 'lib/forall/shrink.rb', line 21 def time # TODO end |