(type_cls: type, method_name: str)
| 66 | |
| 67 | |
| 68 | def _method_metadata(type_cls: type, method_name: str) -> dict[str, Any]: |
| 69 | type_info = getattr(type_cls, "__tvm_ffi_type_info__") |
| 70 | for method in type_info.methods: |
| 71 | if method.name == method_name: |
| 72 | return method.metadata |
| 73 | raise AssertionError(f"Cannot find method metadata: {type_cls.__name__}.{method_name}") |
| 74 | |
| 75 | |
| 76 | class TestAutoInitMetadata: |
nothing calls this directly
no outgoing calls
no test coverage detected