Files
rippled/classripple_1_1test_1_1LedgerHistory__test.html
2023-03-28 16:07:03 +00:00

226 lines
12 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>rippled: ripple::test::LedgerHistory_test Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">rippled
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceripple.html">ripple</a></li><li class="navelem"><a class="el" href="namespaceripple_1_1test.html">test</a></li><li class="navelem"><a class="el" href="classripple_1_1test_1_1LedgerHistory__test.html">LedgerHistory_test</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classripple_1_1test_1_1LedgerHistory__test-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">ripple::test::LedgerHistory_test Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for ripple::test::LedgerHistory_test:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1test_1_1LedgerHistory__test__inherit__graph.png" border="0" usemap="#ripple_1_1test_1_1LedgerHistory__test_inherit__map" alt="Inheritance graph"/></div>
<map name="ripple_1_1test_1_1LedgerHistory__test_inherit__map" id="ripple_1_1test_1_1LedgerHistory__test_inherit__map">
<area shape="rect" title=" " alt="" coords="5,80,228,107"/>
<area shape="rect" title=" " alt="" coords="89,5,144,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for ripple::test::LedgerHistory_test:</div>
<div class="dyncontent">
<div class="center"><img src="classripple_1_1test_1_1LedgerHistory__test__coll__graph.png" border="0" usemap="#ripple_1_1test_1_1LedgerHistory__test_coll__map" alt="Collaboration graph"/></div>
<map name="ripple_1_1test_1_1LedgerHistory__test_coll__map" id="ripple_1_1test_1_1LedgerHistory__test_coll__map">
<area shape="rect" title=" " alt="" coords="5,80,228,107"/>
<area shape="rect" title=" " alt="" coords="89,5,144,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af6aade2d9d52ac35429da5d61b054980"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1LedgerHistory__test.html#af6aade2d9d52ac35429da5d61b054980">testHandleMismatch</a> ()</td></tr>
<tr class="separator:af6aade2d9d52ac35429da5d61b054980"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5037d49f71568139fc97e132da47d774"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1LedgerHistory__test.html#a5037d49f71568139fc97e132da47d774">run</a> () override</td></tr>
<tr class="separator:a5037d49f71568139fc97e132da47d774"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aa475c603a4333b5c778715fdf26fe280"><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classripple_1_1test_1_1LedgerHistory__test.html#aa475c603a4333b5c778715fdf26fe280">makeLedger</a> (<a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt; const &amp;prev, <a class="el" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a> &amp;env, <a class="el" href="classripple_1_1LedgerHistory.html">LedgerHistory</a> &amp;lh, <a class="el" href="classripple_1_1NetClock.html#afe3767203cd971a00067671641bc7e16">NetClock::duration</a> closeOffset, <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1STTx.html">STTx</a> const &gt; stx={})</td></tr>
<tr class="memdesc:aa475c603a4333b5c778715fdf26fe280"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate a new ledger by hand, applying a specific close time offset and optionally inserting a transaction. <a href="classripple_1_1test_1_1LedgerHistory__test.html#aa475c603a4333b5c778715fdf26fe280">More...</a><br /></td></tr>
<tr class="separator:aa475c603a4333b5c778715fdf26fe280"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="LedgerHistory__test_8cpp_source.html#l00035">35</a> of file <a class="el" href="LedgerHistory__test_8cpp_source.html">LedgerHistory_test.cpp</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="aa475c603a4333b5c778715fdf26fe280"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa475c603a4333b5c778715fdf26fe280">&#9670;&nbsp;</a></span>makeLedger()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt;<a class="el" href="classripple_1_1Ledger.html">Ledger</a>&gt; ripple::test::LedgerHistory_test::makeLedger </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1Ledger.html">Ledger</a> const &gt; const &amp;&#160;</td>
<td class="paramname"><em>prev</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1test_1_1jtx_1_1Env.html">jtx::Env</a> &amp;&#160;</td>
<td class="paramname"><em>env</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1LedgerHistory.html">LedgerHistory</a> &amp;&#160;</td>
<td class="paramname"><em>lh</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classripple_1_1NetClock.html#afe3767203cd971a00067671641bc7e16">NetClock::duration</a>&#160;</td>
<td class="paramname"><em>closeOffset</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="http://en.cppreference.com/w/cpp/memory/shared_ptr.html">std::shared_ptr</a>&lt; <a class="el" href="classripple_1_1STTx.html">STTx</a> const &gt;&#160;</td>
<td class="paramname"><em>stx</em> = <code>{}</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Generate a new ledger by hand, applying a specific close time offset and optionally inserting a transaction. </p>
<p>If prev is nullptr, then the genesis ledger is made and no offset or transaction is applied. </p>
<p class="definition">Definition at line <a class="el" href="LedgerHistory__test_8cpp_source.html#l00046">46</a> of file <a class="el" href="LedgerHistory__test_8cpp_source.html">LedgerHistory_test.cpp</a>.</p>
</div>
</div>
<a id="af6aade2d9d52ac35429da5d61b054980"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6aade2d9d52ac35429da5d61b054980">&#9670;&nbsp;</a></span>testHandleMismatch()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ripple::test::LedgerHistory_test::testHandleMismatch </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory__test_8cpp_source.html#l00090">90</a> of file <a class="el" href="LedgerHistory__test_8cpp_source.html">LedgerHistory_test.cpp</a>.</p>
</div>
</div>
<a id="a5037d49f71568139fc97e132da47d774"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5037d49f71568139fc97e132da47d774">&#9670;&nbsp;</a></span>run()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ripple::test::LedgerHistory_test::run </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="LedgerHistory__test_8cpp_source.html#l00196">196</a> of file <a class="el" href="LedgerHistory__test_8cpp_source.html">LedgerHistory_test.cpp</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>