From 8ebbacecd60366ac4ba68aa35f9b0e7a0e56ff61 Mon Sep 17 00:00:00 2001 From: Hitalo Souza Date: Tue, 12 Nov 2024 14:33:01 -0400 Subject: [PATCH] json: move `_test.v` files to `vlib/json/tests/` (#22731) --- cmd/tools/vtest-self.v | 2 +- vlib/json/{ => tests}/json_alias_test.v | 0 vlib/json/{ => tests}/json_decode_anon_struct_test.v | 0 vlib/json/{ => tests}/json_decode_embed_test.v | 0 vlib/json/{ => tests}/json_decode_option_enum_test.v | 0 vlib/json/{ => tests}/json_decode_struct_ptr_test.v | 0 vlib/json/{ => tests}/json_decode_test.v | 0 vlib/json/{ => tests}/json_decode_with_encode_arg_test.v | 0 vlib/json/{ => tests}/json_decode_with_generic_array_test.v | 0 vlib/json/{ => tests}/json_decode_with_generic_test.v | 0 vlib/json/{ => tests}/json_decode_with_option_arg_test.v | 0 vlib/json/{ => tests}/json_decode_with_sumtype_test.v | 0 vlib/json/{ => tests}/json_embed_test.v | 0 vlib/json/{ => tests}/json_encode_embed_test.v | 0 vlib/json/{ => tests}/json_encode_enum_test.v | 0 vlib/json/{ => tests}/json_encode_map_test.v | 0 vlib/json/{ => tests}/json_encode_primite_test.v | 0 vlib/json/{ => tests}/json_encode_ptr_test.v | 0 vlib/json/{ => tests}/json_encode_recursive_ptr_test.v | 0 .../{ => tests}/json_encode_struct_with_option_field_test.v | 0 vlib/json/{ => tests}/json_encode_sumtype_test.v | 0 vlib/json/{ => tests}/json_encode_with_mut_test.v | 0 vlib/json/{ => tests}/json_encode_with_ptr_test.v | 0 vlib/json/{ => tests}/json_fixed_array_test.v | 0 vlib/json/{ => tests}/json_generic_array_test.v | 0 vlib/json/{ => tests}/json_i32_test.v | 0 vlib/json/{ => tests}/json_omitempty_test.v | 0 vlib/json/{ => tests}/json_omitempty_types_test.v | 0 vlib/json/{ => tests}/json_option_alias_test.v | 0 vlib/json/{ => tests}/json_option_none_test.v | 0 vlib/json/{ => tests}/json_option_raw_test.v | 0 vlib/json/{ => tests}/json_option_struct_test.v | 0 vlib/json/{ => tests}/json_option_test.v | 0 vlib/json/{ => tests}/json_raw_test.v | 0 vlib/json/{ => tests}/json_struct_option_test.v | 0 vlib/json/{ => tests}/json_sumtype_test.v | 0 vlib/json/{ => tests}/json_test.v | 0 37 files changed, 1 insertion(+), 1 deletion(-) rename vlib/json/{ => tests}/json_alias_test.v (100%) rename vlib/json/{ => tests}/json_decode_anon_struct_test.v (100%) rename vlib/json/{ => tests}/json_decode_embed_test.v (100%) rename vlib/json/{ => tests}/json_decode_option_enum_test.v (100%) rename vlib/json/{ => tests}/json_decode_struct_ptr_test.v (100%) rename vlib/json/{ => tests}/json_decode_test.v (100%) rename vlib/json/{ => tests}/json_decode_with_encode_arg_test.v (100%) rename vlib/json/{ => tests}/json_decode_with_generic_array_test.v (100%) rename vlib/json/{ => tests}/json_decode_with_generic_test.v (100%) rename vlib/json/{ => tests}/json_decode_with_option_arg_test.v (100%) rename vlib/json/{ => tests}/json_decode_with_sumtype_test.v (100%) rename vlib/json/{ => tests}/json_embed_test.v (100%) rename vlib/json/{ => tests}/json_encode_embed_test.v (100%) rename vlib/json/{ => tests}/json_encode_enum_test.v (100%) rename vlib/json/{ => tests}/json_encode_map_test.v (100%) rename vlib/json/{ => tests}/json_encode_primite_test.v (100%) rename vlib/json/{ => tests}/json_encode_ptr_test.v (100%) rename vlib/json/{ => tests}/json_encode_recursive_ptr_test.v (100%) rename vlib/json/{ => tests}/json_encode_struct_with_option_field_test.v (100%) rename vlib/json/{ => tests}/json_encode_sumtype_test.v (100%) rename vlib/json/{ => tests}/json_encode_with_mut_test.v (100%) rename vlib/json/{ => tests}/json_encode_with_ptr_test.v (100%) rename vlib/json/{ => tests}/json_fixed_array_test.v (100%) rename vlib/json/{ => tests}/json_generic_array_test.v (100%) rename vlib/json/{ => tests}/json_i32_test.v (100%) rename vlib/json/{ => tests}/json_omitempty_test.v (100%) rename vlib/json/{ => tests}/json_omitempty_types_test.v (100%) rename vlib/json/{ => tests}/json_option_alias_test.v (100%) rename vlib/json/{ => tests}/json_option_none_test.v (100%) rename vlib/json/{ => tests}/json_option_raw_test.v (100%) rename vlib/json/{ => tests}/json_option_struct_test.v (100%) rename vlib/json/{ => tests}/json_option_test.v (100%) rename vlib/json/{ => tests}/json_raw_test.v (100%) rename vlib/json/{ => tests}/json_struct_option_test.v (100%) rename vlib/json/{ => tests}/json_sumtype_test.v (100%) rename vlib/json/{ => tests}/json_test.v (100%) diff --git a/cmd/tools/vtest-self.v b/cmd/tools/vtest-self.v index 5bc0cdd28..fa0207eeb 100644 --- a/cmd/tools/vtest-self.v +++ b/cmd/tools/vtest-self.v @@ -53,7 +53,7 @@ const essential_list = [ 'vlib/encoding/utf8/encoding_utf8_test.v', 'vlib/encoding/utf8/utf8_util_test.v', 'vlib/flag/flag_test.v', - 'vlib/json/json_decode_test.v', + 'vlib/json/tests/json_decode_test.v', 'vlib/math/math_test.v', 'vlib/net/tcp_test.v', 'vlib/net/http/http_test.v', diff --git a/vlib/json/json_alias_test.v b/vlib/json/tests/json_alias_test.v similarity index 100% rename from vlib/json/json_alias_test.v rename to vlib/json/tests/json_alias_test.v diff --git a/vlib/json/json_decode_anon_struct_test.v b/vlib/json/tests/json_decode_anon_struct_test.v similarity index 100% rename from vlib/json/json_decode_anon_struct_test.v rename to vlib/json/tests/json_decode_anon_struct_test.v diff --git a/vlib/json/json_decode_embed_test.v b/vlib/json/tests/json_decode_embed_test.v similarity index 100% rename from vlib/json/json_decode_embed_test.v rename to vlib/json/tests/json_decode_embed_test.v diff --git a/vlib/json/json_decode_option_enum_test.v b/vlib/json/tests/json_decode_option_enum_test.v similarity index 100% rename from vlib/json/json_decode_option_enum_test.v rename to vlib/json/tests/json_decode_option_enum_test.v diff --git a/vlib/json/json_decode_struct_ptr_test.v b/vlib/json/tests/json_decode_struct_ptr_test.v similarity index 100% rename from vlib/json/json_decode_struct_ptr_test.v rename to vlib/json/tests/json_decode_struct_ptr_test.v diff --git a/vlib/json/json_decode_test.v b/vlib/json/tests/json_decode_test.v similarity index 100% rename from vlib/json/json_decode_test.v rename to vlib/json/tests/json_decode_test.v diff --git a/vlib/json/json_decode_with_encode_arg_test.v b/vlib/json/tests/json_decode_with_encode_arg_test.v similarity index 100% rename from vlib/json/json_decode_with_encode_arg_test.v rename to vlib/json/tests/json_decode_with_encode_arg_test.v diff --git a/vlib/json/json_decode_with_generic_array_test.v b/vlib/json/tests/json_decode_with_generic_array_test.v similarity index 100% rename from vlib/json/json_decode_with_generic_array_test.v rename to vlib/json/tests/json_decode_with_generic_array_test.v diff --git a/vlib/json/json_decode_with_generic_test.v b/vlib/json/tests/json_decode_with_generic_test.v similarity index 100% rename from vlib/json/json_decode_with_generic_test.v rename to vlib/json/tests/json_decode_with_generic_test.v diff --git a/vlib/json/json_decode_with_option_arg_test.v b/vlib/json/tests/json_decode_with_option_arg_test.v similarity index 100% rename from vlib/json/json_decode_with_option_arg_test.v rename to vlib/json/tests/json_decode_with_option_arg_test.v diff --git a/vlib/json/json_decode_with_sumtype_test.v b/vlib/json/tests/json_decode_with_sumtype_test.v similarity index 100% rename from vlib/json/json_decode_with_sumtype_test.v rename to vlib/json/tests/json_decode_with_sumtype_test.v diff --git a/vlib/json/json_embed_test.v b/vlib/json/tests/json_embed_test.v similarity index 100% rename from vlib/json/json_embed_test.v rename to vlib/json/tests/json_embed_test.v diff --git a/vlib/json/json_encode_embed_test.v b/vlib/json/tests/json_encode_embed_test.v similarity index 100% rename from vlib/json/json_encode_embed_test.v rename to vlib/json/tests/json_encode_embed_test.v diff --git a/vlib/json/json_encode_enum_test.v b/vlib/json/tests/json_encode_enum_test.v similarity index 100% rename from vlib/json/json_encode_enum_test.v rename to vlib/json/tests/json_encode_enum_test.v diff --git a/vlib/json/json_encode_map_test.v b/vlib/json/tests/json_encode_map_test.v similarity index 100% rename from vlib/json/json_encode_map_test.v rename to vlib/json/tests/json_encode_map_test.v diff --git a/vlib/json/json_encode_primite_test.v b/vlib/json/tests/json_encode_primite_test.v similarity index 100% rename from vlib/json/json_encode_primite_test.v rename to vlib/json/tests/json_encode_primite_test.v diff --git a/vlib/json/json_encode_ptr_test.v b/vlib/json/tests/json_encode_ptr_test.v similarity index 100% rename from vlib/json/json_encode_ptr_test.v rename to vlib/json/tests/json_encode_ptr_test.v diff --git a/vlib/json/json_encode_recursive_ptr_test.v b/vlib/json/tests/json_encode_recursive_ptr_test.v similarity index 100% rename from vlib/json/json_encode_recursive_ptr_test.v rename to vlib/json/tests/json_encode_recursive_ptr_test.v diff --git a/vlib/json/json_encode_struct_with_option_field_test.v b/vlib/json/tests/json_encode_struct_with_option_field_test.v similarity index 100% rename from vlib/json/json_encode_struct_with_option_field_test.v rename to vlib/json/tests/json_encode_struct_with_option_field_test.v diff --git a/vlib/json/json_encode_sumtype_test.v b/vlib/json/tests/json_encode_sumtype_test.v similarity index 100% rename from vlib/json/json_encode_sumtype_test.v rename to vlib/json/tests/json_encode_sumtype_test.v diff --git a/vlib/json/json_encode_with_mut_test.v b/vlib/json/tests/json_encode_with_mut_test.v similarity index 100% rename from vlib/json/json_encode_with_mut_test.v rename to vlib/json/tests/json_encode_with_mut_test.v diff --git a/vlib/json/json_encode_with_ptr_test.v b/vlib/json/tests/json_encode_with_ptr_test.v similarity index 100% rename from vlib/json/json_encode_with_ptr_test.v rename to vlib/json/tests/json_encode_with_ptr_test.v diff --git a/vlib/json/json_fixed_array_test.v b/vlib/json/tests/json_fixed_array_test.v similarity index 100% rename from vlib/json/json_fixed_array_test.v rename to vlib/json/tests/json_fixed_array_test.v diff --git a/vlib/json/json_generic_array_test.v b/vlib/json/tests/json_generic_array_test.v similarity index 100% rename from vlib/json/json_generic_array_test.v rename to vlib/json/tests/json_generic_array_test.v diff --git a/vlib/json/json_i32_test.v b/vlib/json/tests/json_i32_test.v similarity index 100% rename from vlib/json/json_i32_test.v rename to vlib/json/tests/json_i32_test.v diff --git a/vlib/json/json_omitempty_test.v b/vlib/json/tests/json_omitempty_test.v similarity index 100% rename from vlib/json/json_omitempty_test.v rename to vlib/json/tests/json_omitempty_test.v diff --git a/vlib/json/json_omitempty_types_test.v b/vlib/json/tests/json_omitempty_types_test.v similarity index 100% rename from vlib/json/json_omitempty_types_test.v rename to vlib/json/tests/json_omitempty_types_test.v diff --git a/vlib/json/json_option_alias_test.v b/vlib/json/tests/json_option_alias_test.v similarity index 100% rename from vlib/json/json_option_alias_test.v rename to vlib/json/tests/json_option_alias_test.v diff --git a/vlib/json/json_option_none_test.v b/vlib/json/tests/json_option_none_test.v similarity index 100% rename from vlib/json/json_option_none_test.v rename to vlib/json/tests/json_option_none_test.v diff --git a/vlib/json/json_option_raw_test.v b/vlib/json/tests/json_option_raw_test.v similarity index 100% rename from vlib/json/json_option_raw_test.v rename to vlib/json/tests/json_option_raw_test.v diff --git a/vlib/json/json_option_struct_test.v b/vlib/json/tests/json_option_struct_test.v similarity index 100% rename from vlib/json/json_option_struct_test.v rename to vlib/json/tests/json_option_struct_test.v diff --git a/vlib/json/json_option_test.v b/vlib/json/tests/json_option_test.v similarity index 100% rename from vlib/json/json_option_test.v rename to vlib/json/tests/json_option_test.v diff --git a/vlib/json/json_raw_test.v b/vlib/json/tests/json_raw_test.v similarity index 100% rename from vlib/json/json_raw_test.v rename to vlib/json/tests/json_raw_test.v diff --git a/vlib/json/json_struct_option_test.v b/vlib/json/tests/json_struct_option_test.v similarity index 100% rename from vlib/json/json_struct_option_test.v rename to vlib/json/tests/json_struct_option_test.v diff --git a/vlib/json/json_sumtype_test.v b/vlib/json/tests/json_sumtype_test.v similarity index 100% rename from vlib/json/json_sumtype_test.v rename to vlib/json/tests/json_sumtype_test.v diff --git a/vlib/json/json_test.v b/vlib/json/tests/json_test.v similarity index 100% rename from vlib/json/json_test.v rename to vlib/json/tests/json_test.v -- 2.39.5