View Source ExVCR.Adapter.Finch (exvcr v0.15.1)

Provides adapter methods to mock Finch methods.

Link to this section Summary

Functions

Default definitions for stub.

Generate key for searching response.

Callback from ExVCR.Handler to get the response content tuple from the ExVCR.Response record.

Callback from ExVCR.Handler when response is retrieved from the json file cache.

Callback from ExVCR.Handler when response is retrieved from the HTTP server.

Returns the name of the mock target module.

Returns list of the mock target methods with function name and callback. Implementation for global mock.

Returns list of the mock target methods with function name and callback.

Link to this section Functions

Link to this function

convert_from_string(string)

View Source

See ExVCR.Adapter.Finch.Converter.convert_from_string/1.

Link to this function

convert_to_string(request, response)

View Source

See ExVCR.Adapter.Finch.Converter.convert_to_string/2.

Link to this function

default_stub_params(atom)

View Source

Default definitions for stub.

Link to this function

generate_keys_for_request(request)

View Source

Generate key for searching response.

Link to this function

get_response_value_from_cache(response)

View Source

Callback from ExVCR.Handler to get the response content tuple from the ExVCR.Response record.

Link to this function

hook_response_from_cache(request, response)

View Source

Callback from ExVCR.Handler when response is retrieved from the json file cache.

Link to this function

hook_response_from_server(response)

View Source

Callback from ExVCR.Handler when response is retrieved from the HTTP server.

Returns the name of the mock target module.

Link to this function

parse_request_body(request_body)

View Source

See ExVCR.Adapter.Finch.Converter.parse_request_body/1.

Returns list of the mock target methods with function name and callback. Implementation for global mock.

Link to this function

target_methods(recorder)

View Source

Returns list of the mock target methods with function name and callback.