| 1 | class Singleton: |
| 2 | _instance = None |
| 3 | |
| 4 | @classmethod |
| 5 | def instance(cls): |
| 6 | if cls._instance is None: |
| 7 | cls._instance = cls() |
| 8 | return cls._instance |
| 9 | |
| 10 | def reset(self): |
| 11 | self.value = 0.0 |
| 12 | |
| 13 | class Cost(Singleton): |
| 14 | def __init__(self): |
nothing calls this directly
no outgoing calls
no test coverage detected