Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Mock Objects

by mstone (Deacon)
on Apr 11, 2002 at 21:40 UTC ( #158431=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        pointer: a value that refers to another object
        non-null-pointer:  a pointer whose value is not zero
    ...
    
        boolean strcmp (nnsp a, nnsp b):  takes two non-null 
            string pointers and returns TRUE if the strings are equal
    
  2. or download this
        sp x, y;
        boolean b;
    
        b = strcmp (x,y);
    
  3. or download this
        create a data structure filled with default values 
            known to conform to the required assertions.
    ...
        }
        ##  at this point, we can assume that the structure conforms
        ##  to the assertions, whether the input was valid or not
    
  4. or download this
        %templates = (
            1 => "template one: data = #DATA#",
    ...
            $t =~ s/#DATA#/$d/;
            print $t, "\n";
        }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (15)
As of 2015-07-06 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (81 votes), past polls