It sounds like your code performs some Session Management and uses IO::Interface to interface down into the Network Layer. Now if your testing relies on whatever Network Layer is default on the machine then you don't have real independance. Since a given machine has a limited and maybe fixed set of interfaces you also have no way to ensure coverage in you detection code.
The solution is to provide interface stubs to be used for testing. Eth0, tu0 et. al. could then be written to provide system indepent behavior and also suitable edge cases.
In reply to Re: IO::Interface and System-dependent Testing
by starbolin
in thread IO::Interface and System-dependent Testing
by moot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |