2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 02:07:18 +08:00
Files
panel/pkg/tools/os_test.go
2023-11-20 22:24:15 +08:00

31 lines
450 B
Go

package tools
import (
"testing"
"github.com/goravel/framework/support/env"
"github.com/stretchr/testify/suite"
)
type OSHelperTestSuite struct {
suite.Suite
}
func TestOSHelperTestSuite(t *testing.T) {
suite.Run(t, &OSHelperTestSuite{})
}
func (s *OSHelperTestSuite) TestIsDebian() {
if env.IsWindows() {
return
}
s.True(IsDebian())
}
func (s *OSHelperTestSuite) TestIsRHEL() {
if env.IsWindows() {
return
}
s.False(IsRHEL())
}