Tangent.Test (Tangent v0.2.1) View Source
Test helpers to register agent state overloads.
Usage
defmodule MyTest do
use ExUnit.Case, async: true
use Tangent.Test
setup do
Tangent.Test.overload(MyAgent)
end
# // ...
end
Link to this section Summary
Functions
Registers the current process as the owner of an overload. Processes that can trace their ancestry to the owner will access a segmented dataset when interacting with the named agent, rather than accessing global state.
Link to this section Functions
Specs
Registers the current process as the owner of an overload. Processes that can trace their ancestry to the owner will access a segmented dataset when interacting with the named agent, rather than accessing global state.
If passing an overload to a process that has not been started by the current process,
Tangent.Test.Agent.register/2
should be used directly.