Skip to main content

test

Standalone Functions

assert_equal_after_conversion

assert_equal_after_conversion(original);

Parameters

NameType
originalScheduledDelayChange<TEST_INITIAL_DELAY>

test_serde

test_serde();

Takes no parameters.

test_serde_large_values

test_serde_large_values();

Takes no parameters.

get_non_initial_delay_change

get_non_initial_delay_change(pre, post, block_of_change);

Parameters

NameType
preu32
postu32
block_of_changeu32

get_initial_delay_change

get_initial_delay_change();

Takes no parameters.

test_get_current

test_get_current();

Takes no parameters.

test_get_current_initial

test_get_current_initial();

Takes no parameters.

test_get_scheduled

test_get_scheduled();

Takes no parameters.

test_get_scheduled_initial

test_get_scheduled_initial();

Takes no parameters.

test_schedule_change_to_shorter_delay_before_change

test_schedule_change_to_shorter_delay_before_change();

Takes no parameters.

test_schedule_change_to_shorter_delay_after_change

test_schedule_change_to_shorter_delay_after_change();

Takes no parameters.

test_schedule_change_to_shorter_delay_from_initial

test_schedule_change_to_shorter_delay_from_initial();

Takes no parameters.

test_schedule_change_to_longer_delay_before_change

test_schedule_change_to_longer_delay_before_change();

Takes no parameters.

test_schedule_change_to_longer_delay_after_change

test_schedule_change_to_longer_delay_after_change();

Takes no parameters.

test_schedule_change_to_longer_delay_from_initial

test_schedule_change_to_longer_delay_from_initial();

Takes no parameters.

assert_effective_minimum_delay_invariants

assert_effective_minimum_delay_invariants(delay_change, historical_block_number, effective_minimum_delay);

Parameters

NameType
delay_change&mut ScheduledDelayChange<INITIAL_DELAY>
historical_block_numberu32
effective_minimum_delayu32

test_get_effective_delay_at_before_change_in_far_future

test_get_effective_delay_at_before_change_in_far_future();

Takes no parameters.

test_get_effective_delay_at_before_change_to_long_delay

test_get_effective_delay_at_before_change_to_long_delay();

Takes no parameters.

test_get_effective_delay_at_before_near_change_to_short_delay

test_get_effective_delay_at_before_near_change_to_short_delay();

Takes no parameters.

test_get_effective_delay_at_after_change

test_get_effective_delay_at_after_change();

Takes no parameters.

test_get_effective_delay_at_initial

test_get_effective_delay_at_initial();

Takes no parameters.