|
package fingerprint
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestBridgeFingerprint_checkKMod(t *testing.T) {
|
|
require := require.New(t)
|
|
f := &BridgeFingerprint{}
|
|
require.NoError(f.checkKMod("ip_tables"))
|
|
require.Error(f.checkKMod("nonexistentmodule"))
|
|
}
|