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

Function test_option_some_i64_max

tests/test_structs.rs:212–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210
211#[test]
212fn test_option_some_i64_max() {
213 Python::attach(|py| {
214 let original = WithOption {
215 label: "z".into(),
216 count: Some(i64::MAX),
217 };
218 let py_obj = pythonize(py, &original).unwrap();
219 let result: WithOption = depythonize(&py_obj).unwrap();
220 assert_eq!(result, original);
221 });
222}

Callers

nothing calls this directly

Calls 2

pythonizeFunction · 0.85
depythonizeFunction · 0.85

Tested by

no test coverage detected