<?xml version="1.0" encoding="windows-1252"?>
<node id="480997" title="Re^3: When test-driven development just won't do" created="2005-08-04 15:27:14" updated="2005-08-11 10:12:48">
<type id="11">
note</type>
<author id="268515">
xdg</author>
<data>
<field name="doctext">
&lt;p&gt;You're absolutely right -- I wasn't intending to suggest it as a replacement for can_ok.  I should have been clear that it's an example for when you want to see if code exists and is &lt;b&gt;not&lt;/b&gt; inherited from a superclass (which is what I had needed to check at the time).  Doesn't help identify when other modules have exported a function in, or for stuff handled with AUTOLOAD, or installed later, etc.  All goes back to my point of needing clarity around what the actual question in before one knows how to write the test.
&lt;/p&gt;

&lt;div class="pmsig"&gt;&lt;div class="pmsig-268515"&gt;
&lt;p&gt;-xdg&lt;/p&gt;
&lt;p&gt;&lt;small&gt;&lt;i&gt;Code written by xdg and posted on PerlMonks is &lt;a href="http://creativecommons.org/licenses/publicdomain"&gt;public domain&lt;/a&gt;. It is provided &lt;b&gt;as is&lt;/b&gt; with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.&lt;/i&gt;&lt;/small&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
480680</field>
<field name="parent_node">
480984</field>
</data>
</node>
