()
| 398 | |
| 399 | #[test] |
| 400 | fn test_json_change_serialize() { |
| 401 | let change = create_test_change(); |
| 402 | let hash = Hash::of(b"test change"); |
| 403 | let json_change = JsonChange::from_change(&change, &hash, None); |
| 404 | |
| 405 | let json = serde_json::to_string_pretty(&json_change).unwrap(); |
| 406 | assert!(json.contains("\"message\": \"Test change message\"")); |
| 407 | assert!(json.contains("\"description\": \"This is a description\"")); |
| 408 | } |
| 409 | |
| 410 | // Helper Function Tests |
| 411 |
nothing calls this directly
no test coverage detected