Skip to main content

test

Standalone Functions

test_serde

test_serde();

Takes no parameters.

test_get_current_at

test_get_current_at();

Takes no parameters.

test_get_scheduled

test_get_scheduled();

Takes no parameters.

assert_block_horizon_invariants

assert_block_horizon_invariants(value_change, historical_block_number, block_horizon);

Parameters

NameType
value_change&mut ScheduledValueChange<Field>
historical_block_numberu32
block_horizonu32

test_get_block_horizon_change_in_past

test_get_block_horizon_change_in_past();

Takes no parameters.

test_get_block_horizon_change_in_immediate_past

test_get_block_horizon_change_in_immediate_past();

Takes no parameters.

test_get_block_horizon_change_in_near_future

test_get_block_horizon_change_in_near_future();

Takes no parameters.

test_get_block_horizon_change_in_far_future

test_get_block_horizon_change_in_far_future();

Takes no parameters.

test_get_block_horizon_n0_delay

test_get_block_horizon_n0_delay();

Takes no parameters.

test_schedule_change_before_change

test_schedule_change_before_change();

Takes no parameters.

test_schedule_change_after_change

test_schedule_change_after_change();

Takes no parameters.

test_schedule_change_no_delay

test_schedule_change_no_delay();

Takes no parameters.