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

Function test_option_some_round_trip

tests/test_structs.rs:199–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198#[test]
199fn test_option_some_round_trip() {
200 Python::attach(|py| {
201 let original = WithOption {
202 label: "y".into(),
203 count: Some(99),
204 };
205 let py_obj = pythonize(py, &original).unwrap();
206 let result: WithOption = depythonize(&py_obj).unwrap();
207 assert_eq!(result, original);
208 });
209}
210
211#[test]
212fn test_option_some_i64_max() {

Callers

nothing calls this directly

Calls 2

pythonizeFunction · 0.85
depythonizeFunction · 0.85

Tested by

no test coverage detected