()
| 238 | |
| 239 | #[test] |
| 240 | fn test_file_event_serde() { |
| 241 | let event = FileEvent::Add; |
| 242 | let json = serde_json::to_string(&event).unwrap(); |
| 243 | assert_eq!(json, "\"add\""); |
| 244 | |
| 245 | let parsed: FileEvent = serde_json::from_str(&json).unwrap(); |
| 246 | assert_eq!(parsed, FileEvent::Add); |
| 247 | } |
| 248 | |
| 249 | #[tokio::test] |
| 250 | async fn test_watch_directory() { |
nothing calls this directly
no outgoing calls
no test coverage detected