(text)
| 6 | } |
| 7 | |
| 8 | function countDecisionPoints(text) { |
| 9 | return ( |
| 10 | countMatches(text, /\bif\b/g) + |
| 11 | countMatches(text, /\belif\b/g) + |
| 12 | countMatches(text, /\bfor\b/g) + |
| 13 | countMatches(text, /\bwhile\b/g) + |
| 14 | countMatches(text, /\bexcept\b/g) + |
| 15 | countMatches(text, /\band\b/g) + |
| 16 | countMatches(text, /\bor\b/g) |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | function detectFunctions(lines) { |
| 21 | const functions = []; |
no test coverage detected