Coverage for tests/codegen/generated/scalars/imports/host.py: 69%

39 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-02-20 16:25 +0000

1from abc import abstractmethod 

2from typing import Protocol 

3 

4class HostHost(Protocol): 

5 @abstractmethod 

6 def roundtrip_u8(self, a: int) -> int: 

7 raise NotImplementedError 

8 @abstractmethod 

9 def roundtrip_s8(self, a: int) -> int: 

10 raise NotImplementedError 

11 @abstractmethod 

12 def roundtrip_u16(self, a: int) -> int: 

13 raise NotImplementedError 

14 @abstractmethod 

15 def roundtrip_s16(self, a: int) -> int: 

16 raise NotImplementedError 

17 @abstractmethod 

18 def roundtrip_u32(self, a: int) -> int: 

19 raise NotImplementedError 

20 @abstractmethod 

21 def roundtrip_s32(self, a: int) -> int: 

22 raise NotImplementedError 

23 @abstractmethod 

24 def roundtrip_u64(self, a: int) -> int: 

25 raise NotImplementedError 

26 @abstractmethod 

27 def roundtrip_s64(self, a: int) -> int: 

28 raise NotImplementedError 

29 @abstractmethod 

30 def roundtrip_float32(self, a: float) -> float: 

31 raise NotImplementedError 

32 @abstractmethod 

33 def roundtrip_float64(self, a: float) -> float: 

34 raise NotImplementedError 

35 @abstractmethod 

36 def roundtrip_char(self, a: str) -> str: 

37 raise NotImplementedError 

38 @abstractmethod 

39 def roundtrip_bool(self, a: bool) -> bool: 

40 raise NotImplementedError 

41