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

Function test_simple_empty_string_zero

tests/test_structs.rs:56–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55#[test]
56fn test_simple_empty_string_zero() {
57 Python::attach(|py| {
58 let original = Simple {
59 name: String::new(),
60 value: 0,
61 };
62 let py_obj = pythonize(py, &original).unwrap();
63 let result: Simple = depythonize(&py_obj).unwrap();
64 assert_eq!(result, original);
65 });
66}
67
68#[test]
69fn test_simple_boundary_i64_min() {

Callers

nothing calls this directly

Calls 2

pythonizeFunction · 0.85
depythonizeFunction · 0.85

Tested by

no test coverage detected