From 77397bb87d9779128c20038c8422cfc9ef763610 Mon Sep 17 00:00:00 2001 From: vms Date: Thu, 22 Apr 2021 17:05:12 +0300 Subject: [PATCH] fix tests --- crates/wit/tests/generation_tests/exports/arrays/expanded.rs | 4 ++-- .../tests/generation_tests/exports/basic_types/expanded.rs | 4 ++-- crates/wit/tests/generation_tests/exports/refs/expanded.rs | 4 ++-- .../tests/generation_tests/records/use_as_type/expanded.rs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/wit/tests/generation_tests/exports/arrays/expanded.rs b/crates/wit/tests/generation_tests/exports/arrays/expanded.rs index 27f45b7..eb45c58 100644 --- a/crates/wit/tests/generation_tests/exports/arrays/expanded.rs +++ b/crates/wit/tests/generation_tests/exports/arrays/expanded.rs @@ -120,6 +120,6 @@ pub unsafe fn __fce_generated_wrapper_func_inner_arrays_1(arg_0: u32, arg_1: u32 #[doc(hidden)] #[allow(clippy::all)] #[link_section = "__fce_generated_section__inner_arrays_1"] -pub static __fce_generated_static_global_inner_arrays_1: [u8; 327usize] = { - * b"{\"ast_type\":\"Function\",\"signature\":{\"name\":\"inner_arrays_1\",\"arguments\":[{\"name\":\"arg\",\"ty\":{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"U8\":\"ByValue\"},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]}}],\"output_type\":{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"U8\":\"ByValue\"},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]}}}" +pub static __fce_generated_static_global_inner_arrays_1: [u8; 330usize] = { + * b"{\"ast_type\":\"Function\",\"signature\":{\"name\":\"inner_arrays_1\",\"arguments\":[{\"name\":\"arg\",\"ty\":{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"U8\":\"ByValue\"},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]}}],\"output_types\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"U8\":\"ByValue\"},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]}]}}" }; diff --git a/crates/wit/tests/generation_tests/exports/basic_types/expanded.rs b/crates/wit/tests/generation_tests/exports/basic_types/expanded.rs index 70603b4..eaf6e34 100644 --- a/crates/wit/tests/generation_tests/exports/basic_types/expanded.rs +++ b/crates/wit/tests/generation_tests/exports/basic_types/expanded.rs @@ -78,6 +78,6 @@ pub unsafe fn __fce_generated_wrapper_func_all_types( #[doc(hidden)] #[allow(clippy::all)] #[link_section = "__fce_generated_section__all_types"] -pub static __fce_generated_static_global_all_types: [u8; 633usize] = { - * b"{\"ast_type\":\"Function\",\"signature\":{\"name\":\"all_types\",\"arguments\":[{\"name\":\"arg_0\",\"ty\":{\"I8\":\"ByValue\"}},{\"name\":\"arg_1\",\"ty\":{\"I16\":\"ByValue\"}},{\"name\":\"arg_2\",\"ty\":{\"I32\":\"ByValue\"}},{\"name\":\"arg_3\",\"ty\":{\"I64\":\"ByValue\"}},{\"name\":\"arg_4\",\"ty\":{\"U8\":\"ByValue\"}},{\"name\":\"arg_5\",\"ty\":{\"U16\":\"ByValue\"}},{\"name\":\"arg_6\",\"ty\":{\"U32\":\"ByValue\"}},{\"name\":\"arg_7\",\"ty\":{\"U64\":\"ByValue\"}},{\"name\":\"arg_8\",\"ty\":{\"F32\":\"ByValue\"}},{\"name\":\"arg_9\",\"ty\":{\"F64\":\"ByValue\"}},{\"name\":\"arg_10\",\"ty\":{\"Utf8String\":\"ByValue\"}},{\"name\":\"arg_11\",\"ty\":{\"Vector\":[{\"U8\":\"ByValue\"},\"ByValue\"]}}],\"output_type\":{\"Vector\":[{\"U8\":\"ByValue\"},\"ByValue\"]}}}" +pub static __fce_generated_static_global_all_types: [u8; 636usize] = { + * b"{\"ast_type\":\"Function\",\"signature\":{\"name\":\"all_types\",\"arguments\":[{\"name\":\"arg_0\",\"ty\":{\"I8\":\"ByValue\"}},{\"name\":\"arg_1\",\"ty\":{\"I16\":\"ByValue\"}},{\"name\":\"arg_2\",\"ty\":{\"I32\":\"ByValue\"}},{\"name\":\"arg_3\",\"ty\":{\"I64\":\"ByValue\"}},{\"name\":\"arg_4\",\"ty\":{\"U8\":\"ByValue\"}},{\"name\":\"arg_5\",\"ty\":{\"U16\":\"ByValue\"}},{\"name\":\"arg_6\",\"ty\":{\"U32\":\"ByValue\"}},{\"name\":\"arg_7\",\"ty\":{\"U64\":\"ByValue\"}},{\"name\":\"arg_8\",\"ty\":{\"F32\":\"ByValue\"}},{\"name\":\"arg_9\",\"ty\":{\"F64\":\"ByValue\"}},{\"name\":\"arg_10\",\"ty\":{\"Utf8String\":\"ByValue\"}},{\"name\":\"arg_11\",\"ty\":{\"Vector\":[{\"U8\":\"ByValue\"},\"ByValue\"]}}],\"output_types\":[{\"Vector\":[{\"U8\":\"ByValue\"},\"ByValue\"]}]}}" }; diff --git a/crates/wit/tests/generation_tests/exports/refs/expanded.rs b/crates/wit/tests/generation_tests/exports/refs/expanded.rs index 039cd0d..518552a 100644 --- a/crates/wit/tests/generation_tests/exports/refs/expanded.rs +++ b/crates/wit/tests/generation_tests/exports/refs/expanded.rs @@ -100,6 +100,6 @@ pub unsafe fn __fce_generated_wrapper_func_test_array_refs(arg_0: u32, arg_1: u3 #[doc(hidden)] #[allow(clippy::all)] #[link_section = "__fce_generated_section__test_array_refs"] -pub static __fce_generated_static_global_test_array_refs: [u8; 294usize] = { - * b"{\"ast_type\":\"Function\",\"signature\":{\"name\":\"test_array_refs\",\"arguments\":[{\"name\":\"arg\",\"ty\":{\"Vector\":[{\"Vector\":[{\"Utf8String\":\"ByValue\"},\"ByValue\"]},\"ByRef\"]}}],\"output_type\":{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Utf8String\":\"ByValue\"},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByRef\"]}}}" +pub static __fce_generated_static_global_test_array_refs: [u8; 297usize] = { + * b"{\"ast_type\":\"Function\",\"signature\":{\"name\":\"test_array_refs\",\"arguments\":[{\"name\":\"arg\",\"ty\":{\"Vector\":[{\"Vector\":[{\"Utf8String\":\"ByValue\"},\"ByValue\"]},\"ByRef\"]}}],\"output_types\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Utf8String\":\"ByValue\"},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByRef\"]}]}}" }; diff --git a/crates/wit/tests/generation_tests/records/use_as_type/expanded.rs b/crates/wit/tests/generation_tests/records/use_as_type/expanded.rs index 59dc11b..79ae75d 100644 --- a/crates/wit/tests/generation_tests/records/use_as_type/expanded.rs +++ b/crates/wit/tests/generation_tests/records/use_as_type/expanded.rs @@ -136,6 +136,6 @@ pub unsafe fn __fce_generated_wrapper_func_inner_arrays_2(arg_0: u32, arg_1: u32 #[doc(hidden)] #[allow(clippy::all)] #[link_section = "__fce_generated_section__inner_arrays_2"] -pub static __fce_generated_static_global_inner_arrays_2: [u8; 365usize] = { - * b"{\"ast_type\":\"Function\",\"signature\":{\"name\":\"inner_arrays_2\",\"arguments\":[{\"name\":\"arg\",\"ty\":{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Record\":[\"TestRecord\",\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]}}],\"output_type\":{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Record\":[\"TestRecord\",\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]}}}" +pub static __fce_generated_static_global_inner_arrays_2: [u8; 368usize] = { + * b"{\"ast_type\":\"Function\",\"signature\":{\"name\":\"inner_arrays_2\",\"arguments\":[{\"name\":\"arg\",\"ty\":{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Record\":[\"TestRecord\",\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]}}],\"output_types\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Vector\":[{\"Record\":[\"TestRecord\",\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]},\"ByValue\"]}]}}" }; \ No newline at end of file