(value: Any, return_type: Type[Any])
| 54 | ], |
| 55 | ) |
| 56 | def test_json_coder(value: Any, return_type: Type[Any]) -> None: |
| 57 | encoded_value = JsonCoder.encode(value) |
| 58 | assert isinstance(encoded_value, bytes) |
| 59 | decoded_value = JsonCoder.decode_as_type(encoded_value, type_=return_type) |
| 60 | assert decoded_value == value |
| 61 | |
| 62 | |
| 63 | def test_json_coder_validation_error() -> None: |
nothing calls this directly
no test coverage detected