实例介绍
Google单元测试源码. 用于单体测试.
【实例截图】
【核心代码】
gtest-1.7.0
└── gtest-1.7.0
├── aclocal.m4
├── build-aux
│ ├── config.guess
│ ├── config.h.in
│ ├── config.sub
│ ├── depcomp
│ ├── install-sh
│ ├── ltmain.sh
│ └── missing
├── CHANGES
├── cmake
│ └── internal_utils.cmake
├── CMakeLists.txt
├── codegear
│ ├── gtest_all.cc
│ ├── gtest.cbproj
│ ├── gtest.groupproj
│ ├── gtest_link.cc
│ ├── gtest_main.cbproj
│ └── gtest_unittest.cbproj
├── configure
├── configure.ac
├── CONTRIBUTORS
├── fused-src
│ └── gtest
│ ├── gtest-all.cc
│ ├── gtest.h
│ └── gtest_main.cc
├── include
│ └── gtest
│ ├── gtest-death-test.h
│ ├── gtest.h
│ ├── gtest-message.h
│ ├── gtest-param-test.h
│ ├── gtest-param-test.h.pump
│ ├── gtest_pred_impl.h
│ ├── gtest-printers.h
│ ├── gtest_prod.h
│ ├── gtest-spi.h
│ ├── gtest-test-part.h
│ ├── gtest-typed-test.h
│ └── internal
│ ├── gtest-death-test-internal.h
│ ├── gtest-filepath.h
│ ├── gtest-internal.h
│ ├── gtest-linked_ptr.h
│ ├── gtest-param-util-generated.h
│ ├── gtest-param-util-generated.h.pump
│ ├── gtest-param-util.h
│ ├── gtest-port.h
│ ├── gtest-string.h
│ ├── gtest-tuple.h
│ ├── gtest-tuple.h.pump
│ ├── gtest-type-util.h
│ └── gtest-type-util.h.pump
├── LICENSE
├── m4
│ ├── acx_pthread.m4
│ ├── gtest.m4
│ ├── libtool.m4
│ ├── lt~obsolete.m4
│ ├── ltoptions.m4
│ ├── ltsugar.m4
│ └── ltversion.m4
├── make
│ └── Makefile
├── Makefile.am
├── Makefile.in
├── msvc
│ ├── gtest_main-md.vcproj
│ ├── gtest_main.vcproj
│ ├── gtest-md.sln
│ ├── gtest-md.vcproj
│ ├── gtest_prod_test-md.vcproj
│ ├── gtest_prod_test.vcproj
│ ├── gtest.sln
│ ├── gtest_unittest-md.vcproj
│ ├── gtest_unittest.vcproj
│ └── gtest.vcproj
├── README
├── samples
│ ├── prime_tables.h
│ ├── sample10_unittest.cc
│ ├── sample1.cc
│ ├── sample1.h
│ ├── sample1_unittest.cc
│ ├── sample2.cc
│ ├── sample2.h
│ ├── sample2_unittest.cc
│ ├── sample3-inl.h
│ ├── sample3_unittest.cc
│ ├── sample4.cc
│ ├── sample4.h
│ ├── sample4_unittest.cc
│ ├── sample5_unittest.cc
│ ├── sample6_unittest.cc
│ ├── sample7_unittest.cc
│ ├── sample8_unittest.cc
│ └── sample9_unittest.cc
├── scripts
│ ├── fuse_gtest_files.py
│ ├── gen_gtest_pred_impl.py
│ ├── gtest-config.in
│ ├── pump.py
│ └── test
│ └── Makefile
├── src
│ ├── gtest-all.cc
│ ├── gtest.cc
│ ├── gtest-death-test.cc
│ ├── gtest-filepath.cc
│ ├── gtest-internal-inl.h
│ ├── gtest_main.cc
│ ├── gtest-port.cc
│ ├── gtest-printers.cc
│ ├── gtest-test-part.cc
│ └── gtest-typed-test.cc
├── test
│ ├── gtest_all_test.cc
│ ├── gtest_break_on_failure_unittest_.cc
│ ├── gtest_break_on_failure_unittest.py
│ ├── gtest_catch_exceptions_test_.cc
│ ├── gtest_catch_exceptions_test.py
│ ├── gtest_color_test_.cc
│ ├── gtest_color_test.py
│ ├── gtest-death-test_ex_test.cc
│ ├── gtest-death-test_test.cc
│ ├── gtest_environment_test.cc
│ ├── gtest_env_var_test_.cc
│ ├── gtest_env_var_test.py
│ ├── gtest-filepath_test.cc
│ ├── gtest_filter_unittest_.cc
│ ├── gtest_filter_unittest.py
│ ├── gtest_help_test_.cc
│ ├── gtest_help_test.py
│ ├── gtest-linked_ptr_test.cc
│ ├── gtest-listener_test.cc
│ ├── gtest_list_tests_unittest_.cc
│ ├── gtest_list_tests_unittest.py
│ ├── gtest_main_unittest.cc
│ ├── gtest-message_test.cc
│ ├── gtest_no_test_unittest.cc
│ ├── gtest-options_test.cc
│ ├── gtest_output_test_.cc
│ ├── gtest_output_test_golden_lin.txt
│ ├── gtest_output_test.py
│ ├── gtest-param-test2_test.cc
│ ├── gtest-param-test_test.cc
│ ├── gtest-param-test_test.h
│ ├── gtest-port_test.cc
│ ├── gtest_pred_impl_unittest.cc
│ ├── gtest_premature_exit_test.cc
│ ├── gtest-printers_test.cc
│ ├── gtest_prod_test.cc
│ ├── gtest_repeat_test.cc
│ ├── gtest_shuffle_test_.cc
│ ├── gtest_shuffle_test.py
│ ├── gtest_sole_header_test.cc
│ ├── gtest_stress_test.cc
│ ├── gtest-test-part_test.cc
│ ├── gtest_test_utils.py
│ ├── gtest_throw_on_failure_ex_test.cc
│ ├── gtest_throw_on_failure_test_.cc
│ ├── gtest_throw_on_failure_test.py
│ ├── gtest-tuple_test.cc
│ ├── gtest-typed-test2_test.cc
│ ├── gtest-typed-test_test.cc
│ ├── gtest-typed-test_test.h
│ ├── gtest_uninitialized_test_.cc
│ ├── gtest_uninitialized_test.py
│ ├── gtest-unittest-api_test.cc
│ ├── gtest_unittest.cc
│ ├── gtest_xml_outfile1_test_.cc
│ ├── gtest_xml_outfile2_test_.cc
│ ├── gtest_xml_outfiles_test.py
│ ├── gtest_xml_output_unittest_.cc
│ ├── gtest_xml_output_unittest.py
│ ├── gtest_xml_test_utils.py
│ ├── production.cc
│ └── production.h
└── xcode
├── Config
│ ├── DebugProject.xcconfig
│ ├── FrameworkTarget.xcconfig
│ ├── General.xcconfig
│ ├── ReleaseProject.xcconfig
│ ├── StaticLibraryTarget.xcconfig
│ └── TestTarget.xcconfig
├── gtest.xcodeproj
│ └── project.pbxproj
├── Resources
│ └── Info.plist
├── Samples
│ └── FrameworkSample
│ ├── Info.plist
│ ├── runtests.sh
│ ├── widget.cc
│ ├── WidgetFramework.xcodeproj
│ │ └── project.pbxproj
│ ├── widget.h
│ └── widget_test.cc
└── Scripts
├── runtests.sh
└── versiongenerate.py
25 directories, 180 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论