Files
arena-tracker/crates/core/tests/common/mod.rs
T
nessarandClaude Opus 5.5 6baa482d17 Count a Provisional Match from the client's end-of-game block (#127)
The block is kept as soon as its event arrives and stored as a Match flagged
provisional under the Account that played; it counts at once (ADR 0006) and
Riot's published Match replaces it silently, looked up until it appears.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:00:57 +01:00

39 lines
1.3 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 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::{
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,
},
};