mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 14:57:16 +08:00
refactor: 重构 tools.Read 函数
This commit is contained in:
@@ -35,7 +35,9 @@ func (s *SystemHelperTestSuite) TestRead() {
|
||||
err := os.WriteFile(filePath, []byte("test data"), 0644)
|
||||
s.Nil(err)
|
||||
|
||||
s.Equal("test data", Read(filePath))
|
||||
data, err := Read(filePath)
|
||||
s.Nil(err)
|
||||
s.Equal("test data", data)
|
||||
}
|
||||
|
||||
func (s *SystemHelperTestSuite) TestRemove() {
|
||||
|
||||
Reference in New Issue
Block a user