?? group___creating_new_assertions.html
字號:
<html><head><title>CppUnit - The Unit Testing Library</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body bgcolor="#ffffff"> <table width="100%"> <tr> <td width="40%" align="left" valign="center"> <a href="http://sourceforge.net/projects/cppunit"> CppUnit project page </a> </td> <td> <a href="FAQ">FAQ</a> </td> <td width="40%" align="right" valign="center"> <a href="http://cppunit.sourceforge.net">CppUnit home page</a> </td> </tr></table><hr><!-- Generated by Doxygen 1.3.7 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div><h1>Creating custom assertions</h1><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Classes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="class_additional_message.html">AdditionalMessage</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">An additional <a class="el" href="class_message.html">Message</a> for assertions. <a href="class_additional_message.html#_details">More...</a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="struct_asserter.html">Asserter</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">A set of functions to help writing assertion macros. <a href="struct_asserter.html#_details">More...</a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="class_message.html">Message</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Message associated to an <a class="el" href="class_exception.html">Exception</a>. <a href="class_message.html#_details">More...</a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="class_source_line.html">SourceLine</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Represents a source line location. <a href="class_source_line.html#_details">More...</a><br><br></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group___creating_new_assertions.html#ga0">CPPUNIT_SOURCELINE</a>() CPPUNIT_NS::SourceLine( __FILE__, __LINE__ )</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <a class="el" href="class_source_line.html">SourceLine</a> object initialized with the location where the macro is expanded. <a href="#ga0"></a><br><br></td></tr></table><hr><h2>Define Documentation</h2><a class="anchor" name="ga0" doxytag="SourceLine.h::CPPUNIT_SOURCELINE" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> #define CPPUNIT_SOURCELINE </td> <td class="md" valign="top">( </td> </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> CPPUNIT_NS::SourceLine( __FILE__, __LINE__ )</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Constructs a <a class="el" href="class_source_line.html">SourceLine</a> object initialized with the location where the macro is expanded. <p>Used to write your own assertion macros. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="struct_asserter.html">Asserter</a> for example of usage. </dd></dl> </td> </tr></table><hr><table width="100%"> <tr> <td width="10%" align="left" valign="center"> <a href="http://sourceforge.net"> <img src="http://sourceforge.net/sflogo.php?group_id=11795" width="88" height="31" border="0" alt="SourceForge Logo"></a> </td> <td width="20%" align="left" valign="center"> hosts this site. </td> <td> </td> <td align="right" valign="center"> Send comments to:<br> <a href="mailto:cppunit-devel@lists.sourceforge.net">CppUnit Developers</a> </td> </tr></table></body> </html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -