hotshot_testing/
lib.rs

1// Copyright (c) 2021-2024 Espresso Systems (espressosys.com)
2// This file is part of the HotShot repository.
3
4// You should have received a copy of the MIT License
5// along with the HotShot repository. If not, see <https://mit-license.org/>.
6
7//! Testing infrastructure for `HotShot`
8
9/// Helpers for initializing system context handle and building tasks.
10pub mod helpers;
11
12///  builder
13pub mod test_builder;
14
15/// launcher
16pub mod test_launcher;
17
18/// runner
19pub mod test_runner;
20
21/// task that's consuming events and asserting safety
22pub mod overall_safety_task;
23
24/// task that checks leaves received across all nodes from decide events for consistency
25pub mod consistency_task;
26
27/// task that's submitting transactions to the stream
28pub mod txn_task;
29
30/// task that decides when things are complete
31pub mod completion_task;
32
33/// task to spin nodes up and down
34pub mod spinning_task;
35
36/// the `TestTask` struct and associated trait/functions
37pub mod test_task;
38
39/// task for checking if view sync got activated
40pub mod view_sync_task;
41
42/// Test implementation of block builder
43pub mod block_builder;
44
45/// predicates to use in tests
46pub mod predicates;
47
48/// scripting harness for tests
49pub mod script;
50
51/// view generator for tests
52pub mod view_generator;
53
54/// byzantine framework for tests
55pub mod byzantine;
56
57/// helpers for testing variable stake
58pub mod node_stake;