fix: formatting

This commit is contained in:
Roman 2024-12-12 19:38:30 +08:00
parent f247140f9b
commit 7955fabd0d
No known key found for this signature in database
GPG Key ID: B8FE070B54E11B75
6 changed files with 10 additions and 13 deletions

View File

@ -2,7 +2,4 @@ use crate::node::NomosNode;
pub trait Cluster { pub trait Cluster {
fn members(&self) -> Vec<Box<dyn NomosNode>>; fn members(&self) -> Vec<Box<dyn NomosNode>>;
} }

View File

@ -1,10 +1,9 @@
mod cluster; mod cluster;
mod node;
pub mod config; pub mod config;
mod node;
pub mod test_case; pub mod test_case;
pub trait TestCase { pub trait TestCase {
fn name(&self) -> &'static str; fn name(&self) -> &'static str;
fn run(&self) -> Result<(), anyhow::Error>; fn run(&self) -> Result<(), anyhow::Error>;
} }

View File

@ -1,8 +1,10 @@
use nomos_cluster_tests::{config::{Config, LogArgs}, test_case::data_integrity_nodes_join_leave::DataIntegrityNodesJoinLeave, TestCase};
use clap::Parser; use clap::Parser;
use color_eyre::eyre::Result; use color_eyre::eyre::Result;
use nomos_cluster_tests::{
config::{Config, LogArgs},
test_case::data_integrity_nodes_join_leave::DataIntegrityNodesJoinLeave,
TestCase,
};
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)] #[command(author, version, about, long_about = None)]

View File

@ -1,5 +1,4 @@
pub trait NomosNode { pub trait NomosNode {
fn start(&self) -> String; fn start(&self) -> String;
fn stop(&self) -> String; fn stop(&self) -> String;
} }

View File

@ -1,5 +1,5 @@
use anyhow::Error;
use crate::TestCase; use crate::TestCase;
use anyhow::Error;
pub struct DataIntegrityNodesJoinLeave; pub struct DataIntegrityNodesJoinLeave;
@ -11,4 +11,4 @@ impl TestCase for DataIntegrityNodesJoinLeave {
fn run(&self) -> Result<(), Error> { fn run(&self) -> Result<(), Error> {
todo!() todo!()
} }
} }

View File

@ -1 +1 @@
pub mod data_integrity_nodes_join_leave; pub mod data_integrity_nodes_join_leave;