test
Standalone Functions
assert_equal_after_conversion
assert_equal_after_conversion(original);
Parameters
Name | Type |
---|---|
original | ScheduledDelayChange<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
Name | Type |
---|---|
pre | u32 |
post | u32 |
block_of_change | u32 |
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
Name | Type |
---|---|
delay_change | &mut ScheduledDelayChange<INITIAL_DELAY> |
historical_block_number | u32 |
effective_minimum_delay | u32 |
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.