Files
arena-tracker/crates/core/tests/common/mod.rs
T
nessarandClaude Opus 5.5 200a1f380c Keep an application log in a rotating file, and open its folder from « Paramètres » (#142)
Lines are queued to one writer thread, idle at rest, that flushes once the
queue is drained and on quit. Riot calls are logged by type, never by URL;
PUUIDs are cut to 8 characters and the key never appears.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 16:22:04 +01:00

46 lines
1.5 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 capture;
mod champions;
mod client;
mod game_data;
mod history;
mod payloads;
mod scenarios;
#[allow(unused_imports)]
pub use {
capture::captured,
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,
},
};