Lines Matching refs:to_string

133     let msg = error.to_string();  in msg()
160 assert_eq!(error.to_string(), "yikes"); in into_boxed_dyn_error()
163 assert_eq!(error.to_string(), "whoops"); in into_boxed_dyn_error()
166 assert_eq!(error.to_string(), "ouch"); in into_boxed_dyn_error()
251 assert_eq!(error.to_string(), "literal"); in format_err_macro_string_literal()
259 assert_eq!(error.to_string(), "implicit args 42 36"); in format_err_macro_format_implicit_args()
267 assert_eq!(error.to_string(), "explicit args 42 36"); in format_err_macro_format_explicit_args()
275 assert_eq!(error.to_string(), "TestError(42)"); in format_err_macro_core_error()
288 assert_eq!(e.to_string(), "whoops"); in format_err_macro_core_error_chain()
291 assert_eq!(e.to_string(), "yikes"); in format_err_macro_core_error_chain()
294 assert_eq!(e.to_string(), "ouch"); in format_err_macro_core_error_chain()
303 assert_eq!(error.to_string(), "42"); in format_err_macro_msg()
312 assert_eq!(error.to_string(), "oof"); in format_err_is_anyhow()
320 assert_eq!(bail_string_literal().unwrap_err().to_string(), "whoops"); in bail_macro()
326 bail_format_implicit(42).unwrap_err().to_string(), in bail_macro()
333 assert_eq!(bail_format_explicit(35).unwrap_err().to_string(), "ouch 36"); in bail_macro()
338 assert_eq!(bail_core_error().unwrap_err().to_string(), "TestError(13)"); in bail_macro()
344 assert_eq!(bail_display().unwrap_err().to_string(), "1337"); in bail_macro()
355 ensure_string_literal(false).unwrap_err().to_string(), in ensure_macro()
365 ensure_format_implicit(false, 42).unwrap_err().to_string(), in ensure_macro()
375 ensure_format_explicit(false, 35).unwrap_err().to_string(), in ensure_macro()
385 ensure_core_error(false).unwrap_err().to_string(), in ensure_macro()
395 assert_eq!(ensure_display(false).unwrap_err().to_string(), "1337"); in ensure_macro()
402 assert_eq!(ensure_bool_ref(&false).unwrap_err().to_string(), "whoops"); in ensure_macro()
410 ensure_no_message(0).unwrap_err().to_string(), in ensure_macro()
801 assert_eq!(e.to_string(), "TestError(42)"); in chain()
804 assert_eq!(e.to_string(), "uh oh"); in chain()
807 assert_eq!(e.to_string(), "failure"); in chain()
826 assert_eq!(e.to_string(), "oof"); in chain_on_error_with_source()
829 assert_eq!(e.to_string(), "ouch"); in chain_on_error_with_source()
832 assert_eq!(e.to_string(), "uh oh"); in chain_on_error_with_source()
835 assert_eq!(e.to_string(), "whoops"); in chain_on_error_with_source()
838 assert_eq!(e.to_string(), "yikes"); in chain_on_error_with_source()
850 assert_eq!(root.to_string(), "yikes"); in root_cause()
871 let error = Error::new(ErrorWithSource("leaf".to_string(), Box::new(TestError(42)))) in chain_with_leaf_sources()
878 assert_eq!(e.to_string(), "wow"); in chain_with_leaf_sources()
881 assert_eq!(e.to_string(), "oof"); in chain_with_leaf_sources()
884 assert_eq!(e.to_string(), "leaf"); in chain_with_leaf_sources()
887 assert_eq!(e.to_string(), "TestError(42)"); in chain_with_leaf_sources()
977 e.chain().map(|e| e.to_string()), in anyhow_wasmtime_anyhow_sandwich_chain()
985 e.chain().map(|e| e.to_string()), in anyhow_wasmtime_anyhow_sandwich_chain()
993 e.chain().map(|e| e.to_string()), in anyhow_wasmtime_anyhow_sandwich_chain()
1012 e.chain().map(|e| e.to_string()), in wasmtime_anyhow_wasmtime_sandwich_chain()
1020 e.chain().map(|e| e.to_string()), in wasmtime_anyhow_wasmtime_sandwich_chain()
1028 e.chain().map(|e| e.to_string()), in wasmtime_anyhow_wasmtime_sandwich_chain()