Skip to main content

forest/dev/subcommands/
tests_cmd.rs

1// Copyright 2019-2026 ChainSafe Systems
2// SPDX-License-Identifier: Apache-2.0, MIT
3
4mod helpers;
5mod mpool;
6mod wallet;
7
8/// Integration tests
9#[derive(Debug, clap::Subcommand)]
10pub enum TestsCommand {
11    Wallet(wallet::WalletTestCommand),
12    Mpool(mpool::MpoolTestCommand),
13}
14
15impl TestsCommand {
16    pub async fn run(self) -> anyhow::Result<()> {
17        match self {
18            Self::Wallet(cmd) => cmd.run().await,
19            Self::Mpool(cmd) => cmd.run().await,
20        }
21    }
22}