annon_api v0.16.2 Annon.Factories.Requests

This module lists Requests-related factories, a mean suitable for tests that involve preparation of DB data.

Link to this section Summary

Link to this section Functions

Link to this function api_request_factory()
Link to this function build(factory_name, attrs \\ %{})
Link to this function build_list(number_of_records, factory_name, attrs \\ %{})
Link to this function build_pair(factory_name, attrs \\ %{})
Link to this function create(_)
create(any()) :: no_return()
Link to this function create(_, _)
create(any(), any()) :: no_return()
Link to this function create_list(_, _, _)
create_list(any(), any(), any()) :: no_return()
Link to this function create_pair(_, _)
create_pair(any(), any()) :: no_return()
Link to this function factory(factory_name)
factory(any()) :: no_return()

Raises a helpful error if no factory is defined.

Link to this function fields_for(factory_name, attrs \\ %{})
Link to this function http_request_factory()
Link to this function http_response_factory()
Link to this function insert(already_built_record)
Link to this function insert(factory_name, attrs \\ %{})
Link to this function insert_list(number_of_records, factory_name, attrs \\ %{})
Link to this function insert_pair(factory_name, attrs \\ %{})
Link to this function latencies_factory()
Link to this function params_for(factory_name, attrs \\ %{})
Link to this function params_with_assocs(factory_name, attrs \\ %{})
Link to this function request_factory()
Link to this function string_params_for(factory_name, attrs \\ %{})
Link to this function string_params_with_assocs(factory_name, attrs \\ %{})