MCPcopy Index your code
hub / github.com/davidhewitt/pythonize / test_simple_round_trip

Function test_simple_round_trip

tests/test_structs.rs:43–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42#[test]
43fn test_simple_round_trip() {
44 Python::attach(|py| {
45 let original = Simple {
46 name: "Alice".into(),
47 value: 42,
48 };
49 let py_obj = pythonize(py, &original).unwrap();
50 let result: Simple = depythonize(&py_obj).unwrap();
51 assert_eq!(result, original);
52 });
53}
54
55#[test]
56fn test_simple_empty_string_zero() {

Callers

nothing calls this directly

Calls 2

pythonizeFunction · 0.85
depythonizeFunction · 0.85

Tested by

no test coverage detected