tai v0.0.4 Tai.TestSupport.Mock

Link to this section Summary

Link to this section Functions

Link to this function mock_product(product)
mock_product(Tai.Exchanges.Product.t()) :: :ok
Link to this function mock_snapshot(feed_id, symbol, bids, asks)
mock_snapshot(atom(), atom(), map(), map()) ::
  :ok
  | {:error,
     %WebSockex.FrameEncodeError{
       __exception__: term(),
       close_code: term(),
       frame_payload: term(),
       frame_type: term(),
       reason: term()
     }
     | %WebSockex.ConnError{__exception__: term(), original: term()}
     | %WebSockex.NotConnectedError{
         __exception__: term(),
         connection_state: term()
       }
     | %WebSockex.InvalidFrameError{__exception__: term(), frame: term()}}