Files
arena-tracker/crates/core/tests/common/mod.rs
T
2026-11-25 09:00:37 +01:00

44 lines
1.4 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, EndOfGameBlock, GameClientSource, GamePhase, Gameflow,
MatchHistorySource, Season, SourceError, Tracker, decode_gameflow,
};
use serde_json::Value;
mod champions;
mod client;
mod game_data;
mod history;
mod payloads;
mod scenarios;
#[allow(unused_imports)]
pub use {
champions::{FakeChampions, card_art, splash_art},
client::{FakeClient, RawChampSelect, recorded_game_id},
game_data::{
FakeCatalog, RECORDED_ITEMS, RECORDED_VERSION, VERSIONS_URL, arena_url, augments_url,
icon_png, item_icon_url, items_url,
},
history::FakeHistory,
payloads::{
CLIENT_PUUID, SELF_PUUID, end_of_game_block, 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,
},
};