()
| 253 | |
| 254 | #[test] |
| 255 | fn test_has_key() -> Result<()> { |
| 256 | let test_dir = setup_test_dir(); |
| 257 | |
| 258 | let prefs = PreferenceConfig::new(test_dir.clone())?; |
| 259 | |
| 260 | // Save test data |
| 261 | prefs.save_selective("exists_key".to_string(), Some("test_value"))?; |
| 262 | |
| 263 | // Check keys |
| 264 | assert!(prefs.has_key("exists_key"), "Key should exist"); |
| 265 | assert!(!prefs.has_key("nonexistent_key"), "Key should not exist"); |
| 266 | |
| 267 | cleanup_test_dir(test_dir); |
| 268 | Ok(()) |
| 269 | } |
| 270 | |
| 271 | #[test] |
| 272 | fn test_preference_events() -> Result<()> { |
nothing calls this directly
no test coverage detected