snapweb
snapweb copied to clipboard
Mock netfilter tests
Current netfilter go tests are using real device network interfaces. That is not what is supposed to be, as they should be unit tests independent of any network status. The solution is using helper methods for network interfaces operations, able to be mocked when testing.
NOTE: Prerequisite branch (https://github.com/snapcore/snapweb/pull/231) must be landed before this one.