antikythera v0.4.0 Antikythera.Test.GearLogHelper View Source

Helpers to work with gear logs within tests.

Link to this section Summary

Functions

Sets a context ID (which is included in gear logs) to process dictionary so that logs can be emitted during test executions.

Link to this section Functions

Link to this function

set_context_id(conn_or_context_or_nil \\ nil)

View Source

Specs

set_context_id(nil | Antikythera.Context.t() | Antikythera.Conn.t()) :: :ok

Sets a context ID (which is included in gear logs) to process dictionary so that logs can be emitted during test executions.

If no argument is given, generates a new context ID and sets it.