AppRecorder.Test.Assertions (app_recorder v0.4.1) View Source

Link to this section Summary

Link to this section Functions

Link to this function

assert_event_recorded(attrs \\ %{})

View Source

Specs

assert_event_recorded(map() | pos_integer() | nil) :: true

Asserts an event is created

It can be used as below:

Examples:

assert_event_recorded()
assert_event_recorded(%{resource_id: "id")
Link to this function

assert_event_recorded(expected_count, attrs)

View Source

Specs

assert_event_recorded(integer(), map()) :: true
Link to this function

assert_outgoing_request_recorded(attrs \\ %{})

View Source

Specs

assert_outgoing_request_recorded(map()) :: true

Asserts an outgoing_request is created

It can be used as below:

Examples:

assert_outgoing_request_recorded()
assert_outgoing_request_recorded(%{destination: "destination")
Link to this function

assert_outgoing_request_recorded(expected_count, attrs)

View Source
Link to this function

assert_request_recorded(attrs \\ %{})

View Source

Specs

assert_request_recorded(map() | pos_integer() | nil) :: true

Asserts an request is created

It can be used as below:

Examples:

assert_request_recorded()
assert_request_recorded(%{idempotency_key: "idempotency_key")
Link to this function

assert_request_recorded(expected_count, attrs)

View Source

Specs

assert_request_recorded(integer(), map()) :: true