Skip to main content

fill_ids_data_for_test

Function fill_ids_data_for_test 

Source
pub fn fill_ids_data_for_test(names: &[&str]) -> HashMap<String, HintReference>
Expand description

Test helper: Create a HashMap of HintReferences for testing, keyed by name. Output: { “name1”: HintReference::new_simple(-num), “name2”: HintReference::new_simple(-num + 1), … “nameN”: HintReference::new_simple(-1), } where num is the length of names.