AshMock.Info (ash_mock v0.2.0)

View Source

Summary

Functions

mock DSL entities

Fields that will be randomized by AshRandomParams. See AshRandomParams for more information.

Fields that will be randomized by AshRandomParams. See AshRandomParams for more information.

Fields that will be excluded by AshRandomParams. See AshRandomParams for more information.

Fields that will be excluded by AshRandomParams. See AshRandomParams for more information.

Functions

mock(dsl_or_extended)

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

mock DSL entities

mock_enforce_random(dsl_or_extended)

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

Fields that will be randomized by AshRandomParams. See AshRandomParams for more information.

mock_enforce_random!(dsl_or_extended)

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

Fields that will be randomized by AshRandomParams. See AshRandomParams for more information.

mock_exclude(dsl_or_extended)

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

Fields that will be excluded by AshRandomParams. See AshRandomParams for more information.

mock_exclude!(dsl_or_extended)

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

Fields that will be excluded by AshRandomParams. See AshRandomParams for more information.

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.