Re: Mock::Socket and the Essentials of Testing libnet

2001-10-20 Thread chromatic
In article <20011021000950.I588@blackrider>, "Michael G Schwern" <[EMAIL PROTECTED]> wrote: > For libnet it happens to work out that the untestable part (the network > connection) is incidental. The testable part (the protocol) is essential. > That's the sweet spot. If we can seperate the net c

Mock::Socket and the Essentials of Testing libnet

2001-10-20 Thread Michael G Schwern
When looking at something that's going to prove nasty to test, you can apply the same criteria as Holmes: Once we remove the untestable, what remains, however difficult, must be testable. What's the problem with testing libnet? The network connection. We can't guarantee that the machine will ha