A game data catalog read from /lol-game-data in the client's language, kept on disk and renewed once per game version, so recaps stay readable with the client closed. It keeps each augment's augmentNameId for the Death Recap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
44 lines
1.4 KiB
Rust
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::{
|
|
AUGMENTS_ROUTE, ITEMS_ROUTE, RECORDED_VERSION, client_with_game_data, icon_png,
|
|
recorded_game_data,
|
|
},
|
|
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,
|
|
},
|
|
};
|