fn add_expectations(
        state_manager: Arc<ic_test_utilities::state_manager::RefMockStateManager>,
        from: u64,
        to: u64,
    ) {
        // make the mock state manager return empty hashes for heights 3, 4 and 5
        state_manager
            .get_mut()
            .expect_list_state_hashes_to_certify()
            .return_const(
                (from..=to)
                    .map(move |h| {
                        (
                            Height::from(h),
                            CryptoHashOfPartialState::from(CryptoHash(Vec::new())),
                        )
                    })
                    .collect::<Vec<(Height, CryptoHashOfPartialState)>>(),
            );
    }
// Adds an expectation to the StateManager mock, which asks for empty hashes for
// heights in the range `from` to `to`.
Adds an expectation to the StateManager mock, which asks for empty hashes for
heights in the range `from` to `to`.
Adds an expectation to the StateManager mock which asks for empty hashes for heights in the range ` from ` to ` to ` .
fn add_expectations(
        state_manager: Arc<ic_test_utilities::state_manager::RefMockStateManager>,
        from: u64,
        to: u64,
    ) {
        // make the mock state manager return empty hashes for heights 3, 4 and 5
        state_manager
            .get_mut()
            .expect_list_state_hashes_to_certify()
            .return_const(
                (from..=to)
                    .map(move |h| {
                        (
                            Height::from(h),
                            CryptoHashOfPartialState::from(CryptoHash(Vec::new())),
                        )
                    })
                    .collect::<Vec<(Height, CryptoHashOfPartialState)>>(),
            );
    }
fn add_expectations ( state_manager : Arc < ic_test_utilities :: state_manager :: RefMockStateManager > , from : u64 , to : u64 , ) { // make the mock state manager return empty hashes for heights 3, 4 and 5 state_manager . get_mut ( ) . expect_list_state_hashes_to_certify ( ) . return_const ( ( from ..= to ) . map ( move | h | { ( Height :: from ( h ) , CryptoHashOfPartialState :: from ( CryptoHash ( Vec :: new ( ) ) ) , ) } ) . collect :: < Vec < ( Height , CryptoHashOfPartialState ) > > ( ) , ) ; }
Adds an expectation to the StateManager mock, which asks for empty hashes for
heights in the range `from` to `to`.
Adds an expectation to the StateManager mock which asks for empty hashes for heights in the range ` from ` to ` to ` .
state_manager
Arc<ic_test_utilities::state_manager::RefMockStateManager>
from
u64
to
u64
state_manager
Arc<ic_test_utilities::state_manager::RefMockStateManager>
from
u64
to
u64