1. 首页
  2. 数据库
  3. 其它
  4. unit_test:C ++的无摩擦单元测试框架 源码

unit_test:C ++的无摩擦单元测试框架 源码

上传者: 2021-02-22 19:39:13上传 ZIP文件 6.75KB 热度 6次
假设我们要测试以下类Foo。 /* * Foo.h * A simple class. */ class Foo { public: Foo () {}; ~Foo () {}; void set ( int x) { this -> value = x; }; int get () { return this -> value ; }; private: int value; }; 这是Foo的单元测试文件 /* * Foo_tests.cpp * unit tests for the Foo class. */ # include
下载地址
用户评论