| Conditions | 6 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 18 |
| Ratio | 100 % |
| Tests | 1 |
| CRAP Score | 34.317 |
| Changes | 0 | ||
| 1 | #! /usr/bin/env python3 |
||
| 18 | marvinMorning |
||
| 19 | ] |
||
| 20 | |||
| 21 | |||
| 22 | 1 | def marvinMorning(row): |
|
| 23 | """ |
||
| 24 | Marvin says Good morning after someone else says it |
||
| 25 | """ |
||
| 26 | 1 | msg = None |
|
| 27 | 1 | phrases = [ |
|
| 28 | "morgon", |
||
| 29 | "godmorgon", |
||
| 30 | "god morgon", |
||
| 31 | "morrn", |
||
| 32 | "morn" |
||
| 33 | ] |
||
| 34 | |||
| 35 | 1 | morning_phrases = [ |
|
| 36 | "Godmorgon! :-)", |
||
| 51 |