mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-02 21:33:07 +00:00
352 lines
22 KiB
HTML
352 lines
22 KiB
HTML
|
|
<!DOCTYPE HTML>
|
||
|
|
<html lang="en" class="light" dir="ltr">
|
||
|
|
<head>
|
||
|
|
<!-- Book generated using mdBook -->
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<title>Examples - Logos Blockchain Testing Framework Book</title>
|
||
|
|
|
||
|
|
|
||
|
|
<!-- Custom HTML head -->
|
||
|
|
|
||
|
|
<meta name="description" content="">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
|
<meta name="theme-color" content="#ffffff">
|
||
|
|
|
||
|
|
<link rel="icon" href="favicon.svg">
|
||
|
|
<link rel="shortcut icon" href="favicon.png">
|
||
|
|
<link rel="stylesheet" href="css/variables.css">
|
||
|
|
<link rel="stylesheet" href="css/general.css">
|
||
|
|
<link rel="stylesheet" href="css/chrome.css">
|
||
|
|
<link rel="stylesheet" href="css/print.css" media="print">
|
||
|
|
|
||
|
|
<!-- Fonts -->
|
||
|
|
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css">
|
||
|
|
<link rel="stylesheet" href="fonts/fonts.css">
|
||
|
|
|
||
|
|
<!-- Highlight.js Stylesheets -->
|
||
|
|
<link rel="stylesheet" href="highlight.css">
|
||
|
|
<link rel="stylesheet" href="tomorrow-night.css">
|
||
|
|
<link rel="stylesheet" href="ayu-highlight.css">
|
||
|
|
|
||
|
|
<!-- Custom theme stylesheets -->
|
||
|
|
|
||
|
|
</head>
|
||
|
|
<body class="sidebar-visible no-js">
|
||
|
|
<div id="body-container">
|
||
|
|
<!-- Provide site root to javascript -->
|
||
|
|
<script>
|
||
|
|
var path_to_root = "";
|
||
|
|
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "light";
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<!-- Work around some values being stored in localStorage wrapped in quotes -->
|
||
|
|
<script>
|
||
|
|
try {
|
||
|
|
var theme = localStorage.getItem('mdbook-theme');
|
||
|
|
var sidebar = localStorage.getItem('mdbook-sidebar');
|
||
|
|
|
||
|
|
if (theme.startsWith('"') && theme.endsWith('"')) {
|
||
|
|
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
|
||
|
|
}
|
||
|
|
|
||
|
|
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
|
||
|
|
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1));
|
||
|
|
}
|
||
|
|
} catch (e) { }
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<!-- Set the theme before any content is loaded, prevents flash -->
|
||
|
|
<script>
|
||
|
|
var theme;
|
||
|
|
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
|
||
|
|
if (theme === null || theme === undefined) { theme = default_theme; }
|
||
|
|
var html = document.querySelector('html');
|
||
|
|
html.classList.remove('light')
|
||
|
|
html.classList.add(theme);
|
||
|
|
var body = document.querySelector('body');
|
||
|
|
body.classList.remove('no-js')
|
||
|
|
body.classList.add('js');
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden">
|
||
|
|
|
||
|
|
<!-- Hide / unhide sidebar before it is displayed -->
|
||
|
|
<script>
|
||
|
|
var body = document.querySelector('body');
|
||
|
|
var sidebar = null;
|
||
|
|
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor");
|
||
|
|
if (document.body.clientWidth >= 1080) {
|
||
|
|
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
|
||
|
|
sidebar = sidebar || 'visible';
|
||
|
|
} else {
|
||
|
|
sidebar = 'hidden';
|
||
|
|
}
|
||
|
|
sidebar_toggle.checked = sidebar === 'visible';
|
||
|
|
body.classList.remove('sidebar-visible');
|
||
|
|
body.classList.add("sidebar-" + sidebar);
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
|
||
|
|
<div class="sidebar-scrollbox">
|
||
|
|
<ol class="chapter"><li class="chapter-item expanded "><a href="project-context-primer.html"><strong aria-hidden="true">1.</strong> Project Context Primer</a></li><li class="chapter-item expanded "><a href="what-you-will-learn.html"><strong aria-hidden="true">2.</strong> What You Will Learn</a></li><li class="chapter-item expanded "><a href="quickstart.html"><strong aria-hidden="true">3.</strong> Quickstart</a></li><li class="chapter-item expanded "><a href="part-i.html"><strong aria-hidden="true">4.</strong> Part I — Foundations</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="introduction.html"><strong aria-hidden="true">4.1.</strong> Introduction</a></li><li class="chapter-item expanded "><a href="architecture-overview.html"><strong aria-hidden="true">4.2.</strong> Architecture Overview</a></li><li class="chapter-item expanded "><a href="testing-philosophy.html"><strong aria-hidden="true">4.3.</strong> Testing Philosophy</a></li><li class="chapter-item expanded "><a href="scenario-lifecycle.html"><strong aria-hidden="true">4.4.</strong> Scenario Lifecycle</a></li><li class="chapter-item expanded "><a href="design-rationale.html"><strong aria-hidden="true">4.5.</strong> Design Rationale</a></li></ol></li><li class="chapter-item expanded "><a href="part-ii.html"><strong aria-hidden="true">5.</strong> Part II — User Guide</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="workspace-layout.html"><strong aria-hidden="true">5.1.</strong> Workspace Layout</a></li><li class="chapter-item expanded "><a href="annotated-tree.html"><strong aria-hidden="true">5.2.</strong> Annotated Tree</a></li><li class="chapter-item expanded "><a href="authoring-scenarios.html"><strong aria-hidden="true">5.3.</strong> Authoring Scenarios</a></li><li class="chapter-item expanded "><a href="workloads.html"><strong aria-hidden="true">5.4.</strong> Core Content: Workloads & Expectations</a></li><li class="chapter-item expanded "><a href="scenario-builder-ext-patterns.html"><strong aria-hidden="true">5.5.</strong> Core Content: ScenarioBuilderExt Patterns</a></li><li class="chapter-item expanded "><a href="best-practices.html"><strong aria-hidden="true">5.6.</strong> Best Practices</a></li><li class="chapter-item expanded "><a href="usage-patterns.html"><strong aria-hidden="true">5.7.</strong> Usage Patterns</a></li><li class="chapter-item expanded "><a href="examples.html" class="active"><strong aria-hidden="true">5.8.</strong> Examples</a></li><li class="chapter-item expanded "><a href="examples-advanced.html"><strong aria-hidden="true">5.9.</strong> Advanced & Artificial Examples</a></li><li class="chapter-item expanded "><a href="cucumber-bdd.html"><strong aria-hidden="true">5.10.</strong> Cucumber/BDD Interface</a></li><li class="chapter-item expanded "><a href="running-scenarios.html"><strong aria-hidden="true">5.11.</strong> Running Scenarios</a></li><li class="chapter-item expanded "><a href="runners.html"><strong aria-hidden="true">5.12.</strong> Runners</a></li><li class="chapter-item expanded "><a href="node-control.html"><strong aria-hidden="true">5.13.</strong> RunContext: BlockFeed & Node Control</a></li><li class="chapter-item expanded "><a href="chaos.html"><strong aria-hidden="true">5.14.</strong> Chaos Workloads</a></li><li class="chapter-item expanded "><a href="topology-chaos.html"><strong aria-hidden="true">5.15.</strong> Topology & Chaos Patterns</a></li></ol></li><li class="chapter-item expanded "><a href="part-iii.html"><strong aria-hidden="true">6.</strong> Part III — Developer Reference</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="scenario-model.html"><strong aria-hidden="true">6.1.</strong> Scenario Model (Developer Level)</a></li><li class="chapter-item expanded "><a href="api-levels.html"><strong aria-hidden="true">6.2.</strong> API Levels: Builder DSL vs. Direct</a></li><li class="chapter-item expanded "><a href="extending.html"><strong aria-hidden="true">6.3.</strong> Extending the Framework</a></li><li class="chap
|
||
|
|
</div>
|
||
|
|
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
|
||
|
|
<div class="sidebar-resize-indicator"></div>
|
||
|
|
</div>
|
||
|
|
</nav>
|
||
|
|
|
||
|
|
<!-- Track and set sidebar scroll position -->
|
||
|
|
<script>
|
||
|
|
var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox');
|
||
|
|
sidebarScrollbox.addEventListener('click', function(e) {
|
||
|
|
if (e.target.tagName === 'A') {
|
||
|
|
sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop);
|
||
|
|
}
|
||
|
|
}, { passive: true });
|
||
|
|
var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll');
|
||
|
|
sessionStorage.removeItem('sidebar-scroll');
|
||
|
|
if (sidebarScrollTop) {
|
||
|
|
// preserve sidebar scroll position when navigating via links within sidebar
|
||
|
|
sidebarScrollbox.scrollTop = sidebarScrollTop;
|
||
|
|
} else {
|
||
|
|
// scroll sidebar to current active section when navigating via "next/previous chapter" buttons
|
||
|
|
var activeSection = document.querySelector('#sidebar .active');
|
||
|
|
if (activeSection) {
|
||
|
|
activeSection.scrollIntoView({ block: 'center' });
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<div id="page-wrapper" class="page-wrapper">
|
||
|
|
|
||
|
|
<div class="page">
|
||
|
|
<div id="menu-bar-hover-placeholder"></div>
|
||
|
|
<div id="menu-bar" class="menu-bar sticky">
|
||
|
|
<div class="left-buttons">
|
||
|
|
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
|
||
|
|
<i class="fa fa-bars"></i>
|
||
|
|
</label>
|
||
|
|
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list">
|
||
|
|
<i class="fa fa-paint-brush"></i>
|
||
|
|
</button>
|
||
|
|
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
|
||
|
|
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
|
||
|
|
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
|
||
|
|
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
|
||
|
|
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
|
||
|
|
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
|
||
|
|
</ul>
|
||
|
|
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar">
|
||
|
|
<i class="fa fa-search"></i>
|
||
|
|
</button>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<h1 class="menu-title">Logos Blockchain Testing Framework Book</h1>
|
||
|
|
|
||
|
|
<div class="right-buttons">
|
||
|
|
<a href="print.html" title="Print this book" aria-label="Print this book">
|
||
|
|
<i id="print-button" class="fa fa-print"></i>
|
||
|
|
</a>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div id="search-wrapper" class="hidden">
|
||
|
|
<form id="searchbar-outer" class="searchbar-outer">
|
||
|
|
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
|
||
|
|
</form>
|
||
|
|
<div id="searchresults-outer" class="searchresults-outer hidden">
|
||
|
|
<div id="searchresults-header" class="searchresults-header"></div>
|
||
|
|
<ul id="searchresults">
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
|
||
|
|
<script>
|
||
|
|
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
|
||
|
|
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
|
||
|
|
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
|
||
|
|
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1);
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<div id="content" class="content">
|
||
|
|
<main>
|
||
|
|
<h1 id="examples"><a class="header" href="#examples">Examples</a></h1>
|
||
|
|
<p>Concrete scenario shapes that illustrate how to combine topologies, workloads,
|
||
|
|
and expectations.</p>
|
||
|
|
<p><strong>View Complete Source Code:</strong></p>
|
||
|
|
<ul>
|
||
|
|
<li><a href="https://github.com/logos-blockchain/logos-blockchain-testing/blob/master/examples/src/bin/local_runner.rs">local_runner.rs</a> — Host processes (local)</li>
|
||
|
|
<li><a href="https://github.com/logos-blockchain/logos-blockchain-testing/blob/master/examples/src/bin/compose_runner.rs">compose_runner.rs</a> — Docker Compose</li>
|
||
|
|
<li><a href="https://github.com/logos-blockchain/logos-blockchain-testing/blob/master/examples/src/bin/k8s_runner.rs">k8s_runner.rs</a> — Kubernetes</li>
|
||
|
|
</ul>
|
||
|
|
<p><strong>Runnable examples:</strong> The repo includes complete binaries in <code>examples/src/bin/</code>:</p>
|
||
|
|
<ul>
|
||
|
|
<li><code>local_runner.rs</code> — Host processes (local)</li>
|
||
|
|
<li><code>compose_runner.rs</code> — Docker Compose (requires image built)</li>
|
||
|
|
<li><code>k8s_runner.rs</code> — Kubernetes (requires cluster access and image loaded)</li>
|
||
|
|
</ul>
|
||
|
|
<p><strong>Recommended:</strong> Use <code>scripts/run/run-examples.sh -t <duration> -v <validators> -e <executors> <mode></code> where mode is <code>host</code>, <code>compose</code>, or <code>k8s</code>.</p>
|
||
|
|
<p><strong>Alternative:</strong> Direct cargo run: <code>POL_PROOF_DEV_MODE=true cargo run -p runner-examples --bin <name></code></p>
|
||
|
|
<p><strong>All runners require <code>POL_PROOF_DEV_MODE=true</code></strong> to avoid expensive proof generation.</p>
|
||
|
|
<p><strong>Code patterns</strong> below show how to build scenarios. Wrap these in <code>#[tokio::test]</code> functions for integration tests, or <code>#[tokio::main]</code> for binaries.</p>
|
||
|
|
<h2 id="simple-consensus-liveness"><a class="header" href="#simple-consensus-liveness">Simple consensus liveness</a></h2>
|
||
|
|
<p>Minimal test that validates basic block production:</p>
|
||
|
|
<pre><code class="language-rust ignore">use std::time::Duration;
|
||
|
|
|
||
|
|
use anyhow::Result;
|
||
|
|
use testing_framework_core::scenario::{Deployer, ScenarioBuilder};
|
||
|
|
use testing_framework_runner_local::LocalDeployer;
|
||
|
|
use testing_framework_workflows::ScenarioBuilderExt;
|
||
|
|
|
||
|
|
pub async fn simple_consensus() -> Result<()> {
|
||
|
|
let mut plan = ScenarioBuilder::topology_with(|t| t.network_star().validators(3).executors(0))
|
||
|
|
.expect_consensus_liveness()
|
||
|
|
.with_run_duration(Duration::from_secs(30))
|
||
|
|
.build();
|
||
|
|
|
||
|
|
let deployer = LocalDeployer::default();
|
||
|
|
let runner = deployer.deploy(&plan).await?;
|
||
|
|
let _handle = runner.run(&mut plan).await?;
|
||
|
|
|
||
|
|
Ok(())
|
||
|
|
}</code></pre>
|
||
|
|
<p><strong>When to use</strong>: smoke tests for consensus on minimal hardware.</p>
|
||
|
|
<h2 id="transaction-workload"><a class="header" href="#transaction-workload">Transaction workload</a></h2>
|
||
|
|
<p>Test consensus under transaction load:</p>
|
||
|
|
<pre><code class="language-rust ignore">use std::time::Duration;
|
||
|
|
|
||
|
|
use anyhow::Result;
|
||
|
|
use testing_framework_core::scenario::{Deployer, ScenarioBuilder};
|
||
|
|
use testing_framework_runner_local::LocalDeployer;
|
||
|
|
use testing_framework_workflows::ScenarioBuilderExt;
|
||
|
|
|
||
|
|
pub async fn transaction_workload() -> Result<()> {
|
||
|
|
let mut plan = ScenarioBuilder::topology_with(|t| t.network_star().validators(2).executors(0))
|
||
|
|
.wallets(20)
|
||
|
|
.transactions_with(|txs| txs.rate(5).users(10))
|
||
|
|
.expect_consensus_liveness()
|
||
|
|
.with_run_duration(Duration::from_secs(60))
|
||
|
|
.build();
|
||
|
|
|
||
|
|
let deployer = LocalDeployer::default();
|
||
|
|
let runner = deployer.deploy(&plan).await?;
|
||
|
|
let _handle = runner.run(&mut plan).await?;
|
||
|
|
|
||
|
|
Ok(())
|
||
|
|
}</code></pre>
|
||
|
|
<p><strong>When to use</strong>: validate transaction submission and inclusion.</p>
|
||
|
|
<h2 id="da--transaction-workload"><a class="header" href="#da--transaction-workload">DA + transaction workload</a></h2>
|
||
|
|
<p>Combined test stressing both transaction and DA layers:</p>
|
||
|
|
<pre><code class="language-rust ignore">use std::time::Duration;
|
||
|
|
|
||
|
|
use anyhow::Result;
|
||
|
|
use testing_framework_core::scenario::{Deployer, ScenarioBuilder};
|
||
|
|
use testing_framework_runner_local::LocalDeployer;
|
||
|
|
use testing_framework_workflows::ScenarioBuilderExt;
|
||
|
|
|
||
|
|
pub async fn da_and_transactions() -> Result<()> {
|
||
|
|
let mut plan = ScenarioBuilder::topology_with(|t| t.network_star().validators(3).executors(2))
|
||
|
|
.wallets(30)
|
||
|
|
.transactions_with(|txs| txs.rate(5).users(15))
|
||
|
|
.da_with(|da| da.channel_rate(2).blob_rate(2))
|
||
|
|
.expect_consensus_liveness()
|
||
|
|
.with_run_duration(Duration::from_secs(90))
|
||
|
|
.build();
|
||
|
|
|
||
|
|
let deployer = LocalDeployer::default();
|
||
|
|
let runner = deployer.deploy(&plan).await?;
|
||
|
|
let _handle = runner.run(&mut plan).await?;
|
||
|
|
|
||
|
|
Ok(())
|
||
|
|
}</code></pre>
|
||
|
|
<p><strong>When to use</strong>: end-to-end coverage of transaction and DA layers.</p>
|
||
|
|
<h2 id="chaos-resilience"><a class="header" href="#chaos-resilience">Chaos resilience</a></h2>
|
||
|
|
<p>Test system resilience under node restarts:</p>
|
||
|
|
<pre><code class="language-rust ignore">use std::time::Duration;
|
||
|
|
|
||
|
|
use anyhow::Result;
|
||
|
|
use testing_framework_core::scenario::{Deployer, ScenarioBuilder};
|
||
|
|
use testing_framework_runner_compose::ComposeDeployer;
|
||
|
|
use testing_framework_workflows::{ChaosBuilderExt, ScenarioBuilderExt};
|
||
|
|
|
||
|
|
pub async fn chaos_resilience() -> Result<()> {
|
||
|
|
let mut plan = ScenarioBuilder::topology_with(|t| t.network_star().validators(4).executors(2))
|
||
|
|
.enable_node_control()
|
||
|
|
.wallets(20)
|
||
|
|
.transactions_with(|txs| txs.rate(3).users(10))
|
||
|
|
.chaos_with(|c| {
|
||
|
|
c.restart()
|
||
|
|
.min_delay(Duration::from_secs(20))
|
||
|
|
.max_delay(Duration::from_secs(40))
|
||
|
|
.target_cooldown(Duration::from_secs(30))
|
||
|
|
.apply()
|
||
|
|
})
|
||
|
|
.expect_consensus_liveness()
|
||
|
|
.with_run_duration(Duration::from_secs(120))
|
||
|
|
.build();
|
||
|
|
|
||
|
|
let deployer = ComposeDeployer::default();
|
||
|
|
let runner = deployer.deploy(&plan).await?;
|
||
|
|
let _handle = runner.run(&mut plan).await?;
|
||
|
|
|
||
|
|
Ok(())
|
||
|
|
}</code></pre>
|
||
|
|
<p><strong>When to use</strong>: resilience validation and operational readiness drills.</p>
|
||
|
|
<p><strong>Note</strong>: Chaos tests require <code>ComposeDeployer</code> or another runner with node control support.</p>
|
||
|
|
|
||
|
|
</main>
|
||
|
|
|
||
|
|
<nav class="nav-wrapper" aria-label="Page navigation">
|
||
|
|
<!-- Mobile navigation buttons -->
|
||
|
|
<a rel="prev" href="usage-patterns.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
|
||
|
|
<i class="fa fa-angle-left"></i>
|
||
|
|
</a>
|
||
|
|
|
||
|
|
<a rel="next prefetch" href="examples-advanced.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
|
||
|
|
<i class="fa fa-angle-right"></i>
|
||
|
|
</a>
|
||
|
|
|
||
|
|
<div style="clear: both"></div>
|
||
|
|
</nav>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<nav class="nav-wide-wrapper" aria-label="Page navigation">
|
||
|
|
<a rel="prev" href="usage-patterns.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
|
||
|
|
<i class="fa fa-angle-left"></i>
|
||
|
|
</a>
|
||
|
|
|
||
|
|
<a rel="next prefetch" href="examples-advanced.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
|
||
|
|
<i class="fa fa-angle-right"></i>
|
||
|
|
</a>
|
||
|
|
</nav>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<script>
|
||
|
|
window.playground_copyable = true;
|
||
|
|
</script>
|
||
|
|
|
||
|
|
|
||
|
|
<script src="elasticlunr.min.js"></script>
|
||
|
|
<script src="mark.min.js"></script>
|
||
|
|
<script src="searcher.js"></script>
|
||
|
|
|
||
|
|
<script src="clipboard.min.js"></script>
|
||
|
|
<script src="highlight.js"></script>
|
||
|
|
<script src="book.js"></script>
|
||
|
|
|
||
|
|
<!-- Custom JS scripts -->
|
||
|
|
<script src="theme/mermaid-init.js"></script>
|
||
|
|
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|