@@ -46,7 +46,8 @@ void test_exec(int argc, char** argv, std::string_view path)
4646
4747void test_apply (int argc, char ** argv, std::string_view path)
4848{
49- Handle handle = INIT mock_prepre_apply (path, handle);
49+ Handle handle = INIT;
50+ mock_prepre_apply (path, handle);
5051 CHECK (apply (handle, 0 ));
5152 delete_handle (&handle);
5253}
@@ -83,13 +84,13 @@ void test_register_initializer_path(int argc, char** argv)
8384}
8485void test_make_params (int argc, char ** argv)
8586{
86- Param params = PARAM assert (params.biomass_initial_concentration == cx);
87+ Param params = PARAM;
88+ assert (params.biomass_initial_concentration == cx);
8789 assert (params.final_time == ft);
8890 assert (params.delta_time == dt);
8991 assert (params.number_particle == np);
9092 assert (params.n_thread == 1 ); // Default value
9193 assert (params.number_exported_result == nex);
92- assert (params.recursive == 0 ); // Default value
9394 assert (params.force_override == 0 ); // Default value
9495 assert (params.load_serde == 0 ); // Default value
9596}
@@ -105,8 +106,7 @@ void test_register_parameters(int argc, char** argv)
105106// need existing directory
106107void test_register_cma_path_recursive (int argc, char ** argv)
107108{
108- Handle handle = INIT int result =
109- register_cma_path_recursive (handle, " ./tools" );
109+ Handle handle = INIT int result = register_cma_path (handle, " ./tools" );
110110 assert (result == 0 );
111111 delete_handle (&handle);
112112}
@@ -159,10 +159,6 @@ void test_branch_null(int argc, char** argv)
159159 CHECK_FALSE (register_result_path (handle, NULL ));
160160 CHECK_FALSE (register_result_path (NULL , NULL ));
161161
162- CHECK_FALSE (register_cma_path_recursive (NULL , " valid" ));
163- CHECK_FALSE (register_cma_path_recursive (handle, NULL ));
164- CHECK_FALSE (register_cma_path_recursive (NULL , NULL ));
165-
166162 CHECK_FALSE (register_serde (NULL , " valid" ));
167163 CHECK_FALSE (register_serde (handle, NULL ));
168164 CHECK_FALSE (register_serde (NULL , NULL ));
0 commit comments