refactor: TestCase, TSteps -> Steps

This commit is contained in:
lilong.129
2024-08-19 21:44:20 +08:00
parent 50230adb54
commit a9b864dc96
13 changed files with 66 additions and 65 deletions

View File

@@ -10,10 +10,11 @@ import (
"github.com/rs/zerolog/log"
)
func LoadTestCases(iTestCases ...ITestCase) ([]*TestCase, error) {
// LoadTestCases load testcases from TestCasePath or TestCase
func LoadTestCases(tests ...ITestCase) ([]*TestCase, error) {
testCases := make([]*TestCase, 0)
for _, iTestCase := range iTestCases {
for _, iTestCase := range tests {
if testcase, ok := iTestCase.(*TestCase); ok {
testCases = append(testCases, testcase)
continue