forked from enowdev/enowX-Coder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.rs
More file actions
39 lines (35 loc) · 1007 Bytes
/
Copy pathmod.rs
File metadata and controls
39 lines (35 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
pub mod agent_config;
pub mod agent_run;
pub mod message;
pub mod project;
pub mod provider;
pub mod provider_model;
pub mod session;
pub mod drawing;
pub mod tool_call;
pub use agent_config::AgentConfig;
pub use drawing::Drawing;
pub use agent_run::AgentRun;
pub use message::Message;
pub use project::Project;
pub use provider::{fixed_base_url, Provider};
pub use provider_model::ProviderModelConfig;
pub use session::Session;
pub use tool_call::ToolCall;
#[cfg(test)]
#[allow(clippy::disallowed_methods)]
mod tests {
use super::*;
#[test]
fn test_project_serialization() {
let p = Project {
id: "test-id-123".to_string(),
name: "test-project".to_string(),
path: Some("/home/test/project".to_string()),
created_at: "2025-01-01T00:00:00Z".to_string(),
updated_at: "2025-01-01T00:00:00Z".to_string(),
};
let json = serde_json::to_string(&p).unwrap();
assert!(json.contains("test-project"));
}
}