(name=None)
| 51 | |
| 52 | |
| 53 | def res_register(name=None): |
| 54 | def decorator(func): |
| 55 | nonlocal name |
| 56 | global _PLUGINS_REGISTRY |
| 57 | if name is None: |
| 58 | name = func.__name__ |
| 59 | _PLUGINS_REGISTRY[__RESOURCE_PLUGINS].append(__res_register(name, func)) |
| 60 | return func |
| 61 | |
| 62 | return decorator |
| 63 | |
| 64 | |
| 65 | def collect(): |
nothing calls this directly
no outgoing calls
no test coverage detected