15 lines
285 B
Go
15 lines
285 B
Go
|
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"))
|
||
|
}
|