AshMock.Info (ash_mock v0.1.0)

View Source

Summary

Functions

mock DSL entities

Fields to be omitted by AshRandomParams. See AshRandomParams for more details.

Fields to be omitted by AshRandomParams. See AshRandomParams for more details.

Fields to be populated by AshRandomParams. See AshRandomParams for more details.

Fields to be populated by AshRandomParams. See AshRandomParams for more details.

The identity to use when upserting records in the mock_new action.

The identity to use when upserting records in the mock_new action.

Functions

mock(dsl_or_extended)

@spec mock(dsl_or_extended :: module() | map()) :: [struct()]

mock DSL entities

mock_omit(dsl_or_extended)

@spec mock_omit(dsl_or_extended :: module() | map()) :: {:ok, [atom()]} | :error

Fields to be omitted by AshRandomParams. See AshRandomParams for more details.

mock_omit!(dsl_or_extended)

@spec mock_omit!(dsl_or_extended :: module() | map()) :: [atom()] | no_return()

Fields to be omitted by AshRandomParams. See AshRandomParams for more details.

mock_options(dsl_or_extended)

@spec mock_options(dsl_or_extended :: module() | map()) :: %{
  required(atom()) => any()
}

mock DSL options

Returns a map containing the and any configured or default values.

mock_populate(dsl_or_extended)

@spec mock_populate(dsl_or_extended :: module() | map()) :: {:ok, [atom()]} | :error

Fields to be populated by AshRandomParams. See AshRandomParams for more details.

mock_populate!(dsl_or_extended)

@spec mock_populate!(dsl_or_extended :: module() | map()) :: [atom()] | no_return()

Fields to be populated by AshRandomParams. See AshRandomParams for more details.

mock_upsert_identity(dsl_or_extended)

@spec mock_upsert_identity(dsl_or_extended :: module() | map()) ::
  {:ok, atom()} | :error

The identity to use when upserting records in the mock_new action.

mock_upsert_identity!(dsl_or_extended)

@spec mock_upsert_identity!(dsl_or_extended :: module() | map()) ::
  atom() | no_return()

The identity to use when upserting records in the mock_new action.