MCPcopy
hub / github.com/httprunner/httprunner / Extensions

Method Extensions

hrp/pkg/convert/main.go:57–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (fromType FromType) Extensions() []string {
58 switch fromType {
59 case FromTypeYAML:
60 return []string{suffixYAML, ".yml"}
61 case FromTypeHAR:
62 return []string{suffixHAR}
63 case FromTypePostman, FromTypeSwagger:
64 return []string{suffixJSON}
65 case FromTypeCurl:
66 return []string{".txt", ".curl"}
67 case FromTypeGotest:
68 return []string{suffixGoTest}
69 case FromTypePyest:
70 return []string{suffixPyTest}
71 default:
72 return []string{suffixJSON}
73 }
74}
75
76type OutputType int
77

Callers 1

convert.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected