change: update docs

This commit is contained in:
debugtalk
2022-06-27 16:56:10 +08:00
parent e816f8cb5f
commit d2c80cd2b7
17 changed files with 15 additions and 19 deletions

View File

@@ -62,14 +62,13 @@ func Run(outputType OutputType, outputDir, profilePath string, args []string) {
// loads source file and convert to TCase format
tCase, err := LoadTCase(path)
if err != nil {
log.Warn().Err(err).Str("path", path).Msg("construct case loader failed")
log.Warn().Err(err).Str("path", path).Msg("convert source file failed")
continue
}
caseConverter := &TCaseConverter{
SourcePath: path,
OutputDir: outputDir,
OutputType: outputType,
TCase: tCase,
}
@@ -165,7 +164,6 @@ func LoadTCase(path string) (*hrp.TCase, error) {
type TCaseConverter struct {
SourcePath string
OutputDir string
OutputType OutputType
TCase *hrp.TCase
}

View File

@@ -20,7 +20,6 @@ func LoadJSONCase(path string) (*hrp.TCase, error) {
return nil, errors.New("invalid json file")
}
// convert json case to TCase
err = caseJSON.MakeCompat()
if err != nil {
return nil, err

View File

@@ -21,6 +21,6 @@ func LoadSwaggerCase(path string) (*hrp.TCase, error) {
return nil, errors.New("invalid swagger file")
}
// convert swagger to TCase
// TODO: convert swagger to TCase
return nil, nil
}

View File

@@ -20,7 +20,6 @@ func NewYAMLCase(path string) (*hrp.TCase, error) {
return nil, errors.New("invalid yaml file")
}
// convert json case to TCase
err = caseJSON.MakeCompat()
if err != nil {
return nil, err