feat: implement Phase 2 test structure and modules

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-14 12:15:57 -03:00
parent 8284545ca7
commit 4e23dd36e1
26 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1 @@
// Common is_binary tests

View File

@@ -1 +1,6 @@
// Common test utilities and shared test code will go here // Common test utilities and shared test code will go here
#[cfg(test)]
pub mod is_binary_tests;
#[cfg(test)]
pub mod status_tests;

View File

@@ -0,0 +1 @@
// Common status tests

View File

@@ -0,0 +1,4 @@
// Compression engine tests module
#[cfg(test)]
pub mod program_tests;

View File

@@ -0,0 +1 @@
// Compression engine program tests

View File

@@ -0,0 +1 @@
// Database item tests

View File

@@ -0,0 +1 @@
// Database meta tests

8
src/tests/db/mod.rs Normal file
View File

@@ -0,0 +1,8 @@
// Database tests module
#[cfg(test)]
pub mod item_tests;
#[cfg(test)]
pub mod tag_tests;
#[cfg(test)]
pub mod meta_tests;

View File

@@ -0,0 +1 @@
// Database tag tests

View File

@@ -0,0 +1 @@
// Meta plugin digest tests

View File

@@ -0,0 +1,8 @@
// Meta plugin tests module
#[cfg(test)]
pub mod system_tests;
#[cfg(test)]
pub mod digest_tests;
#[cfg(test)]
pub mod program_tests;

View File

@@ -0,0 +1 @@
// Meta plugin program tests

View File

@@ -0,0 +1 @@
// Meta plugin system tests

View File

@@ -12,3 +12,5 @@ pub mod modes;
pub mod server; pub mod server;
#[cfg(test)] #[cfg(test)]
pub mod common; pub mod common;
#[cfg(test)]
pub mod db;

View File

@@ -0,0 +1 @@
// Modes delete tests

View File

@@ -0,0 +1 @@
// Modes diff tests

View File

@@ -0,0 +1 @@
// Modes get tests

View File

@@ -0,0 +1 @@
// Modes info tests

View File

@@ -0,0 +1 @@
// Modes list tests

18
src/tests/modes/mod.rs Normal file
View File

@@ -0,0 +1,18 @@
// Modes tests module
#[cfg(test)]
pub mod save_tests;
#[cfg(test)]
pub mod get_tests;
#[cfg(test)]
pub mod list_tests;
#[cfg(test)]
pub mod delete_tests;
#[cfg(test)]
pub mod update_tests;
#[cfg(test)]
pub mod info_tests;
#[cfg(test)]
pub mod status_tests;
#[cfg(test)]
pub mod diff_tests;

View File

@@ -0,0 +1 @@
// Modes save tests

View File

@@ -0,0 +1 @@
// Modes status tests

View File

@@ -0,0 +1 @@
// Modes update tests

View File

@@ -0,0 +1 @@
// Server API tests

View File

@@ -0,0 +1 @@
// Server authentication tests

6
src/tests/server/mod.rs Normal file
View File

@@ -0,0 +1,6 @@
// Server tests module
#[cfg(test)]
pub mod api_tests;
#[cfg(test)]
pub mod auth_tests;