如题,C语言里的static函数通常怎么进行单元测试?是不把静态函数作为测试的最小单元吗?还是使用条件编译?
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
If you are worried that running the test will leave some irreversible side effects, the only way is to start the program every time a test case is run. Testing is still testing.
If you are worried that running the test will leave some irreversible side effects, the only way is to start the program every time a test case is run. Testing is still testing.