Module: Hegel::Generators

Extended by:
Syntax::Methods
Defined in:
lib/hegel/generators.rb,
lib/hegel/syntax/methods.rb,
sig/hegel.rbs

Overview

The generators Hegel::Syntax::Methods exposes as bare, include-able methods (see docs/adr/0004): booleans, integers, floats, text, and arrays.

Each class validates its own options at #do_draw time, not at construction: hegel-rust's own contributor documentation states that every invalid combination of builder values must be caught at draw time, and that the resulting message is public API, asserted against by tests as a stable substring. This binding follows the same rule so a generator built once and drawn from many times fails the same way hegel-rust's does.

Defined Under Namespace

Classes: ArrayGenerator, BinaryGenerator, BooleanGenerator, CharactersGenerator, CompositeGenerator, DatesGenerator, DatetimesGenerator, DeferredGenerator, DomainsGenerator, EmailsGenerator, FloatGenerator, FromRegexGenerator, HashGenerator, IntegerGenerator, IpAddressesGenerator, JustGenerator, OneOfGenerator, OptionalGenerator, SampledFromGenerator, SetGenerator, TextGenerator, TimesGenerator, TupleGenerator, UrlsGenerator, UuidsGenerator

Method Summary

Methods included from Syntax::Methods

arrays, binary, booleans, characters, composite, dates, datetimes, deferred, domains, emails, floats, from_regex, hashes, integers, ip_addresses, just, one_of, optional, sampled_from, sets, text, times, tuples, urls, uuids