Coverage for mypackage / MyClass.py: 0%
12 statements
« prev ^ index » next coverage.py v7.13.0, created at 2025-12-21 13:48 +0900
« prev ^ index » next coverage.py v7.13.0, created at 2025-12-21 13:48 +0900
1# -*- coding: utf-8 -*-
3'''Example module.
5This module defines Example class.
6Created on 2019/12/08
9Copyright ycookjp
10https://github.com/ycookjp/
12'''
14class MyClass(object):
15 '''Example class.
17 Coding style, comment , etc examples.
18 '''
21 def __init__(self, param1):
22 '''Constructor.
24 Construct MyClass.
26 :param: param1: parameter one
27 '''
30 publicAttribute = 'default value'
31 '''This is a public attribute.'''
34 _priateAttribute = 'default value'
35 '''This is a private attribute.'''
38 def publicMethod(self, arg1):
39 '''Public method.
41 This is a public method.
43 :param: arg1: public method arg1
44 :return: returns arg1.
45 '''
47 pass
48 return arg1
50 def _privateMethod(self, arg1):
51 '''Private method.
53 This is a private method.
55 :param: arg1: private method arg1
56 :return: returns arg1.
57 '''
59 pass
60 return arg1