xref: /wasmtime-44.0.1/crates/fuzzing/tests/oom/bit_set.rs (revision dbaaa92f)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use cranelift_bitset::CompoundBitSet;
2 use wasmtime::Result;
3 use wasmtime_fuzzing::oom::OomTest;
4 
5 #[test]
6 fn compound_bit_set_try_with_capacity() -> Result<()> {
7     OomTest::new().test(|| {
8         let _bitset = CompoundBitSet::<usize>::try_with_capacity(32)?;
9         Ok(())
10     })
11 }
12 
13 #[test]
14 fn compound_bit_set_try_ensure_capacity() -> Result<()> {
15     OomTest::new().test(|| {
16         let mut bitset = CompoundBitSet::new();
17         bitset.try_ensure_capacity(100)?;
18         Ok(())
19     })
20 }
21 

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026