Skip to content

Commit

Permalink
IO::Path filetests do not cache results refs #2632
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Apr 10, 2020
1 parent 920e385 commit d493957
Show file tree
Hide file tree
Showing 2 changed files with 188 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/Type/IO/Path.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,8 @@ my $perl-files = gather while @stack {
For most file tests, you can do a smartmatch C<~~> or you can call a method.
You don't need to actually open a filehandle in the traditional way (although
you can) to do a filetest. You can simply append C<.IO> to the filename. For
you can) to do a filetest. You can simply append C<.IO> to the filename and
smartmatch it to a test adverb. For
instance, here is how to check whether a file is readable using smartmatch:
'/path/to/file'.IO ~~ :r;
Expand All @@ -589,6 +590,8 @@ File tests include:
=item C<:x> (L«Executable|/type/IO::Path#method_x»)
=item C<:z> (L«Zero size|/type/IO::Path#method_z»)
These tests will not cache the results of earlier test executions.
L«Smartmatching on Pairs|/type/Pair#method_ACCEPTS» can be used to perform
multiple tests at once:
Expand Down
184 changes: 184 additions & 0 deletions p6doc.iml
Original file line number Diff line number Diff line change
Expand Up @@ -927,5 +927,189 @@
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="JSON::Unmarshal" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:JSON::Unmarshal!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="Pod::To::BigPage:ver&lt;0.5.1+&gt;" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:Pod::To::BigPage:ver&lt;0.5.1+&gt;!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="JSON::Marshal" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:JSON::Marshal!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="File::Directory::Tree" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:File::Directory::Tree!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="JSON::Class:ver&lt;0.0.5+&gt;" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:JSON::Class:ver&lt;0.0.5+&gt;!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="MIME::Base64" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:MIME::Base64!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="META6" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:META6!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="URI" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:URI!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="JSON::Name" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:JSON::Name!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="LWP::Simple" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:LWP::Simple!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="Template::Mustache" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:Template::Mustache!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="License::SPDX" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:License::SPDX!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="OO::Monitors" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:OO::Monitors!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="File::Find" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:File::Find!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="Pod::Utilities" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:Pod::Utilities!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="Test" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:Test!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="Test::META" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:Test::META!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="Pod::Load:ver&lt;0.4.0+&gt;" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:Pod::Load:ver&lt;0.4.0+&gt;!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="JSON::Class" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:JSON::Class!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="File::Temp" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:File::Temp!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="Perl6::TypeGraph" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:Perl6::TypeGraph!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="JSON::Fast" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:JSON::Fast!/" />
</SOURCES>
</library>
</orderEntry>
<orderEntry type="module-library">
<library name="Pod::To::HTML:ver&lt;0.6.1+&gt;" type="perl6">
<CLASSES />
<SOURCES>
<root url="raku://448590579:Pod::To::HTML:ver&lt;0.6.1+&gt;!/" />
</SOURCES>
</library>
</orderEntry>
</component>
</module>

0 comments on commit d493957

Please sign in to comment.