Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Mock/Fake network fileshare for my new modules Test Suite

by Anonymous Monk
on Aug 27, 2014 at 12:01 UTC ( [id://1098725]=note: print w/replies, xml ) Need Help??


in reply to Re: Mock/Fake network fileshare for my new modules Test Suite
in thread Mock/Fake network fileshare for my new modules Test Suite

Here's a PerlMonks post in which Athanasius shows how a class can overload -X operations performed on itself (that would require that you use this class for all -s calls). According to this StackOverflow post, overriding the file test operators isn't directly possible. stat can be mocked, but I haven't yet found out if it's possible to affect -X.

Replies are listed 'Best First'.
Re^3: Mock/Fake network fileshare for my new modules Test Suite
by DrHyde (Prior) on Aug 28, 2014 at 15:38 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098725]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-25 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found