github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/install/install_darwin_test.go (about) 1 // Copyright 2015 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 4 //go:build darwin 5 // +build darwin 6 7 package install 8 9 import ( 10 "testing" 11 12 "github.com/blang/semver" 13 "github.com/stretchr/testify/require" 14 ) 15 16 func TestOSVersion(t *testing.T) { 17 ver, err := OSVersion() 18 require.NoError(t, err) 19 t.Logf("Version: %s", ver) 20 require.True(t, ver.GTE(semver.MustParse("10.0.0"))) 21 }