mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 03:07:20 +08:00
24 lines
335 B
Go
24 lines
335 B
Go
package os
|
|
|
|
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())
|
|
}
|