blob: 4507e3c14fe7377909ef5f230b15a0236fe77ecf [file] [log] [blame]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Nullary function based test case</title>
<link rel="stylesheet" href="../../../../style/style.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
<link rel="home" href="../../../index.html" title="Boost Test Library">
<link rel="up" href="../test-organization.html" title="Test organization or the house that Jack built">
<link rel="prev" href="../test-organization.html" title="Test organization or the house that Jack built">
<link rel="next" href="manual-nullary-test-case.html" title="Manually registered nullary function based test case">
<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/docbook/img/boost.test.logo.png"></a></td>
<td valign="middle" align="left"> &gt; <a href="../../../utf.html">The Unit Test Framework</a> &gt; <a href="../../user-guide.html">User's guide</a><a href="../../testing-tools.html">
&gt;
</a><a href="../test-organization.html">Test organization</a><a href="../fixture.html">
&gt;
</a><b>Nullary function based test case</b><a href="unary-test-case.html">
&gt;
</a>
</td>
<td><div class="spirit-nav">
<a href="../test-organization.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a href="manual-nullary-test-case.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div></td>
</tr></table>
<hr>
<div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title">
<a name="utf.user-guide.test-organization.nullary-test-case"></a>Nullary function based test case</h5></div></div></div>
<p class="first-line-indented">
The most widely used are test cases based on a nullary function. These include nullary free functions, nullary
function objects created with <code class="computeroutput">boost::bind</code> and nullary <code class="computeroutput">boost::function</code>
instances. The simplest is a free function and the <acronym class="acronym">UTF</acronym> provides facilities to create a free function based test
case that is automatically registered. Here are the two construction interfaces:
</p>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="itemizedlist"><ul type="disc">
<li>
<a class="link" href="manual-nullary-test-case.html" title="Manually registered nullary function based test case">Manually registered test case</a>
</li>
<li>
<a class="link" href="auto-nullary-test-case.html" title="Nullary function based test case with automated registration">Test case with automated registration</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-2007 Gennadiy Rozental</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../test-organization.html"><img src="../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../test-organization.html"><img src="../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="manual-nullary-test-case.html"><img src="../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
</body>
</html>