decorator_precondition.html 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <title>precondition (decorator)</title>
  5. <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
  7. <link rel="home" href="../../../index.html" title="Boost.Test">
  8. <link rel="up" href="../test_org_reference.html" title="Tests declaration and organization">
  9. <link rel="prev" href="decorator_label.html" title="label (decorator)">
  10. <link rel="next" href="../testing_tool_ref.html" title="Reference API for writing tests">
  11. </head>
  12. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  13. <table cellpadding="2" width="100%"><tr>
  14. <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
  15. <td align="center"><a href="../../../../../../../index.html">Home</a></td>
  16. <td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
  17. <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
  18. <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
  19. <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
  20. </tr></table>
  21. <hr>
  22. <div class="spirit-nav">
  23. <a accesskey="p" href="decorator_label.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../test_org_reference.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="../testing_tool_ref.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
  24. </div>
  25. <div class="section">
  26. <div class="titlepage"><div><div><h4 class="title">
  27. <a name="boost_test.utf_reference.test_org_reference.decorator_precondition"></a><a class="link" href="decorator_precondition.html" title="precondition (decorator)">precondition
  28. (decorator)</a>
  29. </h4></div></div></div>
  30. <pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">function</span><span class="special">&lt;</span><code class="computeroutput"><a class="link" href="../../../boost/test_tools/assertion_result.html" title="Class assertion_result">test_tools::assertion_result</a></code> <span class="special">(</span><span class="identifier">test_unit_id</span><span class="special">)&gt;</span> <span class="identifier">predicate_t</span><span class="special">;</span>
  31. <span class="identifier">precondition</span><span class="special">(</span><span class="identifier">predicate_t</span> <span class="identifier">predicate</span><span class="special">);</span>
  32. </pre>
  33. <p>
  34. Associates a <span class="emphasis"><em>predicate</em></span> with a test unit that will
  35. determine its <a class="link" href="../../runtime_config/test_unit_filtering.html#ref_default_run_status"><span class="emphasis"><em>default
  36. run status</em></span></a> at run-time. See <a class="link" href="../../tests_organization/enabling.html" title="Enabling or disabling test unit execution">here</a>
  37. for more details.
  38. </p>
  39. </div>
  40. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
  41. <td align="left"></td>
  42. <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2019 Boost.Test
  43. contributors<p>
  44. Distributed under the Boost Software License, Version 1.0. (See accompanying
  45. file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
  46. </p>
  47. </div></td>
  48. </tr></table>
  49. <hr>
  50. <div class="spirit-nav">
  51. <a accesskey="p" href="decorator_label.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../test_org_reference.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="../testing_tool_ref.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
  52. </div>
  53. </body>
  54. </html>