MCPcopy Index your code
hub / github.com/dgrunwald/rust-cpython / test_debug_string

Function test_debug_string

src/objectprotocol.rs:367–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365
366 #[test]
367 fn test_debug_string() {
368 let gil = Python::acquire_gil();
369 let py = gil.python();
370 let v = "Hello\n".to_py_object(py).into_object();
371 assert_eq!(format!("{:?}", v), "'Hello\\n'");
372 }
373
374 #[test]
375 fn test_display_string() {

Callers

nothing calls this directly

Calls 3

pythonMethod · 0.80
into_objectMethod · 0.45
to_py_objectMethod · 0.45

Tested by

no test coverage detected