| Conditions | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 0 | ||
| 1 | #!/usr/bin/python |
||
| 13 | 1 | def __init__(self, success: bool, checked_time: [float, int] = time(), items: List[Item] = None) -> None: |
|
| 14 | """Initializing function |
||
| 15 | |||
| 16 | :type success: |
||
| 17 | :type checked_time: |
||
| 18 | :type items: |
||
| 19 | """ |
||
| 20 | 1 | self._success = success |
|
| 21 | 1 | self._time = int(checked_time) |
|
| 22 | |||
| 23 | 1 | if items: |
|
| 24 | self._items = items |
||
| 25 | else: |
||
| 26 | 1 | self._items = [] |
|
| 27 | |||
| 69 |