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