MCPcopy Create free account
hub / github.com/Commit-Boost/commit-boost-client / test_load_example_config

Function test_load_example_config

tests/tests/config.rs:9–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8#[tokio::test]
9async fn test_load_example_config() -> Result<()> {
10 let path = PathBuf::from("../config.example.toml");
11 let config = CommitBoostConfig::from_file(&path)?;
12 config.validate().await?;
13 assert_eq!(config.chain, Chain::Holesky);
14 assert!(config.relays[0].headers.is_some());
15
16 Ok(())
17}
18
19async fn load_happy_config() -> Result<CommitBoostConfig> {
20 let path = PathBuf::from("./data/configs/pbs.happy.toml");

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected