Files
osirose-new/tests/src/lib.rs
raven a8755bd3de Add comprehensive documentation and unit tests
Documentation:
- Add detailed README files for all services (auth, character, database, launcher, packet, utils, world)
- Create API documentation for the database service with detailed endpoint specifications
- Document database schema and relationships
- Add service architecture overviews and configuration instructions

Unit Tests:
- Implement comprehensive test suite for database repositories (user, character, session)
- Add gRPC service tests for database interactions
- Create tests for packet service components (bufferpool, connection, packets)
- Add utility service tests (health check, logging, load balancer, redis cache, service discovery)
- Implement auth service user tests
- Add character service tests

Code Structure:
- Reorganize test files into a more consistent structure
- Create a dedicated tests crate for integration testing
- Add test helpers and mock implementations for easier testing
2025-04-09 13:29:53 -04:00

19 lines
480 B
Rust

// This file is required to make the tests directory a proper Rust library crate
// It will only be compiled when running tests
#[cfg(test)]
pub mod test_utils {
// Common test utilities can go here
pub fn setup() {
// Common test setup code
}
pub fn teardown() {
// Common test teardown code
}
}
// This ensures the crate is only compiled during testing
#[cfg(not(test))]
compile_error!("This crate is only meant to be used in test mode");