Searched refs:flag_value_list (Results 1 – 5 of 5) sorted by relevance
57 let flag_value_list = create_test_flag_value_list(); in test_boolean_flag_value_update() localVariable58 let value_offset = flag_value_list.header.boolean_value_offset; in test_boolean_flag_value_update()59 let mut content = flag_value_list.into_bytes(); in test_boolean_flag_value_update()63 for i in 0..flag_value_list.header.num_flags { in test_boolean_flag_value_update()75 let mut flag_value_list = create_test_flag_value_list().into_bytes(); in test_boolean_out_of_range() localVariable76 let error = update_boolean_flag_value(&mut flag_value_list[..], 8, true).unwrap_err(); in test_boolean_out_of_range()
139 let flag_value_list = create_test_flag_value_list(); in test_serialization() localVariable141 let header: &FlagValueHeader = &flag_value_list.header; in test_serialization()146 let flag_value_bytes = flag_value_list.into_bytes(); in test_serialization()149 assert_eq!(&flag_value_list, &reinterpreted_value_list.unwrap()); in test_serialization()157 let flag_value_list = create_test_flag_value_list(); in test_version_number() localVariable158 let bytes = &flag_value_list.into_bytes(); in test_version_number()167 let mut flag_value_list = create_test_flag_value_list(); in test_file_type_check() localVariable168 flag_value_list.header.file_type = 123u8; in test_file_type_check()169 let error = FlagValueList::from_bytes(&flag_value_list.into_bytes()).unwrap_err(); in test_file_type_check()
298 let flag_value_list = FlagValueList::from_bytes(&read_file_to_bytes(flag_val)?)?; in list_flags() localVariable309 let flag_value = flag_value_list.booleans[flag_index as usize]; in list_flags()346 let flag_value_list = FlagValueList::from_bytes(&read_file_to_bytes(flag_val)?)?; in list_flags_with_info() localVariable358 let flag_value = flag_value_list.booleans[flag_index as usize]; in list_flags_with_info()517 let flag_value_list = in test_list_flag() localVariable522 let flag_value_list_path = flag_value_list.path().display().to_string(); in test_list_flag()585 let flag_value_list = in test_list_flag_with_info() localVariable592 let flag_value_list_path = flag_value_list.path().display().to_string(); in test_list_flag_with_info()
54 let flag_value_list = create_test_flag_value_list().into_bytes(); in test_flag_value_query() localVariable57 let flag_value = find_boolean_flag_value(&flag_value_list[..], offset as u32).unwrap(); in test_flag_value_query()65 let flag_value_list = create_test_flag_value_list().into_bytes(); in test_boolean_out_of_range() localVariable66 let error = find_boolean_flag_value(&flag_value_list[..], 8).unwrap_err(); in test_boolean_out_of_range()
76 let flag_value_list = create_test_flag_value_list_from_source(); in test_list_contents() localVariable77 assert!(flag_value_list.is_ok()); in test_list_contents()80 assert_eq!(flag_value_list.unwrap(), expected_flag_value_list); in test_list_contents()