Register a scalar function with the wrong signature.
()
| 291 | |
| 292 | @pytest.fixture(scope="session") |
| 293 | def wrong_signature_func_fixture(): |
| 294 | """ |
| 295 | Register a scalar function with the wrong signature. |
| 296 | """ |
| 297 | # Missing the context argument |
| 298 | def wrong_signature(): |
| 299 | return pa.scalar(1, type=pa.int64()) |
| 300 | |
| 301 | func_name = "test_wrong_signature" |
| 302 | in_types = {} |
| 303 | out_type = pa.int64() |
| 304 | doc = { |
| 305 | "summary": "UDF with wrong signature", |
| 306 | "description": "" |
| 307 | } |
| 308 | pc.register_scalar_function(wrong_signature, func_name, doc, |
| 309 | in_types, out_type) |
| 310 | return wrong_signature, func_name |
| 311 | |
| 312 | |
| 313 | @pytest.fixture(scope="session") |
nothing calls this directly
no outgoing calls
no test coverage detected