You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package detect_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/analogj/scrutiny/collector/pkg/detect"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestDevicePrefix(t *testing.T) {
|
|
|
|
//setup
|
|
|
|
|
|
|
|
//test
|
|
|
|
|
|
|
|
//assert
|
|
|
|
require.Equal(t, "/dev/", detect.DevicePrefix())
|
|
|
|
}
|