()
| 895 | |
| 896 | #[test] |
| 897 | fn test_storage_error() { |
| 898 | let pristine_err = PristineError::ViewNotFound { |
| 899 | name: "test".to_string(), |
| 900 | }; |
| 901 | let err = ApplyError::storage(pristine_err, "testing"); |
| 902 | assert!(err.is_storage_error()); |
| 903 | assert!(err.to_string().contains("testing")); |
| 904 | } |
| 905 | |
| 906 | #[test] |
| 907 | fn test_internal_error() { |