Skip to content

Commit adb99e4

Browse files
authored
Can not test alternative architectures and OSes, so exclude from code coverage
1 parent 42817fc commit adb99e4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Installer.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ public static function getBinaryFilename()
2222
// Defaults
2323
$osString = 'linux';
2424
$architecture = 'amd64';
25-
25+
26+
// We can not test alternative architectures and operating systems, so exclude from code coverage.
27+
// @codeCoverageIgnoreStart
28+
2629
// Switch architecture if needed
2730
if (2147483647 == PHP_INT_MAX) {
2831
$architecture = '386';
@@ -37,6 +40,8 @@ public static function getBinaryFilename()
3740
$osString = 'windows';
3841
break;
3942
}
43+
44+
// @codeCoverageIgnoreEnd
4045

4146
return sprintf('json2hcl_v%s_%s_%s', self::JSON2HCL_VERSION, $osString, $architecture);
4247
}

0 commit comments

Comments
 (0)