You might be interested in this node, where I discuss some tests I wrote that do exactly that :-)
In reply to Re^2: Documenting Methods/Subs by adrianh in thread Documenting Methods/Subs by vek