Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Environment/TestProvider/
TestProviderState.rs

1//! Aggregate state for the TestProvider: registered controllers and
2//! currently active test runs. Held inside `ApplicationState` behind a
3//! `tokio::sync::RwLock` for concurrent reads during test runs.
4
5use std::collections::HashMap;
6
7use crate::Environment::TestProvider::{TestControllerState, TestRun};
8
9#[derive(Debug)]
10pub struct Struct {
11	pub Controllers:HashMap<String, TestControllerState::Struct>,
12
13	pub ActiveRuns:HashMap<String, TestRun::Struct>,
14}
15
16impl Struct {
17	pub fn new() -> Self { Self { Controllers:HashMap::new(), ActiveRuns:HashMap::new() } }
18}
19
20impl Default for Struct {
21	fn default() -> Self { Self::new() }
22}