Coverage for mypackage / MyClass.py: 0%

12 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2025-12-21 13:48 +0900

1# -*- coding: utf-8 -*- 

2 

3'''Example module. 

4 

5This module defines Example class. 

6Created on 2019/12/08 

7 

8 

9Copyright ycookjp 

10https://github.com/ycookjp/ 

11 

12''' 

13 

14class MyClass(object): 

15 '''Example class. 

16  

17 Coding style, comment , etc examples. 

18 ''' 

19 

20 

21 def __init__(self, param1): 

22 '''Constructor. 

23  

24 Construct MyClass. 

25  

26 :param: param1: parameter one 

27 ''' 

28 

29 

30 publicAttribute = 'default value' 

31 '''This is a public attribute.''' 

32 

33 

34 _priateAttribute = 'default value' 

35 '''This is a private attribute.''' 

36 

37 

38 def publicMethod(self, arg1): 

39 '''Public method. 

40  

41 This is a public method. 

42  

43 :param: arg1: public method arg1 

44 :return: returns arg1. 

45 ''' 

46 

47 pass 

48 return arg1 

49 

50 def _privateMethod(self, arg1): 

51 '''Private method. 

52  

53 This is a private method. 

54  

55 :param: arg1: private method arg1 

56 :return: returns arg1. 

57 ''' 

58 

59 pass 

60 return arg1 

61