MCPcopy Create free account
hub / github.com/davidhewitt/pythonize / test_simple_boundary_i64_min

Function test_simple_boundary_i64_min

tests/test_structs.rs:69–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68#[test]
69fn test_simple_boundary_i64_min() {
70 Python::attach(|py| {
71 let original = Simple {
72 name: "hello world".into(),
73 value: i64::MIN,
74 };
75 let py_obj = pythonize(py, &original).unwrap();
76 let result: Simple = depythonize(&py_obj).unwrap();
77 assert_eq!(result, original);
78 });
79}
80
81// --- #[serde(rename)] ---
82

Callers

nothing calls this directly

Calls 2

pythonizeFunction · 0.85
depythonizeFunction · 0.85

Tested by

no test coverage detected