ToTestCase loads testcase path and convert to *TestCase
()
| 78 | |
| 79 | // ToTestCase loads testcase path and convert to *TestCase |
| 80 | func (path *TestCasePath) ToTestCase() (*TestCase, error) { |
| 81 | tc := &TCase{} |
| 82 | casePath := path.GetPath() |
| 83 | err := builtin.LoadFile(casePath, tc) |
| 84 | if err != nil { |
| 85 | return nil, err |
| 86 | } |
| 87 | return tc.ToTestCase(casePath) |
| 88 | } |
| 89 | |
| 90 | // TCase represents testcase data structure. |
| 91 | // Each testcase includes one public config and several sequential teststeps. |
nothing calls this directly
no test coverage detected