MCPcopy Create free account
hub / github.com/06chaynes/http-cache / test_errors

Function test_errors

http-cache-tower/src/test.rs:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27 #[test]
28 fn test_errors() -> Result<()> {
29 // Testing the Debug trait for the error type
30 let err = HttpCacheError::cache("test".to_string());
31 assert!(format!("{:?}", err).contains("Cache"));
32 assert!(err.to_string().contains("test"));
33 Ok(())
34 }
35
36 // Simple test service that always returns the same response
37 #[derive(Clone)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected