Coverage for pyEDAA/ToolSetup/OpenSource/__init__.py: 88%

16 statements  

« prev     ^ index     » next       coverage.py v7.6.5, created at 2024-11-15 01:13 +0000

1from typing import Dict 

2 

3from pyTooling.Decorators import export 

4 

5from .. import Vendor, Tool 

6from ..OpenSource.GHDL import GHDL 

7from ..OpenSource.GTKWave import GTKWave 

8 

9 

10@export 

11class OpenSource(Vendor): 

12 _vendorName = "Open Source" 

13 _vendorKey = "OpenSource" 

14 _toolClasses: Dict[str, Tool] = { 

15 "GHDL": GHDL, 

16 "GTKWave": GTKWave, 

17 } 

18 

19 @property 

20 def GHDL(self) -> GHDL: 

21 return self.__getitem__("GHDL") 

22 

23 @property 

24 def GTKWave(self) -> GTKWave: 

25 return self.__getitem__("GTKWave")