segment v2.0.0-rc.2 Segment.Sandbox View Source

Provides an api that can be used in tests to ensure data is correctly sent to segment.io.

Link to this section Summary

Link to this section Functions

Link to this function

alias_user(user_id, previous_id, context \\ Context.new()) View Source

Checkout function provides means to reset sandbox state to blank initial state.

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

group(user_id, group_id, traits \\ %{}, context \\ Context.new()) View Source

Link to this function

identify(user_id, traits \\ %{}, context \\ Context.new()) View Source

Link to this function

page(user_id, name \\ "", properties \\ %{}, context \\ Context.new()) View Source

Link to this function

screen(user_id, name \\ "", properties \\ %{}, context \\ Context.new()) View Source

Link to this function

track(user_id, event, properties \\ %{}, context \\ Context.new()) View Source