Home
last modified time | relevance | path

Searched refs:assert_eq (Results 1 – 10 of 10) sorted by relevance

/openbmc/openbmc/meta-security/recipes-ids/suricata/files/
H A DCVE-2024-38535_pre.patch239 - assert_eq!(hd.name, ":method".as_bytes().to_vec());
240 - assert_eq!(hd.value, "GET".as_bytes().to_vec());
241 + assert_eq!(hd.name, ":method".as_bytes().to_vec().into());
242 + assert_eq!(hd.value, "GET".as_bytes().to_vec().into());
244 assert_eq!(remainder.len(), 0);
250 - assert_eq!(hd.name, "accept".as_bytes().to_vec());
251 - assert_eq!(hd.value, "*/*".as_bytes().to_vec());
252 + assert_eq!(hd.name, "accept".as_bytes().to_vec().into());
253 + assert_eq!(hd.value, "*/*".as_bytes().to_vec().into());
255 assert_eq!(remainder.len(), 0);
[all …]
/openbmc/qemu/rust/qemu-api/src/
H A Doffset_of.rs153 assert_eq!(offset_of!(Bar, a), 0); in test_offset_of()
154 assert_eq!(offset_of!(Bar, b), 8); in test_offset_of()
155 assert_eq!(OFFSET_TO_C, 16); in test_offset_of()
156 assert_eq!(offset_of!(Bar, d), 40); in test_offset_of()
158 assert_eq!(offset_of!(Baz, b), 0); in test_offset_of()
159 assert_eq!(offset_of!(Baz, a), 4); in test_offset_of()
H A Dc_str.rs44 assert_eq!(good.to_bytes_with_nul(), good_bytes); in test_cstr_macro()
51 assert_eq!(GOOD.to_bytes_with_nul(), GOOD_BYTES); in test_cstr_macro_const()
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Dgen-hyprel.c189 #define assert_eq(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, ==) macro
280 assert_eq(elf.ehdr->e_ident[EI_MAG0], ELFMAG0, "0x%x"); in init_elf()
281 assert_eq(elf.ehdr->e_ident[EI_MAG1], ELFMAG1, "0x%x"); in init_elf()
282 assert_eq(elf.ehdr->e_ident[EI_MAG2], ELFMAG2, "0x%x"); in init_elf()
283 assert_eq(elf.ehdr->e_ident[EI_MAG3], ELFMAG3, "0x%x"); in init_elf()
286 assert_eq(elf.ehdr->e_ident[EI_CLASS], ELFCLASS64, "%u"); in init_elf()
287 assert_eq(elf.ehdr->e_ident[EI_DATA], ELFENDIAN, "%u"); in init_elf()
288 assert_eq(elf16toh(elf.ehdr->e_type), ET_REL, "%u"); in init_elf()
289 assert_eq(elf16toh(elf.ehdr->e_machine), EM_AARCH64, "%u"); in init_elf()
/openbmc/linux/rust/macros/
H A Dmodule.rs9 assert_eq!(group.delimiter(), Delimiter::Bracket); in expect_string_array()
17 Some(TokenTree::Punct(punct)) => assert_eq!(punct.as_char(), ','), in expect_string_array()
125 assert_eq!(expect_punct(it), ':'); in parse()
140 assert_eq!(expect_punct(it), ','); in parse()
H A Dconcat_idents.rs18 assert_eq!(expect_punct(&mut it), ','); in concat_idents()
H A Dzeroable.rs59 assert_eq!(nested, 0); in derive()
/openbmc/linux/rust/kernel/
H A Dstr.rs366 assert_eq!(checked_str, "��"); in test_cstr_to_str()
382 assert_eq!(unchecked_str, "��"); in test_cstr_as_str_unchecked()
/openbmc/linux/Documentation/translations/zh_CN/rust/
H A Dcoding-guidelines.rst121 /// assert_eq!(unsafe { x.unwrap_unchecked() }, "air");
/openbmc/linux/Documentation/rust/
H A Dcoding-guidelines.rst134 /// assert_eq!(unsafe { x.unwrap_unchecked() }, "air");