mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 18:27:13 +08:00
31 lines
450 B
Go
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())
|
|
}
|