(text)
| 3 | |
| 4 | |
| 5 | def get_major_minor_patch(text): |
| 6 | for line in text.splitlines(): |
| 7 | if line.startswith('#define NODE_MAJOR_VERSION'): |
| 8 | major = line.split()[2] |
| 9 | elif line.startswith('#define NODE_MINOR_VERSION'): |
| 10 | minor = line.split()[2] |
| 11 | elif line.startswith('#define NODE_PATCH_VERSION'): |
| 12 | patch = line.split()[2] |
| 13 | return major, minor, patch |
| 14 | |
| 15 | |
| 16 | node_version_h = os.path.join(os.path.dirname(__file__), |
no test coverage detected
searching dependent graphs…