mirror of
https://github.com/boostorg/test.git
synced 2026-01-24 18:32:30 +00:00
215 lines
21 KiB
HTML
215 lines
21 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
<title>The UTF usage examples collection</title>
|
|
<link rel="stylesheet" href="../../style/style.css" type="text/css">
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
|
<link rel="home" href="../index.html" title="Boost Test Library">
|
|
<link rel="up" href="../utf.html" title="Boost Test Library: The Unit Test Framework">
|
|
<link rel="prev" href="usage-recommendations/command-line-specific.html" title="Command line usage recommendations">
|
|
<link rel="next" href="../execution-monitor.html" title="Boost Test Library: The Execution Monitor">
|
|
<script language="JavaScript1.2" src="../../js/boost-test.js"></script>
|
|
</head>
|
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
<table width="100%"><tr>
|
|
<td width="10%"><a href="../index.html"><img alt="Home" width="229" height="61" border="0" src="../../../../../libs/test/doc/img/boost.test.logo.png"></a></td>
|
|
<td valign="middle" align="left"> > <a href="../utf.html">The Unit Test Framework</a><a href="../execution-monitor.html">
|
|
>
|
|
</a><b>Examples collection</b>
|
|
</td>
|
|
<td><div class="spirit-nav">
|
|
<a href="usage-recommendations/command-line-specific.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a href="../execution-monitor.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="section">
|
|
<div class="titlepage"><div><div><h3 class="title">
|
|
<a name="utf.examples"></a>The <acronym class="acronym">UTF</acronym> usage examples collection</h3></div></div></div>
|
|
<div class="itemizedlist"><ul type="square">
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/auto-nullary-test-case.html#utf.user-guide.test-organization.auto-nullary-test-case.example06" title="Example 1. Nullary function based test case with automated registration">Example 1, “Nullary function based test case with automated registration”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/manual-nullary-test-case.html#utf.user-guide.test-organization.manual-nullary-test-case.example01" title="Example 2. Nullary free function manually registered">Example 2, “Nullary free function manually registered”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/manual-nullary-test-case.html#utf.user-guide.test-organization.manual-nullary-test-case.example02" title="Example 3. Nullary method of a class bound to global class instance and manually registered">Example 3, “Nullary method of a class bound to global class instance and manually registered”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/manual-nullary-test-case.html#utf.user-guide.test-organization.manual-nullary-test-case.example03" title="Example 4. Nullary method of a class bound to shared class instance and manually registered">Example 4, “Nullary method of a class bound to shared class instance and manually registered”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/manual-nullary-test-case.html#utf.user-guide.test-organization.manual-nullary-test-case.example04" title="Example 5. Nullary method of a class bound to local class instance inside free function">Example 5, “Nullary method of a class bound to local class instance inside free function”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/manual-nullary-test-case.html#utf.user-guide.test-organization.manual-nullary-test-case.example05" title="Example 6. Binary free function bound to set of different parameter pairs">Example 6, “Binary free function bound to set of different parameter pairs”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/unary-test-case.html#utf.user-guide.test-organization.unary-test-case.example07" title="Example 7. Unary free function based test case">Example 7, “Unary free function based test case”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/unary-test-case.html#utf.user-guide.test-organization.unary-test-case.example08" title="Example 8. Unary class method based test case">Example 8, “Unary class method based test case”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/auto-test-case-template.html#utf.user-guide.test-organization.auto-test-case-template.example10" title="Example 9. Test case template with automated registration">Example 9, “Test case template with automated registration”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/manual-test-case-template.html#utf.user-guide.test-organization.manual-test-case-template.example09" title="Example 10. Manually registered test case template">Example 10, “Manually registered test case template”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/auto-test-suite.html#utf.user-guide.test-organization.auto-test-suite.example12" title="Example 11. Test suites with automated registration">Example 11, “Test suites with automated registration”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/manual-test-suite.html#utf.user-guide.test-organization.manual-test-suite.example11" title="Example 13. Manually registered test suites">Example 13, “Manually registered test suites”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/master-test-suite.html#utf.user-guide.test-organization.cla-access.example13" title="Example 14. Command line access in initialization function">Example 14, “Command line access in initialization function”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/master-test-suite.html#utf.user-guide.test-organization.master-test-suite-name.example14" title="Example 15. Naming master test suite using the macro BOOST_TEST_MODULE">Example 15, “Naming master test suite using the macro BOOST_TEST_MODULE”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/master-test-suite.html#utf.user-guide.test-organization.master-test-suite-name.example15" title="Example 16. Naming master test suite explicitly in the test module initialization function">Example 16, “Naming master test suite explicitly in the test module initialization function”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/expected-failures.html#utf.user-guide.test-organization.manual-expected-failures.example16" title="Example 17. Expected failures specification for manually registered test case">Example 17, “Expected failures specification for manually registered test case”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/expected-failures.html#utf.user-guide.test-organization.auto-expected-failures.example17" title="Example 18. Expected failures specification for automatically registered test case">Example 18, “Expected failures specification for automatically registered test case”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/output-test.html#utf.user-guide.testing-tools.output-test.example28" title="Example 19. output_test_stream usage with explicit output checks">Example 19, “output_test_stream usage with explicit output checks”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/output-test.html#utf.user-guide.testing-tools.output-test.example29" title="Example 20. output_test_stream usage for pattern file matching">Example 20, “output_test_stream usage for pattern file matching”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/custom-predicate.html#utf.user-guide.testing-tools.custom-predicate.example30" title="Example 21. Custom predicate support using BOOST_CHECK_PREDICATE">Example 21, “Custom predicate support using BOOST_CHECK_PREDICATE”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/custom-predicate.html#utf.user-guide.testing-tools.custom-predicate.example31" title="Example 22. Custom predicate support using class predicate_result">Example 22, “Custom predicate support using class predicate_result”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example33" title="Example 24. BOOST_<level>_BITWISE_EQUAL usage">Example 24, “BOOST_<level>_BITWISE_EQUAL usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-output/test-log.html#utf.user-guide.test-output.log.testing-tool-args.example32" title="Example 44. BOOST_TEST_DONT_PRINT_LOG_VALUE usage">Example 44, “BOOST_TEST_DONT_PRINT_LOG_VALUE usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-output/BOOST_TEST_MESSAGE.html#utf.user-guide.test-output.log.BOOST_TEST_MESSAGE.example21" title="Example 45. BOOST_TEST_MESSAGE usage">Example 45, “BOOST_TEST_MESSAGE usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-output/BOOST_TEST_CHECKPOINT.html#utf.user-guide.test-output.log.BOOST_TEST_CHECKPOINT.example22" title="Example 46. BOOST_TEST_CHECKPOINT usage">Example 46, “BOOST_TEST_CHECKPOINT usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-output/BOOST_TEST_PASSPOINT.html#utf.user-guide.test-output.log.BOOST_TEST_PASSPOINT.example23" title="Example 47. BOOST_TEST_PASSPOINT usage">Example 47, “BOOST_TEST_PASSPOINT usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/fixture/per-test-case.html#utf.user-guide.fixture.per-test-case.example18" title="Example 52. Per test case fixture">Example 52, “Per test case fixture”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/fixture/test-suite-shared.html#utf.user-guide.fixture.test-suite-shared.example19" title="Example 53. Test suite level fixture">Example 53, “Test suite level fixture”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/fixture/global.html#utf.user-guide.fixture.global.example20" title="Example 54. Global fixture">Example 54, “Global fixture”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="../prg-exec-monitor.html#pem.usage.example24" title="Example 55. The Program Execution Monitor: Hello World">Example 55, “The Program Execution Monitor: Hello World”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="../prg-exec-monitor.html#pem.usage.example25" title="Example 56. The Program Execution Monitor: standard exception detection">Example 56, “The Program Execution Monitor: standard exception detection”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="../prg-exec-monitor.html#pem.usage.example26" title="Example 57. The Program Execution Monitor: error return code detection">Example 57, “The Program Execution Monitor: error return code detection”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="../minimal.html#minimal.example.example27" title="Example 58. Minimal testing facility application">Example 58, “Minimal testing facility application”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example34" title="Example 23. BOOST_<level> usage">Example 23, “BOOST_<level> usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example35" title="Example 28. BOOST_<level>_EQUAL usage">Example 28, “BOOST_<level>_EQUAL usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example36" title="Example 29. BOOST_<level>_EQUAL_COLLECTIONS usage">Example 29, “BOOST_<level>_EQUAL_COLLECTIONS usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example37" title="Example 30. BOOST_<level>_EXCEPTION usage">Example 30, “BOOST_<level>_EXCEPTION usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example38" title="Example 35. BOOST_<level>_MESSAGE usage">Example 35, “BOOST_<level>_MESSAGE usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example39" title="Example 37. BOOST_<level>_NO_THROW usage">Example 37, “BOOST_<level>_NO_THROW usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example40" title="Example 38. BOOST_<level>_PREDICATE usage">Example 38, “BOOST_<level>_PREDICATE usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example41" title="Example 39. BOOST_<level>_SMALL usage">Example 39, “BOOST_<level>_SMALL usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example42" title="Example 25. BOOST_<level>_CLOSE usage with very small values">Example 25, “BOOST_<level>_CLOSE usage with very small values”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example43" title="Example 26. BOOST_<level>_CLOSE usage with very big values">Example 26, “BOOST_<level>_CLOSE usage with very big values”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example44" title="Example 27. BOOST_<level>_CLOSE_FRACTION usage">Example 27, “BOOST_<level>_CLOSE_FRACTION usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example45" title="Example 40. BOOST_<level>_THROW usage">Example 40, “BOOST_<level>_THROW usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example46" title="Example 41. BOOST_ERROR usage">Example 41, “BOOST_ERROR usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example47" title="Example 42. BOOST_FAIL usage">Example 42, “BOOST_FAIL usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example48" title="Example 43. BOOST_IS_DEFINED usage">Example 43, “BOOST_IS_DEFINED usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-output/test-progress.html#utf.user-guide.test-output.progress.example49" title="Example 51. Progress report for the test module with large amount of test cases">Example 51, “Progress report for the test module with large amount of test cases”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-output/log-ct-config.html#utf.user-guide.test-output.log.ct-config.output-stream.example50" title="Example 48. Test log output redirection">Example 48, “Test log output redirection”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-output/log-ct-config.html#utf.user-guide.test-output.log.ct-config.log-level.example51" title="Example 49. Compile time log level configuration">Example 49, “Compile time log level configuration”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-output/log-ct-config.html#utf.user-guide.test-output.log.ct-config.log-format.example52" title="Example 50. Compile time log format selection">Example 50, “Compile time log format selection”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/test-organization/auto-test-suite.html#utf.user-guide.test-organization.auto-test-suite.example53" title="Example 12. Example of test suite extension using automated registration facility">Example 12, “Example of test suite extension using automated registration facility”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example54" title="Example 36. BOOST_<level>_NE usage">Example 36, “BOOST_<level>_NE usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example55" title="Example 33. BOOST_<level>_LE usage">Example 33, “BOOST_<level>_LE usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example56" title="Example 34. BOOST_<level>_LT usage">Example 34, “BOOST_<level>_LT usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example57" title="Example 31. BOOST_<level>_GE usage">Example 31, “BOOST_<level>_GE usage”</a>
|
|
</li>
|
|
<li class="listitem" style="list-style-type: square">
|
|
<a class="xref" href="user-guide/testing-tools/reference.html#.example58" title="Example 32. BOOST_<level>_GT usage">Example 32, “BOOST_<level>_GT usage”</a>
|
|
</li>
|
|
</ul></div>
|
|
</div>
|
|
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
|
<td align="left"></td>
|
|
<td align="right"><div class="copyright-footer">Copyright © 2001-2012 Gennadiy Rozental</div></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="spirit-nav">
|
|
<a accesskey="p" href="usage-recommendations/command-line-specific.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../utf.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../execution-monitor.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div>
|
|
</body>
|
|
</html>
|