gbserver/gb-core/src/lib.rs

33 lines
653 B
Rust
Raw Normal View History

2024-12-23 00:20:59 -03:00
pub mod errors;
2024-12-22 20:56:52 -03:00
pub mod models;
pub mod traits;
2024-12-23 00:20:59 -03:00
pub use errors::{Error, ErrorKind, Result};
2024-12-22 20:56:52 -03:00
pub use models::*;
pub use traits::*;
#[cfg(test)]
mod tests {
use super::*;
use rstest::*;
#[fixture]
fn customer() -> Customer {
Customer::new(
"Test Corp".to_string(),
"enterprise".to_string(),
10,
)
}
#[rstest]
fn test_customer_fixture(customer: Customer) {
assert_eq!(customer.name, "Test Corp");
assert_eq!(customer.subscription_tier, "enterprise");
assert_eq!(customer.max_instances, 10);
assert_eq!(customer.status, "active");
}
}