Coverage for mhlib/eg.py: 100%

18 statements  

« prev     ^ index     » next       coverage.py v6.4.1, created at 2022-06-04 11:40 +0100

1""" Example of an internal module.""" 

2 

3import time 

4from mhlib.l2 import l2 

5 

6 

7EG_VAR = 'abcd' 

8 

9 

10def test() -> str: 

11 """Example internal function.""" 

12 return 'ok1' 

13 

14 

15class MhEg (object): 

16 """Example internal class.""" 

17 

18 def run_mh_eg(self) -> int: 

19 """Example member function of an internal class.""" 

20 return 10 

21 

22 def slow(self) -> None: 

23 """An example slow function.""" 

24 t = 3 

25 time.sleep(t) 

26 return 

27 

28 def call_external_func(self) -> None: 

29 """No documentation.""" 

30 x = l2.L2Mh() 

31 y = x.slow() 

32 return y 

33 

34 

35if __name__ == '__main__': 

36 pass