mirror of
https://github.com/foss42/apidash.git
synced 2025-05-24 01:36:46 +08:00
Added tests for go_http_codegen
This commit is contained in:
@ -33,7 +33,7 @@ func main() {
|
|||||||
""";
|
""";
|
||||||
|
|
||||||
String kTemplateRawBody = """
|
String kTemplateRawBody = """
|
||||||
{% if body %}body := strings.NewReader(`{{body}}`){% endif %}
|
{% if body %}body := bytes.NewBuffer([]byte(`{{body}}`)){% endif %}
|
||||||
|
|
||||||
""";
|
""";
|
||||||
|
|
||||||
@ -108,8 +108,7 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Println(string(res))
|
fmt.Println(string(res))
|
||||||
}
|
}""";
|
||||||
""";
|
|
||||||
|
|
||||||
String? getCode(
|
String? getCode(
|
||||||
RequestModel requestModel,
|
RequestModel requestModel,
|
||||||
|
1267
test/codegen/go_http_codegen_test.dart
Normal file
1267
test/codegen/go_http_codegen_test.dart
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user