mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-07 06:12:43 +08:00
14 lines
309 B
Go
14 lines
309 B
Go
package convert
|
|
|
|
import "github.com/httprunner/httprunner/v5/internal/builtin"
|
|
|
|
// convert TCase to JSON case
|
|
func (c *TCaseConverter) toJSON() (string, error) {
|
|
jsonPath := c.genOutputPath(suffixJSON)
|
|
err := builtin.Dump2JSON(c.tCase, jsonPath)
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return jsonPath, nil
|
|
}
|