From 91142ba8810bd94c9f9461e6f5172a02173a0365 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 3 Jan 2025 03:18:42 -0800 Subject: [PATCH] roblox_bot_file: hide file tests behind feature flag Files are missing from git tree which causes `cargo test` run on the repository root to fail. This change means that all tests from all modules now pass. --- lib/roblox_bot_file/Cargo.toml | 3 +++ lib/roblox_bot_file/src/tests.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/roblox_bot_file/Cargo.toml b/lib/roblox_bot_file/Cargo.toml index 90803cf..6109b86 100644 --- a/lib/roblox_bot_file/Cargo.toml +++ b/lib/roblox_bot_file/Cargo.toml @@ -6,3 +6,6 @@ edition = "2021" [dependencies] binrw = "0.14.1" bitflags = "2.6.0" + +[features] +test=[] diff --git a/lib/roblox_bot_file/src/tests.rs b/lib/roblox_bot_file/src/tests.rs index d1d3f84..e4d983d 100644 --- a/lib/roblox_bot_file/src/tests.rs +++ b/lib/roblox_bot_file/src/tests.rs @@ -1,3 +1,5 @@ +#[cfg(feature="test")] +mod file{ use crate::v0::TimedBlockId; #[test] @@ -39,3 +41,4 @@ fn _2()->Result<(),crate::v0::Error>{ Ok(()) } +}