Skip to content

Commit

Permalink
restrict phpunit coverage to Path class
Browse files Browse the repository at this point in the history
  • Loading branch information
olinox14 committed Mar 17, 2024
1 parent c4a7313 commit 0dea629
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 140 deletions.
142 changes: 3 additions & 139 deletions build/logs/clover.xml
Original file line number Diff line number Diff line change
@@ -1,142 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1710708690">
<project timestamp="1710708690">
<file name="/path/src/BuiltinProxy.php">
<class name="Path\BuiltinProxy" namespace="global">
<metrics complexity="49" methods="48" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="52" coveredstatements="0" elements="100" coveredelements="0"/>
</class>
<line num="15" type="method" name="date" visibility="public" complexity="1" crap="2" count="0"/>
<line num="17" type="stmt" count="0"/>
<line num="20" type="method" name="is_dir" visibility="public" complexity="1" crap="2" count="0"/>
<line num="22" type="stmt" count="0"/>
<line num="25" type="method" name="is_file" visibility="public" complexity="1" crap="2" count="0"/>
<line num="27" type="stmt" count="0"/>
<line num="30" type="method" name="file_exists" visibility="public" complexity="1" crap="2" count="0"/>
<line num="32" type="stmt" count="0"/>
<line num="35" type="method" name="pathinfo" visibility="public" complexity="1" crap="2" count="0"/>
<line num="40" type="stmt" count="0"/>
<line num="43" type="method" name="opendir" visibility="public" complexity="1" crap="2" count="0"/>
<line num="45" type="stmt" count="0"/>
<line num="48" type="method" name="mkdir" visibility="public" complexity="1" crap="2" count="0"/>
<line num="50" type="stmt" count="0"/>
<line num="53" type="method" name="readdir" visibility="public" complexity="1" crap="2" count="0"/>
<line num="55" type="stmt" count="0"/>
<line num="58" type="method" name="readlink" visibility="public" complexity="1" crap="2" count="0"/>
<line num="60" type="stmt" count="0"/>
<line num="63" type="method" name="copy" visibility="public" complexity="1" crap="2" count="0"/>
<line num="65" type="stmt" count="0"/>
<line num="68" type="method" name="closedir" visibility="public" complexity="1" crap="2" count="0"/>
<line num="70" type="stmt" count="0"/>
<line num="73" type="method" name="scandir" visibility="public" complexity="1" crap="2" count="0"/>
<line num="75" type="stmt" count="0"/>
<line num="78" type="method" name="unlink" visibility="public" complexity="1" crap="2" count="0"/>
<line num="80" type="stmt" count="0"/>
<line num="83" type="method" name="rmdir" visibility="public" complexity="1" crap="2" count="0"/>
<line num="85" type="stmt" count="0"/>
<line num="88" type="method" name="realpath" visibility="public" complexity="1" crap="2" count="0"/>
<line num="90" type="stmt" count="0"/>
<line num="93" type="method" name="is_readable" visibility="public" complexity="1" crap="2" count="0"/>
<line num="95" type="stmt" count="0"/>
<line num="98" type="method" name="is_writable" visibility="public" complexity="1" crap="2" count="0"/>
<line num="100" type="stmt" count="0"/>
<line num="103" type="method" name="is_executable" visibility="public" complexity="1" crap="2" count="0"/>
<line num="105" type="stmt" count="0"/>
<line num="108" type="method" name="is_link" visibility="public" complexity="1" crap="2" count="0"/>
<line num="110" type="stmt" count="0"/>
<line num="113" type="method" name="fileatime" visibility="public" complexity="1" crap="2" count="0"/>
<line num="115" type="stmt" count="0"/>
<line num="118" type="method" name="filectime" visibility="public" complexity="1" crap="2" count="0"/>
<line num="120" type="stmt" count="0"/>
<line num="123" type="method" name="filemtime" visibility="public" complexity="1" crap="2" count="0"/>
<line num="125" type="stmt" count="0"/>
<line num="128" type="method" name="chdir" visibility="public" complexity="1" crap="2" count="0"/>
<line num="130" type="stmt" count="0"/>
<line num="133" type="method" name="rename" visibility="public" complexity="1" crap="2" count="0"/>
<line num="135" type="stmt" count="0"/>
<line num="138" type="method" name="touch" visibility="public" complexity="1" crap="2" count="0"/>
<line num="140" type="stmt" count="0"/>
<line num="143" type="method" name="filesize" visibility="public" complexity="1" crap="2" count="0"/>
<line num="145" type="stmt" count="0"/>
<line num="148" type="method" name="dirname" visibility="public" complexity="1" crap="2" count="0"/>
<line num="150" type="stmt" count="0"/>
<line num="153" type="method" name="fnmatch" visibility="public" complexity="1" crap="2" count="0"/>
<line num="155" type="stmt" count="0"/>
<line num="158" type="method" name="file_get_contents" visibility="public" complexity="1" crap="2" count="0"/>
<line num="160" type="stmt" count="0"/>
<line num="163" type="method" name="file_put_contents" visibility="public" complexity="1" crap="2" count="0"/>
<line num="165" type="stmt" count="0"/>
<line num="168" type="method" name="fileperms" visibility="public" complexity="1" crap="2" count="0"/>
<line num="170" type="stmt" count="0"/>
<line num="173" type="method" name="clearstatcache" visibility="public" complexity="1" crap="2" count="0"/>
<line num="175" type="stmt" count="0"/>
<line num="178" type="method" name="chmod" visibility="public" complexity="1" crap="2" count="0"/>
<line num="180" type="stmt" count="0"/>
<line num="183" type="method" name="chown" visibility="public" complexity="1" crap="2" count="0"/>
<line num="185" type="stmt" count="0"/>
<line num="188" type="method" name="chgrp" visibility="public" complexity="1" crap="2" count="0"/>
<line num="190" type="stmt" count="0"/>
<line num="193" type="method" name="chroot" visibility="public" complexity="1" crap="2" count="0"/>
<line num="195" type="stmt" count="0"/>
<line num="198" type="method" name="glob" visibility="public" complexity="1" crap="2" count="0"/>
<line num="200" type="stmt" count="0"/>
<line num="203" type="method" name="hash_file" visibility="public" complexity="1" crap="2" count="0"/>
<line num="205" type="stmt" count="0"/>
<line num="208" type="method" name="fopen" visibility="public" complexity="1" crap="2" count="0"/>
<line num="210" type="stmt" count="0"/>
<line num="213" type="method" name="fclose" visibility="public" complexity="1" crap="2" count="0"/>
<line num="215" type="stmt" count="0"/>
<line num="218" type="method" name="feof" visibility="public" complexity="1" crap="2" count="0"/>
<line num="220" type="stmt" count="0"/>
<line num="223" type="method" name="fread" visibility="public" complexity="1" crap="2" count="0"/>
<line num="225" type="stmt" count="0"/>
<line num="228" type="method" name="link" visibility="public" complexity="1" crap="2" count="0"/>
<line num="230" type="stmt" count="0"/>
<line num="233" type="method" name="symlink" visibility="public" complexity="1" crap="2" count="0"/>
<line num="235" type="stmt" count="0"/>
<line num="238" type="method" name="lstat" visibility="public" complexity="1" crap="2" count="0"/>
<line num="240" type="stmt" count="0"/>
<line num="243" type="method" name="getenv" visibility="public" complexity="1" crap="2" count="0"/>
<line num="245" type="stmt" count="0"/>
<line num="248" type="method" name="getRecursiveIterator" visibility="public" complexity="2" crap="6" count="0"/>
<line num="250" type="stmt" count="0"/>
<line num="251" type="stmt" count="0"/>
<line num="252" type="stmt" count="0"/>
<line num="254" type="stmt" count="0"/>
<line num="255" type="stmt" count="0"/>
<line num="259" type="method" name="disk_free_space" visibility="public" complexity="1" crap="2" count="0"/>
<line num="261" type="stmt" count="0"/>
<metrics loc="264" ncloc="260" classes="1" methods="48" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="52" coveredstatements="0" elements="100" coveredelements="0"/>
</file>
<file name="/path/src/Exception/FileExistsException.php">
<class name="Path\Exception\FileExistsException" namespace="global">
<metrics complexity="2" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="1" elements="4" coveredelements="2"/>
</class>
<line num="7" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="7"/>
<line num="9" type="stmt" count="7"/>
<line num="12" type="method" name="__toString" visibility="public" complexity="1" crap="2" count="0"/>
<line num="14" type="stmt" count="0"/>
<metrics loc="16" ncloc="16" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="1" elements="4" coveredelements="2"/>
</file>
<file name="/path/src/Exception/FileNotFoundException.php">
<class name="Path\Exception\FileNotFoundException" namespace="global">
<metrics complexity="2" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="1" elements="4" coveredelements="2"/>
</class>
<line num="7" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="27"/>
<line num="9" type="stmt" count="27"/>
<line num="12" type="method" name="__toString" visibility="public" complexity="1" crap="2" count="0"/>
<line num="14" type="stmt" count="0"/>
<metrics loc="16" ncloc="16" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="1" elements="4" coveredelements="2"/>
</file>
<file name="/path/src/Exception/IOException.php">
<class name="Path\Exception\IOException" namespace="global">
<metrics complexity="2" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="1" elements="4" coveredelements="2"/>
</class>
<line num="7" type="method" name="__construct" visibility="public" complexity="1" crap="1" count="32"/>
<line num="9" type="stmt" count="32"/>
<line num="12" type="method" name="__toString" visibility="public" complexity="1" crap="2" count="0"/>
<line num="14" type="stmt" count="0"/>
<metrics loc="16" ncloc="16" classes="1" methods="2" coveredmethods="1" conditionals="0" coveredconditionals="0" statements="2" coveredstatements="1" elements="4" coveredelements="2"/>
</file>
<coverage generated="1710708880">
<project timestamp="1710708880">
<file name="/path/src/Path.php">
<class name="Path\Path" namespace="global">
<metrics complexity="187" methods="70" coveredmethods="69" conditionals="0" coveredconditionals="0" statements="356" coveredstatements="354" elements="426" coveredelements="423"/>
Expand Down Expand Up @@ -569,6 +433,6 @@
<line num="1348" type="stmt" count="1"/>
<metrics loc="1350" ncloc="861" classes="1" methods="70" coveredmethods="69" conditionals="0" coveredconditionals="0" statements="356" coveredstatements="354" elements="426" coveredelements="423"/>
</file>
<metrics files="5" loc="1662" ncloc="1169" classes="5" methods="124" coveredmethods="72" conditionals="0" coveredconditionals="0" statements="414" coveredstatements="357" elements="538" coveredelements="429"/>
<metrics files="1" loc="1350" ncloc="861" classes="1" methods="70" coveredmethods="69" conditionals="0" coveredconditionals="0" statements="356" coveredstatements="354" elements="426" coveredelements="423"/>
</project>
</coverage>
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
<directory suffix=".php">src/Path.php</directory>
</include>
<report>
<html outputDirectory="./coverage" lowUpperBound="35" highLowerBound="70"/>
Expand Down

0 comments on commit 0dea629

Please sign in to comment.