organizational_intelligence_plugin/
gpu_store.rs1use anyhow::Result;
7
8pub struct GPUHotStore {
13 feature_count: usize,
15 commit_count: usize,
16}
17
18impl GPUHotStore {
19 pub fn new() -> Result<Self> {
21 Ok(Self {
22 feature_count: 0,
23 commit_count: 0,
24 })
25 }
26
27 pub fn dimensions(&self) -> (usize, usize) {
29 (self.commit_count, self.feature_count)
30 }
31}
32
33impl Default for GPUHotStore {
34 fn default() -> Self {
35 Self::new().unwrap()
36 }
37}
38
39#[cfg(test)]
40mod tests {
41 use super::*;
42
43 #[test]
44 fn test_hot_store_creation() {
45 let store = GPUHotStore::new();
46 assert!(store.is_ok());
47 }
48
49 #[test]
50 fn test_dimensions_initial() {
51 let store = GPUHotStore::new().unwrap();
52 assert_eq!(store.dimensions(), (0, 0));
53 }
54}