refactor: move ReadFile to hrp/loader

This commit is contained in:
lilong.129
2024-08-19 22:54:27 +08:00
parent 98ce2cc818
commit 9efbd04055
3 changed files with 20 additions and 23 deletions
+1 -3
View File
@@ -6,8 +6,6 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/httprunner/httprunner/v4/hrp/internal/builtin"
)
func TestRun(t *testing.T) {
@@ -22,7 +20,7 @@ func TestRun(t *testing.T) {
t.Fatal()
}
contentBytes, err := builtin.ReadFile(genDebugTalkPyPath)
contentBytes, err := readFile(genDebugTalkPyPath)
if !assert.Nil(t, err) {
t.Fatal()
}