mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-06 20:32:44 +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 YAML case
|
|
func (c *TCaseConverter) toYAML() (string, error) {
|
|
yamlPath := c.genOutputPath(suffixYAML)
|
|
err := builtin.Dump2YAML(c.tCase, yamlPath)
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return yamlPath, nil
|
|
}
|