Skip to content

Module hb_ao_test_vectors.erl

Uses a series of different Opts values to test the resolution engine's execution under different circumstances.

Function Index

as_path_test/1*
basic_get_test/1*
basic_set_test/1*
continue_as_test/1*
deep_recursive_get_test/1*
deep_set_new_messages_test/0*
deep_set_test/1*
deep_set_with_device_test/1*
denormalized_device_key_test/1*
device_excludes_test/1*
device_exports_test/1*
device_with_default_handler_function_test/1*
device_with_handler_function_test/1*
exec_dummy_device/2*Ensure that we can read a device from the cache then execute it.
gen_default_device/0*Create a simple test device that implements the default handler.
gen_handler_device/0*Create a simple test device that implements the handler key.
generate_device_with_keys_using_args/0*Generates a test device with three keys, each of which uses progressively more of the arguments that can be passed to a device key.
get_as_with_device_test/1*
get_with_device_test/1*
key_from_id_device_with_args_test/1*Test that arguments are passed to a device key as expected.
key_to_binary_test/1*
list_transform_test/1*
load_as_test/1*
load_device_test/0*
recursive_get_test/1*
resolve_binary_key_test/1*
resolve_from_multiple_keys_test/1*
resolve_id_test/1*
resolve_key_twice_test/1*
resolve_path_element_test/1*
resolve_simple_test/1*
run_all_test_/0*Run each test in the file with each set of options.
run_test/0*
set_with_device_test/1*
start_as_test/1*
start_as_with_parameters_test/1*
step_hook_test/1*
test_opts/0*
test_suite/0*
untrusted_load_device_test/0*

Function Details

as_path_test/1 *

as_path_test(Opts) -> any()

basic_get_test/1 *

basic_get_test(Opts) -> any()

basic_set_test/1 *

basic_set_test(Opts) -> any()

continue_as_test/1 *

continue_as_test(Opts) -> any()

deep_recursive_get_test/1 *

deep_recursive_get_test(Opts) -> any()

deep_set_new_messages_test/0 *

deep_set_new_messages_test() -> any()

deep_set_test/1 *

deep_set_test(Opts) -> any()

deep_set_with_device_test/1 *

deep_set_with_device_test(Opts) -> any()

denormalized_device_key_test/1 *

denormalized_device_key_test(Opts) -> any()

device_excludes_test/1 *

device_excludes_test(Opts) -> any()

device_exports_test/1 *

device_exports_test(Opts) -> any()

device_with_default_handler_function_test/1 *

device_with_default_handler_function_test(Opts) -> any()

device_with_handler_function_test/1 *

device_with_handler_function_test(Opts) -> any()

exec_dummy_device/2 *

exec_dummy_device(SigningWallet, Opts) -> any()

Ensure that we can read a device from the cache then execute it. By extension, this will also allow us to load a device from Arweave due to the remote store implementations.

gen_default_device/0 *

gen_default_device() -> any()

Create a simple test device that implements the default handler.

gen_handler_device/0 *

gen_handler_device() -> any()

Create a simple test device that implements the handler key.

generate_device_with_keys_using_args/0 *

generate_device_with_keys_using_args() -> any()

Generates a test device with three keys, each of which uses progressively more of the arguments that can be passed to a device key.

get_as_with_device_test/1 *

get_as_with_device_test(Opts) -> any()

get_with_device_test/1 *

get_with_device_test(Opts) -> any()

key_from_id_device_with_args_test/1 *

key_from_id_device_with_args_test(Opts) -> any()

Test that arguments are passed to a device key as expected. Particularly, we need to ensure that the key function in the device can specify any arity (1 through 3) and the call is handled correctly.

key_to_binary_test/1 *

key_to_binary_test(Opts) -> any()

list_transform_test/1 *

list_transform_test(Opts) -> any()

load_as_test/1 *

load_as_test(Opts) -> any()

load_device_test/0 *

load_device_test() -> any()

recursive_get_test/1 *

recursive_get_test(Opts) -> any()

resolve_binary_key_test/1 *

resolve_binary_key_test(Opts) -> any()

resolve_from_multiple_keys_test/1 *

resolve_from_multiple_keys_test(Opts) -> any()

resolve_id_test/1 *

resolve_id_test(Opts) -> any()

resolve_key_twice_test/1 *

resolve_key_twice_test(Opts) -> any()

resolve_path_element_test/1 *

resolve_path_element_test(Opts) -> any()

resolve_simple_test/1 *

resolve_simple_test(Opts) -> any()

run_all_test_/0 *

run_all_test_() -> any()

Run each test in the file with each set of options. Start and reset the store for each test.

run_test/0 *

run_test() -> any()

set_with_device_test/1 *

set_with_device_test(Opts) -> any()

start_as_test/1 *

start_as_test(Opts) -> any()

start_as_with_parameters_test/1 *

start_as_with_parameters_test(Opts) -> any()

step_hook_test/1 *

step_hook_test(InitOpts) -> any()

test_opts/0 *

test_opts() -> any()

test_suite/0 *

test_suite() -> any()

untrusted_load_device_test/0 *

untrusted_load_device_test() -> any()