mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 18:27:13 +08:00
28 lines
401 B
Go
28 lines
401 B
Go
package tools
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
)
|
|
|
|
type OSHelperTestSuite struct {
|
|
suite.Suite
|
|
}
|
|
|
|
func TestOSHelperTestSuite(t *testing.T) {
|
|
suite.Run(t, &OSHelperTestSuite{})
|
|
}
|
|
|
|
func (s *OSHelperTestSuite) TestIsDebian() {
|
|
s.True(IsDebian())
|
|
}
|
|
|
|
func (s *OSHelperTestSuite) TestIsRHEL() {
|
|
s.False(IsRHEL())
|
|
}
|
|
|
|
func (s *OSHelperTestSuite) TestIsArm() {
|
|
s.False(IsArm())
|
|
}
|