summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-28 22:28:05 +0100
committersalmonik <salmonik@tuta.io>2026-10-28 22:28:05 +0100
commitea5e7d336719571e51ef14478ab603e71126e3d8 (patch)
tree4fb59337501f798e6591701e52b9e785307efd63 /tests
parentFix TUI: render_lines 6 for correct MoveUp, drain buffered events before clea... (diff)
downloadzagan-bet-ea5e7d336719571e51ef14478ab603e71126e3d8.tar.gz
zagan-bet-ea5e7d336719571e51ef14478ab603e71126e3d8.zip
v0.2.2: split client/server logic into the library
Diffstat (limited to 'tests')
-rw-r--r--tests/slots.rs4
-rw-r--r--tests/storage.rs4
-rw-r--r--tests/tofu.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/slots.rs b/tests/slots.rs
index 6babd98..12348c9 100644
--- a/tests/slots.rs
+++ b/tests/slots.rs
@@ -1,7 +1,7 @@
1//! Regression tests for the server-side slots game logic. 1//! Regression tests for the server-side slots game logic.
2 2
3use zagan_bet::server_game_traits::{Game, GamePhase}; 3use zagan_bet::server::games::slots::SlotsGame;
4use zagan_bet::server_slots::SlotsGame; 4use zagan_bet::server::games::traits::{Game, GamePhase};
5 5
6fn make_game() -> SlotsGame { 6fn make_game() -> SlotsGame {
7 SlotsGame::new() 7 SlotsGame::new()
diff --git a/tests/storage.rs b/tests/storage.rs
index 275d47d..b6e1369 100644
--- a/tests/storage.rs
+++ b/tests/storage.rs
@@ -2,8 +2,8 @@
2 2
3use std::path::PathBuf; 3use std::path::PathBuf;
4 4
5use zagan_bet::client_database; 5use zagan_bet::client::database as client_database;
6use zagan_bet::server_database; 6use zagan_bet::server::database as server_database;
7 7
8fn tmp_db(name: &str) -> (String, rusqlite::Connection) { 8fn tmp_db(name: &str) -> (String, rusqlite::Connection) {
9 let path = PathBuf::from(env!("CARGO_TARGET_TMPDIR")) 9 let path = PathBuf::from(env!("CARGO_TARGET_TMPDIR"))
diff --git a/tests/tofu.rs b/tests/tofu.rs
index 260e1b6..359c192 100644
--- a/tests/tofu.rs
+++ b/tests/tofu.rs
@@ -7,7 +7,7 @@
7use std::path::PathBuf; 7use std::path::PathBuf;
8use std::process::Command; 8use std::process::Command;
9 9
10use zagan_bet::client_database; 10use zagan_bet::client::database as client_database;
11use zagan_bet::tofu::{decide, spki_fingerprint, TrustDecision}; 11use zagan_bet::tofu::{decide, spki_fingerprint, TrustDecision};
12 12
13/// Generate a self-signed certificate under target/ and return its DER bytes. 13/// Generate a self-signed certificate under target/ and return its DER bytes.