fleet/server/fleet/operating_systems_test.go
Juan Fernandez d08cc18111
Don't analyze non-windows OS using the MSRC scanner (#12421)
Don't analyze non-windows OS using the MSRC scanner
2023-06-21 14:19:55 -04:00

23 lines
422 B
Go

package fleet
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestOperatingSystemIsWindows(t *testing.T) {
testCases := []struct {
platform string
isWindows bool
}{
{platform: "chrome"},
{platform: "darwin"},
{platform: "windows", isWindows: true},
}
for _, tc := range testCases {
sut := OperatingSystem{Platform: tc.platform}
require.Equal(t, tc.isWindows, sut.IsWindows())
}
}