upload v0.2.0 Upload.Adapters.Test
An adapter that keeps track of uploaded files in memory, so that you can make assertions.
Examples
%{
"123.png" => %Upload{
filename: "foo.png",
key: "123.png",
path: "/path/to/foo.png",
status: :pending
}
}
Link to this section Summary
Functions
Get all uploads
Add an upload to the state
Starts and agent for the test adapter
Stops the agent for the test adapter
Link to this section Functions
Link to this function
get_uploads()
Get all uploads.
Link to this function
put_upload(upload)
Add an upload to the state.
Link to this function
start_link(_)
Starts and agent for the test adapter.
Link to this function
stop(reason \\ :normal, timeout \\ :infinity)
Stops the agent for the test adapter.