Files
arena-tracker/crates/core/tests/common/mod.rs
T

39 lines
1.2 KiB
Rust

//! Test doubles and payload builders shared by the integration tests.
// Each test binary uses its own subset of these helpers.
#![allow(dead_code)]
use std::collections::{HashMap, VecDeque};
use std::path::Path;
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use std::sync::mpsc::{Receiver, Sender};
use std::sync::{Arc, Mutex};
use std::time::Duration;
use arena_tracker_core::{
Account, ChampSelect, ChampSelectReader, Champion, ChampionCatalog, ChampionSource,
ClientError, ClientEvent, Date, GameClientSource, GamePhase, Gameflow, MatchHistorySource,
Season, SourceError, Tracker, decode_gameflow,
};
use serde_json::Value;
mod champions;
mod client;
mod history;
mod payloads;
mod scenarios;
#[allow(unused_imports)]
pub use {
champions::{FakeChampions, card_art, splash_art},
client::{FakeClient, RawChampSelect, recorded_game_id},
history::FakeHistory,
payloads::{
SELF_PUUID, payload, played_by, recorded_account, recorded_matches, with_game_mode,
without_fields_for_others,
},
scenarios::{
CATALOG, HOUR_MS, PlayedMatch, RIOT_ID, S1, S2, S2_TRACK, at, date, imported_tracker,
jan_2026, open_tracker, payloads, played_match, run, seasons,
},
};