You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use Registrar metaclasses to register different analysis classes in CountMatch. There are multiple metaclasses, but all share nearly identical codebases, so it would be ideal to be able to write something like
DV_REGISTRY = {}
"""Dict for storing derived value processor class definitions."""
DVRegistrar = RegistrarFactory(DV_REGISTRY, "DV_REGISTRY", "_dv_type")
in place of the current DVRegistrar definition.
Ditto for DerivedVals:
DerivedVals = RegistryAccess(DV_REGISTRY)
Tests should remain the same, since the functionality is identical. Thus, very little effort wasted when writing tests currently.
The text was updated successfully, but these errors were encountered:
cczhu
changed the title
Metaclass factory to replace Registrar metaclasses
Metaclass factory to replace Registrar metaclasses
Jan 28, 2020
cczhu
changed the title
Metaclass factory to replace Registrar metaclasses
Metaclass factory to replace Registrar and registry access classes
Jan 28, 2020
We currently use
Registrar
metaclasses to register different analysis classes in CountMatch. There are multiple metaclasses, but all share nearly identical codebases, so it would be ideal to be able to write something likein place of the current
DVRegistrar
definition.Ditto for
DerivedVals
:Tests should remain the same, since the functionality is identical. Thus, very little effort wasted when writing tests currently.
The text was updated successfully, but these errors were encountered: