| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/ |
| H A D | metrics.rs | 165 assert_eq!(metrics.tables(), 0); in smoke_test() 176 assert_eq!(metrics.tables(), 1); in smoke_test() 184 assert_eq!(metrics.tables(), 0); in smoke_test() 215 assert_eq!(metrics.tables(), 0); in unused_memories_tables_and_more() 231 assert_eq!(metrics.tables(), 1); in unused_memories_tables_and_more() 237 assert_eq!(metrics.tables(), 0); in unused_memories_tables_and_more() 252 assert_eq!(metrics.tables(), 1); in unused_memories_tables_and_more() 265 assert_eq!(metrics.tables(), 0); in unused_memories_tables_and_more() 341 assert_eq!(metrics.stacks(), 0); in stacks() 348 assert_eq!(metrics.stacks(), 1); in stacks() [all …]
|
| /wasmtime-44.0.1/cranelift/codegen/src/ir/ |
| H A D | types.rs | 473 assert_eq!(0, INVALID.bits()); in basic_scalars() 474 assert_eq!(I8, I8.lane_type()); in basic_scalars() 487 assert_eq!(I8.lane_bits(), 8); in basic_scalars() 488 assert_eq!(I16.lane_bits(), 16); in basic_scalars() 489 assert_eq!(I32.lane_bits(), 32); in basic_scalars() 490 assert_eq!(I64.lane_bits(), 64); in basic_scalars() 492 assert_eq!(F16.lane_bits(), 16); in basic_scalars() 551 assert_eq!(I8X8XN.by(2), None); in dynamic_vectors() 594 assert_eq!(I8.by(3), None); in format_vectors() 595 assert_eq!(I8.by(512), None); in format_vectors() [all …]
|
| H A D | layout.rs | 872 assert_eq!(v, [e1]); in append_block() 879 assert_eq!(v, [e1, e2]); in append_block() 940 assert_eq!(v, []); in insert_block() 984 assert_eq!(v, []); in append_inst() 999 assert_eq!(v, [i1]); in append_inst() 1006 assert_eq!(v, [i1, i2]); in append_inst() 1010 assert_eq!(v, [i2, i1]); in append_inst() 1059 assert_eq!(v, []); in insert_inst() 1074 assert_eq!(v, [i1]); in insert_inst() 1081 assert_eq!(v, [i2, i1]); in insert_inst() [all …]
|
| H A D | immediates.rs | 1146 assert_eq!( in format_uimm64() 1300 assert_eq!( in format_ieee16() 1304 assert_eq!( in format_ieee16() 1308 assert_eq!( in format_ieee16() 1313 assert_eq!( in format_ieee16() 1318 assert_eq!( in format_ieee16() 1322 assert_eq!( in format_ieee16() 1326 assert_eq!( in format_ieee16() 1330 assert_eq!( in format_ieee16() 1334 assert_eq!( in format_ieee16() [all …]
|
| /wasmtime-44.0.1/examples/ |
| H A D | multimemory.rs | 39 assert_eq!(memory0.size(&store), 2); in main() 47 assert_eq!(size0.call(&mut store, ())?, 2); in main() 48 assert_eq!(load0.call(&mut store, 0)?, 0); in main() 56 assert_eq!(memory1.size(&store), 2); in main() 64 assert_eq!(size1.call(&mut store, ())?, 2); in main() 65 assert_eq!(load1.call(&mut store, 0)?, 0); in main() 79 assert_eq!(memory0.data(&store)[0x1002], 6); in main() 80 assert_eq!(memory0.data(&store)[0x1003], 5); in main() 89 assert_eq!(memory1.data(&store)[0x1002], 8); in main() 96 assert_eq!(memory0.size(&store), 3); in main() [all …]
|
| H A D | memory.rs | 27 assert_eq!(memory.size(&store), 2); in main() 28 assert_eq!(memory.data_size(&store), 0x20000); in main() 29 assert_eq!(memory.data_mut(&mut store)[0], 0); in main() 33 assert_eq!(size.call(&mut store, ())?, 2); in main() 34 assert_eq!(load_fn.call(&mut store, 0)?, 0); in main() 35 assert_eq!(load_fn.call(&mut store, 0x1000)?, 1); in main() 46 assert_eq!(memory.data(&store)[0x1002], 6); in main() 47 assert_eq!(memory.data(&store)[0x1003], 5); in main() 54 assert_eq!(memory.size(&store), 3); in main() 55 assert_eq!(memory.data_size(&store), 0x30000); in main() [all …]
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | call_hook.rs | 29 assert_eq!(a, 1); in call_wrapped_func() 30 assert_eq!(b, 2); in call_wrapped_func() 31 assert_eq!(c, 3.0); in call_wrapped_func() 32 assert_eq!(d, 4.0); in call_wrapped_func() 129 assert_eq!( in call_wrapped_async_func() 133 assert_eq!( in call_wrapped_async_func() 186 assert_eq!( in call_linked_func() 190 assert_eq!( in call_linked_func() 251 assert_eq!( in call_linked_func_async() 579 assert_eq!( in basic_async_hook() [all …]
|
| H A D | host_funcs.rs | 271 assert_eq!(x, 0); in import_works() 277 assert_eq!(x, 2); in import_works() 278 assert_eq!(y, 3); in import_works() 298 assert_eq!( in import_works() 370 assert_eq!(x1, 1); in call_import_many_args() 371 assert_eq!(x2, 2); in call_import_many_args() 550 assert_eq!(a, 1); in call_wrapped_func() 551 assert_eq!(b, 2); in call_wrapped_func() 552 assert_eq!(c, 3.0); in call_wrapped_func() 553 assert_eq!(d, 4.0); in call_wrapped_func() [all …]
|
| /wasmtime-44.0.1/crates/cache/src/config/ |
| H A D | tests.rs | 183 assert_eq!( in test_si_prefix_settings() 327 assert_eq!( in test_duration_settings() 331 assert_eq!( in test_duration_settings() 344 assert_eq!( in test_duration_settings() 348 assert_eq!( in test_duration_settings() 473 assert_eq!( in test_builder_default() 477 assert_eq!( in test_builder_default() 481 assert_eq!( in test_builder_default() 485 assert_eq!( in test_builder_default() 490 assert_eq!( in test_builder_default() [all …]
|
| /wasmtime-44.0.1/cranelift/entity/src/ |
| H A D | sparse.rs | 285 assert_eq!(map.len(), 0); in empty_immutable_map() 298 assert_eq!(map.len(), 0); in single_entry() 305 assert_eq!(map.len(), 1); in single_entry() 316 assert_eq!(map.len(), 0); in single_entry() 337 assert_eq!( in multiple_entries() 342 assert_eq!(map.len(), 3); in multiple_entries() 350 assert_eq!(map.len(), 2); in multiple_entries() 358 assert_eq!(map.len(), 3); in multiple_entries() 366 assert_eq!(map.len(), 3); in multiple_entries() 398 assert_eq!(map.len(), 0); in default_impl() [all …]
|
| H A D | list.rs | 654 assert_eq!(sclass_size(0), 4); in size_classes() 662 assert_eq!(sclass_size(1), 8); in size_classes() 712 assert_eq!(list.len(pool), 0); in empty_list() 723 assert_eq!(list.len(pool), 2); in from_slice() 730 assert_eq!(list.len(pool), 0); in from_slice() 747 assert_eq!(list.len(pool), 1); in push() 755 assert_eq!(list.len(pool), 2); in push() 764 assert_eq!(list.len(pool), 3); in push() 787 assert_eq!( in push() 944 assert_eq!( in copy_from_self() [all …]
|
| /wasmtime-44.0.1/cranelift/reader/src/ |
| H A D | lexer.rs | 581 assert_eq!(l1.next(), None); in make_lexer() 582 assert_eq!(l2.next(), None); in make_lexer() 583 assert_eq!(l3.next(), None); in make_lexer() 590 assert_eq!(lex.next(), None); in lex_comment() 595 assert_eq!(lex.next(), None); in lex_comment() 601 assert_eq!(lex.next(), None); in lex_comment() 616 assert_eq!(lex.next(), None); in lex_chars() 632 assert_eq!(lex.next(), None); in lex_numbers() 641 assert_eq!( in lex_identifiers() 647 assert_eq!( in lex_identifiers() [all …]
|
| /wasmtime-44.0.1/cranelift/codegen/src/opts/ |
| H A D | div_const.rs | 269 assert_eq!( in test_magic_u32() 273 assert_eq!( in test_magic_u32() 278 assert_eq!( in test_magic_u32() 298 assert_eq!( in test_magic_u64() 302 assert_eq!( in test_magic_u64() 306 assert_eq!( in test_magic_u64() 310 assert_eq!( in test_magic_u64() 314 assert_eq!( in test_magic_u64() 318 assert_eq!( in test_magic_u64() 322 assert_eq!( in test_magic_u64() [all …]
|
| /wasmtime-44.0.1/tests/all/component_model/ |
| H A D | call_hook.rs | 64 assert_eq!(s.calls_into_host, 1); in call_wrapped_func() 65 assert_eq!(s.returns_from_host, 1); in call_wrapped_func() 66 assert_eq!(s.calls_into_wasm, 1); in call_wrapped_func() 67 assert_eq!(s.returns_from_wasm, 1); in call_wrapped_func() 126 assert_eq!(&message, &result); in call_func_with_realloc() 131 assert_eq!(s.calls_into_host, 0); in call_func_with_realloc() 133 assert_eq!(s.calls_into_wasm, 2); in call_func_with_realloc() 176 assert_eq!(s.calls_into_host, 0); in call_func_with_post_return() 178 assert_eq!(s.calls_into_wasm, 2); in call_func_with_post_return() 504 assert_eq!(*state, 0); in drop_suspended_async_hook() [all …]
|
| H A D | dynamic.rs | 1017 assert_eq!(name, "m"); in introspection() 1039 assert_eq!(name, "i"); in introspection() 1046 assert_eq!(name, "i"); in introspection() 1053 assert_eq!(name, "m"); in introspection() 1061 assert_eq!(name, "r"); in introspection() 1075 assert_eq!(name, "m"); in introspection() 1083 assert_eq!(name, "b"); in introspection() 1109 assert_eq!( in introspection() 1197 assert_eq!( in introspection() 1227 assert_eq!( in introspection() [all …]
|
| /wasmtime-44.0.1/cranelift/bforest/src/ |
| H A D | map.rs | 926 assert_eq!( in inserting() 1039 assert_eq!( in split_level0_leaf() 1453 assert_eq!( in into_iter() 1479 assert_eq!( in range() 1495 assert_eq!( in range() 1500 assert_eq!( in range() 1505 assert_eq!( in range() 1510 assert_eq!( in range() 1515 assert_eq!( in range() 1530 assert_eq!( in range() [all …]
|
| H A D | node.rs | 631 assert_eq!( in inner() 645 assert_eq!(sp.lhs_entries, 4); in inner() 646 assert_eq!(sp.rhs_entries, 4); in inner() 647 assert_eq!(sp.crit_key, 'd'); in inner() 667 assert_eq!(sp.crit_key, 'd'); in inner() 697 assert_eq!(sp.crit_key, 'i'); in leaf() 711 assert_eq!(sp.crit_key, 'h'); in leaf() 752 assert_eq!( in inner_balance() 759 assert_eq!( in inner_balance() 767 assert_eq!( in inner_balance() [all …]
|
| H A D | set.rs | 401 assert_eq!(c.elem(), None); in empty() 428 assert_eq!(c.next(), None); in simple_cursor() 429 assert_eq!(c.next(), None); in simple_cursor() 433 assert_eq!(c.prev(), None); in simple_cursor() 434 assert_eq!(c.prev(), None); in simple_cursor() 444 assert_eq!(c.elem(), None); in simple_cursor() 467 assert_eq!(c.prev(), None); in two_level_sparse_tree() 471 assert_eq!(c.next(), None); in two_level_sparse_tree() 475 assert_eq!(c.prev(), None); in two_level_sparse_tree() 491 assert_eq!(c.elem(), None); in two_level_sparse_tree() [all …]
|
| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | p2_ip_name_lookup.rs | 23 assert_eq!( in main() 27 assert_eq!(resolve_one("::").unwrap(), IpAddress::IPV6_UNSPECIFIED); in main() 28 assert_eq!(resolve_one("::1").unwrap(), IpAddress::IPV6_LOOPBACK); in main() 30 assert_eq!( in main() 34 assert_eq!( in main() 38 assert_eq!( in main() 42 assert_eq!( in main() 48 assert_eq!(resolve("").unwrap_err(), ErrorCode::InvalidArgument); in main() 49 assert_eq!(resolve(" ").unwrap_err(), ErrorCode::InvalidArgument); in main() 51 assert_eq!( in main() [all …]
|
| H A D | p1_fd_filestat_get.rs | 5 assert_eq!(stat.size, 0, "stdio size should be 0"); in test_fd_filestat_get() 6 assert_eq!(stat.atim, 0, "stdio atim should be 0"); in test_fd_filestat_get() 7 assert_eq!(stat.mtim, 0, "stdio mtim should be 0"); in test_fd_filestat_get() 8 assert_eq!(stat.ctim, 0, "stdio ctim should be 0"); in test_fd_filestat_get() 11 assert_eq!(stat.size, 0, "stdio size should be 0"); in test_fd_filestat_get() 12 assert_eq!(stat.atim, 0, "stdio atim should be 0"); in test_fd_filestat_get() 13 assert_eq!(stat.mtim, 0, "stdio mtim should be 0"); in test_fd_filestat_get() 14 assert_eq!(stat.ctim, 0, "stdio ctim should be 0"); in test_fd_filestat_get() 17 assert_eq!(stat.size, 0, "stdio size should be 0"); in test_fd_filestat_get() 18 assert_eq!(stat.atim, 0, "stdio atim should be 0"); in test_fd_filestat_get() [all …]
|
| H A D | p2_tcp_sockopts.rs | 12 assert_eq!(sock.address_family(), family); in test_tcp_sockopt_defaults() 86 assert_eq!(sock.keep_alive_enabled().unwrap(), true); in test_tcp_sockopt_readback() 88 assert_eq!(sock.keep_alive_enabled().unwrap(), false); in test_tcp_sockopt_readback() 97 assert_eq!(sock.keep_alive_count().unwrap(), 42); in test_tcp_sockopt_readback() 100 assert_eq!(sock.hop_limit().unwrap(), 42); in test_tcp_sockopt_readback() 103 assert_eq!(sock.receive_buffer_size().unwrap(), 0x10000); in test_tcp_sockopt_readback() 106 assert_eq!(sock.send_buffer_size().unwrap(), 0x10000); in test_tcp_sockopt_readback() 137 assert_eq!( in test_tcp_sockopt_inheritance() 144 assert_eq!(accepted_client.hop_limit().unwrap(), 42); in test_tcp_sockopt_inheritance() 162 assert_eq!( in test_tcp_sockopt_inheritance() [all …]
|
| /wasmtime-44.0.1/cranelift/isle/isle/isle_examples/run/ |
| H A D | let_shadowing_main.rs | 13 assert_eq!(20, let_shadowing::constructor_test1(&mut ctx, 20)); in main() 14 assert_eq!(97, let_shadowing::constructor_test1(&mut ctx, 97)); in main() 16 assert_eq!(20, let_shadowing::constructor_test2(&mut ctx, 20)); in main() 17 assert_eq!(97, let_shadowing::constructor_test2(&mut ctx, 97)); in main() 19 assert_eq!(20, let_shadowing::constructor_test3(&mut ctx, 20)); in main() 20 assert_eq!(97, let_shadowing::constructor_test3(&mut ctx, 97)); in main() 22 assert_eq!(23, let_shadowing::constructor_test4(&mut ctx, 20)); in main() 23 assert_eq!(23, let_shadowing::constructor_test4(&mut ctx, 97)); in main() 25 assert_eq!(20, let_shadowing::constructor_test5(&mut ctx, 20)); in main() 26 assert_eq!(97, let_shadowing::constructor_test5(&mut ctx, 97)); in main() [all …]
|
| H A D | iconst_main.rs | 12 assert_eq!(iconst::constructor_X(&mut ctx, -1), Some(-2)); in main() 13 assert_eq!(iconst::constructor_X(&mut ctx, -2), Some(-3)); in main() 14 assert_eq!( in main() 18 assert_eq!( in main() 23 assert_eq!( in main() 27 assert_eq!( in main() 34 assert_eq!( in main() 38 assert_eq!( in main() 46 assert_eq!(iconst::constructor_Z(&mut ctx, 0), Some(1)); in main() 47 assert_eq!(iconst::constructor_Z(&mut ctx, 1), Some(2)); in main() [all …]
|
| /wasmtime-44.0.1/cranelift/codegen/meta/src/ |
| H A D | unique_table.rs | 113 assert_eq!( in test_find_subsequence() 123 assert_eq!(seq_table.add(&vec![0, 1, 2, 3]), 0); in test_optimal_add() 124 assert_eq!(seq_table.add(&vec![0, 1, 2, 3]), 0); in test_optimal_add() 125 assert_eq!(seq_table.add(&vec![1, 2, 3]), 1); in test_optimal_add() 126 assert_eq!(seq_table.add(&vec![2, 3]), 2); in test_optimal_add() 127 assert_eq!(seq_table.len(), 4); in test_optimal_add() 129 assert_eq!(seq_table.add(&vec![2, 3, 4]), 2); in test_optimal_add() 130 assert_eq!(seq_table.len(), 5); in test_optimal_add() 133 assert_eq!(seq_table.len(), 8); in test_optimal_add() 136 assert_eq!(seq_table.add(&vec![8]), 8); in test_optimal_add() [all …]
|
| /wasmtime-44.0.1/crates/core/tests/ |
| H A D | tests.rs | 96 assert_eq!(drops.load(SeqCst), 0); in new_drops() 98 assert_eq!(drops.load(SeqCst), 1); in new_drops() 134 assert_eq!(msg, "uh oh!"); in msg() 325 assert_eq!( in bail_macro() 354 assert_eq!( in ensure_macro() 364 assert_eq!( in ensure_macro() 374 assert_eq!( in ensure_macro() 384 assert_eq!( in ensure_macro() 409 assert_eq!( in ensure_macro() 751 assert_eq!(actual, expected); in fmt_debug_alternate() [all …]
|