@@ -83,8 +83,8 @@ TEST_F(PrintInfoTest, SetupParameters)
8383 PARAM.sys .gamma_only_local = false ;
8484 PARAM.input .calculation = cal_type[i];
8585 testing::internal::CaptureStdout ();
86- EXPECT_NO_THROW (Print_Info ::setup_parameters (*ucell,*kv));
87- output = testing::internal::GetCapturedStdout ();
86+ EXPECT_NO_THROW (ModuleIO ::setup_parameters (*ucell, *kv));
87+ output = testing::internal::GetCapturedStdout ();
8888 if (PARAM.input .calculation == " scf" )
8989 {
9090 EXPECT_THAT (output,testing::HasSubstr (" Self-consistent calculations" ));
@@ -106,7 +106,7 @@ TEST_F(PrintInfoTest, SetupParameters)
106106 {
107107 PARAM.input .mdp .md_type = md_types[j];
108108 testing::internal::CaptureStdout ();
109- EXPECT_NO_THROW (Print_Info ::setup_parameters (*ucell,*kv));
109+ EXPECT_NO_THROW (ModuleIO ::setup_parameters (*ucell, *kv));
110110 output = testing::internal::GetCapturedStdout ();
111111 EXPECT_THAT (output,testing::HasSubstr (" Molecular Dynamics simulations" ));
112112 if (PARAM.mdp .md_type == " fire" )
@@ -141,8 +141,8 @@ TEST_F(PrintInfoTest, SetupParameters)
141141 {
142142 PARAM.input .basis_type = basis_type[i];
143143 testing::internal::CaptureStdout ();
144- EXPECT_NO_THROW (Print_Info ::setup_parameters (*ucell,*kv));
145- output = testing::internal::GetCapturedStdout ();
144+ EXPECT_NO_THROW (ModuleIO ::setup_parameters (*ucell, *kv));
145+ output = testing::internal::GetCapturedStdout ();
146146 if (PARAM.input .basis_type == " lcao" )
147147 {
148148 EXPECT_THAT (output,testing::HasSubstr (" Use Systematically Improvable Atomic bases" ));
@@ -170,22 +170,22 @@ TEST_F(PrintInfoTest, PrintScreen)
170170 if (PARAM.input .calculation ==" scf" )
171171 {
172172 testing::internal::CaptureStdout ();
173- Print_Info ::print_screen (stress_step,force_step,istep);
174- output = testing::internal::GetCapturedStdout ();
173+ ModuleIO ::print_screen (stress_step, force_step, istep);
174+ output = testing::internal::GetCapturedStdout ();
175175 EXPECT_THAT (output,testing::HasSubstr (" SELF-CONSISTENT" ));
176176 }
177177 else if (PARAM.input .calculation ==" nscf" )
178178 {
179179 testing::internal::CaptureStdout ();
180- Print_Info ::print_screen (stress_step,force_step,istep);
181- output = testing::internal::GetCapturedStdout ();
180+ ModuleIO ::print_screen (stress_step, force_step, istep);
181+ output = testing::internal::GetCapturedStdout ();
182182 EXPECT_THAT (output,testing::HasSubstr (" NONSELF-CONSISTENT" ));
183183 }
184184 else if (PARAM.input .calculation ==" md" )
185185 {
186186 testing::internal::CaptureStdout ();
187- Print_Info ::print_screen (stress_step,force_step,istep);
188- output = testing::internal::GetCapturedStdout ();
187+ ModuleIO ::print_screen (stress_step, force_step, istep);
188+ output = testing::internal::GetCapturedStdout ();
189189 EXPECT_THAT (output,testing::HasSubstr (" STEP OF MOLECULAR DYNAMICS" ));
190190 }
191191 else
@@ -194,22 +194,22 @@ TEST_F(PrintInfoTest, PrintScreen)
194194 if (PARAM.input .calculation ==" relax" )
195195 {
196196 testing::internal::CaptureStdout ();
197- Print_Info ::print_screen (stress_step,force_step,istep);
198- output = testing::internal::GetCapturedStdout ();
197+ ModuleIO ::print_screen (stress_step, force_step, istep);
198+ output = testing::internal::GetCapturedStdout ();
199199 EXPECT_THAT (output,testing::HasSubstr (" STEP OF ION RELAXATION" ));
200200 }
201201 else if (PARAM.input .calculation ==" cell-relax" )
202202 {
203203 testing::internal::CaptureStdout ();
204- Print_Info ::print_screen (stress_step,force_step,istep);
205- output = testing::internal::GetCapturedStdout ();
204+ ModuleIO ::print_screen (stress_step, force_step, istep);
205+ output = testing::internal::GetCapturedStdout ();
206206 EXPECT_THAT (output,testing::HasSubstr (" RELAX CELL" ));
207207 EXPECT_THAT (output,testing::HasSubstr (" RELAX IONS" ));
208208 }
209209 PARAM.input .relax_new = true ;
210210 testing::internal::CaptureStdout ();
211- Print_Info ::print_screen (stress_step,force_step,istep);
212- output = testing::internal::GetCapturedStdout ();
211+ ModuleIO ::print_screen (stress_step, force_step, istep);
212+ output = testing::internal::GetCapturedStdout ();
213213 EXPECT_THAT (output,testing::HasSubstr (" STEP OF RELAXATION" ));
214214 }
215215 }
@@ -220,8 +220,8 @@ TEST_F(PrintInfoTest, PrintTime)
220220 time_t time_start = std::time (nullptr );
221221 time_t time_finish = std::time (nullptr );
222222 testing::internal::CaptureStdout ();
223- EXPECT_NO_THROW (Print_Info ::print_time (time_start,time_finish));
224- output = testing::internal::GetCapturedStdout ();
223+ EXPECT_NO_THROW (ModuleIO ::print_time (time_start, time_finish));
224+ output = testing::internal::GetCapturedStdout ();
225225 EXPECT_THAT (output,testing::HasSubstr (" START Time" ));
226226 EXPECT_THAT (output,testing::HasSubstr (" FINISH Time" ));
227227 EXPECT_THAT (output,testing::HasSubstr (" TOTAL Time" ));
0 commit comments