View Source Myrmidex.GeneratorSchemas.Default (myrmidex v0.2.0)

The default/fallback implementation of a Myrmidex.GeneratorSchema.

Defines sensible generators for basic Elixir terms and common structs. Also provides basic handling of Ecto fields for generating schemas.

Summary

Functions

See Myrmidex.Helpers.StreamData.uuid_stream_data/0.

See Myrmidex.Helpers.StreamData.date_stream_data/0.

Link to this function

datetime_generator(type \\ :utc_datetime)

View Source

See Myrmidex.Helpers.StreamData.datetime_stream_data/1.

See Myrmidex.Helpers.StreamData.enum_stream_data/1.

See Myrmidex.Helpers.StreamData.monotonic_integer_stream_data/0.

Link to this function

list_generator(list, opts)

View Source

For non-empty lists, generates a list of terms representative of the original list items.

See Myrmidex.Helpers.StreamData.string_stream_data/1.

See Myrmidex.Helpers.StreamData.time_stream_data/0.

Link to this function

timestamp_generator(type)

View Source

See Myrmidex.Helpers.StreamData.timestamp_stream_data/1.

Link to this function

tuple_generator(tuple, opts)

View Source

Generates tuples of the same size and terms as the passed tuple.