diff --git a/modules/openapi-generator/src/main/resources/perl/api_test.mustache b/modules/openapi-generator/src/main/resources/perl/api_test.mustache index 214c3d03039c..d055ddb653d9 100644 --- a/modules/openapi-generator/src/main/resources/perl/api_test.mustache +++ b/modules/openapi-generator/src/main/resources/perl/api_test.mustache @@ -4,7 +4,7 @@ # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -29,3 +29,5 @@ isa_ok($api, '{{moduleName}}::{{classname}}'); {{/operation}} {{/operations}} + +done_testing(); diff --git a/modules/openapi-generator/src/main/resources/perl/object_test.mustache b/modules/openapi-generator/src/main/resources/perl/object_test.mustache index 394d3daa3337..71328bab5af4 100644 --- a/modules/openapi-generator/src/main/resources/perl/object_test.mustache +++ b/modules/openapi-generator/src/main/resources/perl/object_test.mustache @@ -4,7 +4,7 @@ # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -23,3 +23,5 @@ use_ok('{{moduleName}}::Object::{{classname}}'); {{/model}} {{/models}} + +done_testing(); diff --git a/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t b/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t index 50c86cef1d36..e070bdb5a33b 100644 --- a/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t +++ b/samples/client/petstore/perl/t/AdditionalPropertiesClassTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::AdditionalPropertiesClass'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::AdditionalPropertiesClass'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/AllOfWithSingleRefTest.t b/samples/client/petstore/perl/t/AllOfWithSingleRefTest.t index af22084b9639..57a3d195844e 100644 --- a/samples/client/petstore/perl/t/AllOfWithSingleRefTest.t +++ b/samples/client/petstore/perl/t/AllOfWithSingleRefTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::AllOfWithSingleRef'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::AllOfWithSingleRef'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/AnimalTest.t b/samples/client/petstore/perl/t/AnimalTest.t index da13cadf9d62..18cab8c463ea 100644 --- a/samples/client/petstore/perl/t/AnimalTest.t +++ b/samples/client/petstore/perl/t/AnimalTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Animal'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Animal'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/AnotherFakeApiTest.t b/samples/client/petstore/perl/t/AnotherFakeApiTest.t index 8efef9baceed..3ae9b65b77a3 100644 --- a/samples/client/petstore/perl/t/AnotherFakeApiTest.t +++ b/samples/client/petstore/perl/t/AnotherFakeApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -36,3 +36,5 @@ isa_ok($api, 'WWW::OpenAPIClient::AnotherFakeApi'); #my $call_123_test_special_tags_client = undef; # replace NULL with a proper value #my $call_123_test_special_tags_result = $api->call_123_test_special_tags(client => $call_123_test_special_tags_client); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ApiResponseTest.t b/samples/client/petstore/perl/t/ApiResponseTest.t index ba9e4fc212b6..c829836d8ee9 100644 --- a/samples/client/petstore/perl/t/ApiResponseTest.t +++ b/samples/client/petstore/perl/t/ApiResponseTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ApiResponse'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ApiResponse'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t b/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t index 80ea0374e832..e0bd8ea4d8bb 100644 --- a/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t +++ b/samples/client/petstore/perl/t/ArrayOfArrayOfNumberOnlyTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ArrayOfArrayOfNumberOnly'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayOfArrayOfNumberOnly'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t b/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t index aa9c65709065..72d70684d129 100644 --- a/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t +++ b/samples/client/petstore/perl/t/ArrayOfNumberOnlyTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ArrayOfNumberOnly'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayOfNumberOnly'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ArrayTestTest.t b/samples/client/petstore/perl/t/ArrayTestTest.t index d2b1188f08ce..049602de00c6 100644 --- a/samples/client/petstore/perl/t/ArrayTestTest.t +++ b/samples/client/petstore/perl/t/ArrayTestTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ArrayTest'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ArrayTest'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/CapitalizationTest.t b/samples/client/petstore/perl/t/CapitalizationTest.t index b9809bd1aa78..72e016bc5006 100644 --- a/samples/client/petstore/perl/t/CapitalizationTest.t +++ b/samples/client/petstore/perl/t/CapitalizationTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Capitalization'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Capitalization'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/CatTest.t b/samples/client/petstore/perl/t/CatTest.t index 56df7dee63df..25f86073a471 100644 --- a/samples/client/petstore/perl/t/CatTest.t +++ b/samples/client/petstore/perl/t/CatTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Cat'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Cat'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/CategoryTest.t b/samples/client/petstore/perl/t/CategoryTest.t index bcb06e64554b..e4e949b1d9d4 100644 --- a/samples/client/petstore/perl/t/CategoryTest.t +++ b/samples/client/petstore/perl/t/CategoryTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Category'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Category'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ChildWithNullableTest.t b/samples/client/petstore/perl/t/ChildWithNullableTest.t index 2823fc4b3ccb..86e8d4352edc 100644 --- a/samples/client/petstore/perl/t/ChildWithNullableTest.t +++ b/samples/client/petstore/perl/t/ChildWithNullableTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ChildWithNullable'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ChildWithNullable'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ClassModelTest.t b/samples/client/petstore/perl/t/ClassModelTest.t index cdbae32e3ca3..6e6aa0364d95 100644 --- a/samples/client/petstore/perl/t/ClassModelTest.t +++ b/samples/client/petstore/perl/t/ClassModelTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ClassModel'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ClassModel'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ClientTest.t b/samples/client/petstore/perl/t/ClientTest.t index 6861bc971539..d46030b063c1 100644 --- a/samples/client/petstore/perl/t/ClientTest.t +++ b/samples/client/petstore/perl/t/ClientTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Client'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Client'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/DefaultApiTest.t b/samples/client/petstore/perl/t/DefaultApiTest.t index 16155a2d403a..9ff3f08a58e7 100644 --- a/samples/client/petstore/perl/t/DefaultApiTest.t +++ b/samples/client/petstore/perl/t/DefaultApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -35,3 +35,5 @@ isa_ok($api, 'WWW::OpenAPIClient::DefaultApi'); # uncomment below and update the test #my $foo_get_result = $api->foo_get(); + +done_testing(); diff --git a/samples/client/petstore/perl/t/DeprecatedModelTest.t b/samples/client/petstore/perl/t/DeprecatedModelTest.t index eae5d838bc99..f39c9912493f 100644 --- a/samples/client/petstore/perl/t/DeprecatedModelTest.t +++ b/samples/client/petstore/perl/t/DeprecatedModelTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::DeprecatedModel'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::DeprecatedModel'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/DeprecatedObjectTest.t b/samples/client/petstore/perl/t/DeprecatedObjectTest.t deleted file mode 100644 index 485a695b4bb2..000000000000 --- a/samples/client/petstore/perl/t/DeprecatedObjectTest.t +++ /dev/null @@ -1,34 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::DeprecatedObject'); - -# uncomment below and update the test -#my $instance = WWW::OpenAPIClient::Object::DeprecatedObject->new(); -# -#isa_ok($instance, 'WWW::OpenAPIClient::Object::DeprecatedObject'); - diff --git a/samples/client/petstore/perl/t/DogTest.t b/samples/client/petstore/perl/t/DogTest.t index 285ce98c7073..7f1c0785c3c0 100644 --- a/samples/client/petstore/perl/t/DogTest.t +++ b/samples/client/petstore/perl/t/DogTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Dog'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Dog'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/EnumArraysTest.t b/samples/client/petstore/perl/t/EnumArraysTest.t index 6be5ccb047b3..986587af0125 100644 --- a/samples/client/petstore/perl/t/EnumArraysTest.t +++ b/samples/client/petstore/perl/t/EnumArraysTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::EnumArrays'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumArrays'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/EnumClassTest.t b/samples/client/petstore/perl/t/EnumClassTest.t index 4e22665ef6cc..d7995647816d 100644 --- a/samples/client/petstore/perl/t/EnumClassTest.t +++ b/samples/client/petstore/perl/t/EnumClassTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::EnumClass'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumClass'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/EnumTestTest.t b/samples/client/petstore/perl/t/EnumTestTest.t index 8a84c3417d9b..22b745c32c0c 100644 --- a/samples/client/petstore/perl/t/EnumTestTest.t +++ b/samples/client/petstore/perl/t/EnumTestTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::EnumTest'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::EnumTest'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FakeApiTest.t b/samples/client/petstore/perl/t/FakeApiTest.t index 512767a782be..35d84c36f45c 100644 --- a/samples/client/petstore/perl/t/FakeApiTest.t +++ b/samples/client/petstore/perl/t/FakeApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -29,6 +29,12 @@ use_ok('WWW::OpenAPIClient::FakeApi'); my $api = WWW::OpenAPIClient::FakeApi->new(); isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); +# +# fake_big_decimal_map test +# +# uncomment below and update the test +#my $fake_big_decimal_map_result = $api->fake_big_decimal_map(); + # # fake_health_get test # @@ -79,6 +85,20 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); #my $fake_property_enum_integer_serialize_outer_object_with_enum_property = undef; # replace NULL with a proper value #my $fake_property_enum_integer_serialize_result = $api->fake_property_enum_integer_serialize(outer_object_with_enum_property => $fake_property_enum_integer_serialize_outer_object_with_enum_property); +# +# test_additional_properties_reference test +# +# uncomment below and update the test +#my $test_additional_properties_reference_request_body = undef; # replace NULL with a proper value +#my $test_additional_properties_reference_result = $api->test_additional_properties_reference(request_body => $test_additional_properties_reference_request_body); + +# +# test_body_with_binary test +# +# uncomment below and update the test +#my $test_body_with_binary_body = undef; # replace NULL with a proper value +#my $test_body_with_binary_result = $api->test_body_with_binary(body => $test_body_with_binary_body); + # # test_body_with_file_schema test # @@ -131,9 +151,10 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); #my $test_enum_parameters_enum_query_string = undef; # replace NULL with a proper value #my $test_enum_parameters_enum_query_integer = undef; # replace NULL with a proper value #my $test_enum_parameters_enum_query_double = undef; # replace NULL with a proper value +#my $test_enum_parameters_enum_query_model_array = undef; # replace NULL with a proper value #my $test_enum_parameters_enum_form_string_array = undef; # replace NULL with a proper value #my $test_enum_parameters_enum_form_string = undef; # replace NULL with a proper value -#my $test_enum_parameters_result = $api->test_enum_parameters(enum_header_string_array => $test_enum_parameters_enum_header_string_array, enum_header_string => $test_enum_parameters_enum_header_string, enum_query_string_array => $test_enum_parameters_enum_query_string_array, enum_query_string => $test_enum_parameters_enum_query_string, enum_query_integer => $test_enum_parameters_enum_query_integer, enum_query_double => $test_enum_parameters_enum_query_double, enum_form_string_array => $test_enum_parameters_enum_form_string_array, enum_form_string => $test_enum_parameters_enum_form_string); +#my $test_enum_parameters_result = $api->test_enum_parameters(enum_header_string_array => $test_enum_parameters_enum_header_string_array, enum_header_string => $test_enum_parameters_enum_header_string, enum_query_string_array => $test_enum_parameters_enum_query_string_array, enum_query_string => $test_enum_parameters_enum_query_string, enum_query_integer => $test_enum_parameters_enum_query_integer, enum_query_double => $test_enum_parameters_enum_query_double, enum_query_model_array => $test_enum_parameters_enum_query_model_array, enum_form_string_array => $test_enum_parameters_enum_form_string_array, enum_form_string => $test_enum_parameters_enum_form_string); # # test_group_parameters test @@ -154,6 +175,13 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); #my $test_inline_additional_properties_request_body = undef; # replace NULL with a proper value #my $test_inline_additional_properties_result = $api->test_inline_additional_properties(request_body => $test_inline_additional_properties_request_body); +# +# test_inline_freeform_additional_properties test +# +# uncomment below and update the test +#my $test_inline_freeform_additional_properties_test_inline_freeform_additional_properties_request = undef; # replace NULL with a proper value +#my $test_inline_freeform_additional_properties_result = $api->test_inline_freeform_additional_properties(test_inline_freeform_additional_properties_request => $test_inline_freeform_additional_properties_test_inline_freeform_additional_properties_request); + # # test_json_form_data test # @@ -162,6 +190,13 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); #my $test_json_form_data_param2 = undef; # replace NULL with a proper value #my $test_json_form_data_result = $api->test_json_form_data(param => $test_json_form_data_param, param2 => $test_json_form_data_param2); +# +# test_nullable test +# +# uncomment below and update the test +#my $test_nullable_child_with_nullable = undef; # replace NULL with a proper value +#my $test_nullable_result = $api->test_nullable(child_with_nullable => $test_nullable_child_with_nullable); + # # test_query_parameter_collection_format test # @@ -171,5 +206,9 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeApi'); #my $test_query_parameter_collection_format_http = undef; # replace NULL with a proper value #my $test_query_parameter_collection_format_url = undef; # replace NULL with a proper value #my $test_query_parameter_collection_format_context = undef; # replace NULL with a proper value -#my $test_query_parameter_collection_format_result = $api->test_query_parameter_collection_format(pipe => $test_query_parameter_collection_format_pipe, ioutil => $test_query_parameter_collection_format_ioutil, http => $test_query_parameter_collection_format_http, url => $test_query_parameter_collection_format_url, context => $test_query_parameter_collection_format_context); +#my $test_query_parameter_collection_format_allow_empty = undef; # replace NULL with a proper value +#my $test_query_parameter_collection_format_language = undef; # replace NULL with a proper value +#my $test_query_parameter_collection_format_result = $api->test_query_parameter_collection_format(pipe => $test_query_parameter_collection_format_pipe, ioutil => $test_query_parameter_collection_format_ioutil, http => $test_query_parameter_collection_format_http, url => $test_query_parameter_collection_format_url, context => $test_query_parameter_collection_format_context, allow_empty => $test_query_parameter_collection_format_allow_empty, language => $test_query_parameter_collection_format_language); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FakeBigDecimalMap200ResponseTest.t b/samples/client/petstore/perl/t/FakeBigDecimalMap200ResponseTest.t index 49fa018db703..6eaeb38b7850 100644 --- a/samples/client/petstore/perl/t/FakeBigDecimalMap200ResponseTest.t +++ b/samples/client/petstore/perl/t/FakeBigDecimalMap200ResponseTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::FakeBigDecimalMap200Response'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::FakeBigDecimalMap200Response'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t b/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t index 6bbbac594b8c..c406e3f10e12 100644 --- a/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t +++ b/samples/client/petstore/perl/t/FakeClassnameTags123ApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -36,3 +36,5 @@ isa_ok($api, 'WWW::OpenAPIClient::FakeClassnameTags123Api'); #my $test_classname_client = undef; # replace NULL with a proper value #my $test_classname_result = $api->test_classname(client => $test_classname_client); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FileSchemaTestClassTest.t b/samples/client/petstore/perl/t/FileSchemaTestClassTest.t index 040d6d955964..8d3a4ec7c16f 100644 --- a/samples/client/petstore/perl/t/FileSchemaTestClassTest.t +++ b/samples/client/petstore/perl/t/FileSchemaTestClassTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::FileSchemaTestClass'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::FileSchemaTestClass'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FileTest.t b/samples/client/petstore/perl/t/FileTest.t index 59a96f574cda..d23c43e7072d 100644 --- a/samples/client/petstore/perl/t/FileTest.t +++ b/samples/client/petstore/perl/t/FileTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::File'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::File'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FooGetDefaultResponseTest.t b/samples/client/petstore/perl/t/FooGetDefaultResponseTest.t index 407f118a09f9..1ae981b99a94 100644 --- a/samples/client/petstore/perl/t/FooGetDefaultResponseTest.t +++ b/samples/client/petstore/perl/t/FooGetDefaultResponseTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::FooGetDefaultResponse'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::FooGetDefaultResponse'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FooTest.t b/samples/client/petstore/perl/t/FooTest.t index 5ce9e8b66a4e..7c5fc34b0b34 100644 --- a/samples/client/petstore/perl/t/FooTest.t +++ b/samples/client/petstore/perl/t/FooTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Foo'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Foo'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/FormatTestTest.t b/samples/client/petstore/perl/t/FormatTestTest.t index 78bf3cafb1d3..28add9f02256 100644 --- a/samples/client/petstore/perl/t/FormatTestTest.t +++ b/samples/client/petstore/perl/t/FormatTestTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::FormatTest'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::FormatTest'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t b/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t index 8c4007b946a9..695dd3905856 100644 --- a/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t +++ b/samples/client/petstore/perl/t/HasOnlyReadOnlyTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::HasOnlyReadOnly'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::HasOnlyReadOnly'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/HealthCheckResultTest.t b/samples/client/petstore/perl/t/HealthCheckResultTest.t index 6e5e4b0f964c..cd900959db95 100644 --- a/samples/client/petstore/perl/t/HealthCheckResultTest.t +++ b/samples/client/petstore/perl/t/HealthCheckResultTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::HealthCheckResult'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::HealthCheckResult'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/InlineResponseDefaultTest.t b/samples/client/petstore/perl/t/InlineResponseDefaultTest.t deleted file mode 100644 index 2b3da22fde3e..000000000000 --- a/samples/client/petstore/perl/t/InlineResponseDefaultTest.t +++ /dev/null @@ -1,34 +0,0 @@ -=begin comment - -OpenAPI Petstore - -This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech - -=end comment - -=cut - -# -# NOTE: This class is auto generated by the OpenAPI Generator -# Please update the test cases below to test the model. -# Ref: https://openapi-generator.tech -# -use Test::More tests => 2; -use Test::Exception; - -use lib 'lib'; -use strict; -use warnings; - - -use_ok('WWW::OpenAPIClient::Object::InlineResponseDefault'); - -# uncomment below and update the test -#my $instance = WWW::OpenAPIClient::Object::InlineResponseDefault->new(); -# -#isa_ok($instance, 'WWW::OpenAPIClient::Object::InlineResponseDefault'); - diff --git a/samples/client/petstore/perl/t/ListTest.t b/samples/client/petstore/perl/t/ListTest.t index 484f357bcb3a..8939200d1967 100644 --- a/samples/client/petstore/perl/t/ListTest.t +++ b/samples/client/petstore/perl/t/ListTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::List'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::List'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/MapTestTest.t b/samples/client/petstore/perl/t/MapTestTest.t index 08e0e76365e5..ad4289f0aca7 100644 --- a/samples/client/petstore/perl/t/MapTestTest.t +++ b/samples/client/petstore/perl/t/MapTestTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::MapTest'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::MapTest'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t b/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t index 32fc58f324e0..4f87f4e8a0ad 100644 --- a/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t +++ b/samples/client/petstore/perl/t/MixedPropertiesAndAdditionalPropertiesClassTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::MixedPropertiesAndAdditionalPropertiesClass' # #isa_ok($instance, 'WWW::OpenAPIClient::Object::MixedPropertiesAndAdditionalPropertiesClass'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/Model200ResponseTest.t b/samples/client/petstore/perl/t/Model200ResponseTest.t index 603e1c1471cb..2e7a0b218e73 100644 --- a/samples/client/petstore/perl/t/Model200ResponseTest.t +++ b/samples/client/petstore/perl/t/Model200ResponseTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Model200Response'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Model200Response'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ModelReturnTest.t b/samples/client/petstore/perl/t/ModelReturnTest.t index 283ed51adae7..06b2e2e3865e 100644 --- a/samples/client/petstore/perl/t/ModelReturnTest.t +++ b/samples/client/petstore/perl/t/ModelReturnTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ModelReturn'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ModelReturn'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/NameTest.t b/samples/client/petstore/perl/t/NameTest.t index eb0f0e9bc887..318a4b2c0b7f 100644 --- a/samples/client/petstore/perl/t/NameTest.t +++ b/samples/client/petstore/perl/t/NameTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Name'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Name'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/NullableClassTest.t b/samples/client/petstore/perl/t/NullableClassTest.t index 932dfe3a950a..2841320be930 100644 --- a/samples/client/petstore/perl/t/NullableClassTest.t +++ b/samples/client/petstore/perl/t/NullableClassTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::NullableClass'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::NullableClass'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/NumberOnlyTest.t b/samples/client/petstore/perl/t/NumberOnlyTest.t index 710bddd63400..62c30491ddd1 100644 --- a/samples/client/petstore/perl/t/NumberOnlyTest.t +++ b/samples/client/petstore/perl/t/NumberOnlyTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::NumberOnly'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::NumberOnly'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ObjectWithDeprecatedFieldsTest.t b/samples/client/petstore/perl/t/ObjectWithDeprecatedFieldsTest.t index 008d6996ca73..430852006ba2 100644 --- a/samples/client/petstore/perl/t/ObjectWithDeprecatedFieldsTest.t +++ b/samples/client/petstore/perl/t/ObjectWithDeprecatedFieldsTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ObjectWithDeprecatedFields'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ObjectWithDeprecatedFields'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OrderTest.t b/samples/client/petstore/perl/t/OrderTest.t index 08499ad4d9c4..bff5005086d9 100644 --- a/samples/client/petstore/perl/t/OrderTest.t +++ b/samples/client/petstore/perl/t/OrderTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Order'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Order'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterCompositeTest.t b/samples/client/petstore/perl/t/OuterCompositeTest.t index 3e23fa93c337..37dbafbdafc4 100644 --- a/samples/client/petstore/perl/t/OuterCompositeTest.t +++ b/samples/client/petstore/perl/t/OuterCompositeTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterComposite'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterComposite'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t b/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t index 7b52c276fa02..329ebfbb577c 100644 --- a/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t +++ b/samples/client/petstore/perl/t/OuterEnumDefaultValueTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterEnumDefaultValue'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumDefaultValue'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t b/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t index 56e114ab16a0..af7cd3c4632b 100644 --- a/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t +++ b/samples/client/petstore/perl/t/OuterEnumIntegerDefaultValueTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterEnumIntegerDefaultValue'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumIntegerDefaultValue'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterEnumIntegerTest.t b/samples/client/petstore/perl/t/OuterEnumIntegerTest.t index b10b2e69d45a..615a6d7935b1 100644 --- a/samples/client/petstore/perl/t/OuterEnumIntegerTest.t +++ b/samples/client/petstore/perl/t/OuterEnumIntegerTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterEnumInteger'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnumInteger'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterEnumTest.t b/samples/client/petstore/perl/t/OuterEnumTest.t index 39fd44262814..2a50627284e2 100644 --- a/samples/client/petstore/perl/t/OuterEnumTest.t +++ b/samples/client/petstore/perl/t/OuterEnumTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterEnum'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterEnum'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t b/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t index b28dd8492b33..29a7add8357c 100644 --- a/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t +++ b/samples/client/petstore/perl/t/OuterObjectWithEnumPropertyTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::OuterObjectWithEnumProperty'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::OuterObjectWithEnumProperty'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ParentWithNullableTest.t b/samples/client/petstore/perl/t/ParentWithNullableTest.t index 8ee9800aa3c3..18e976dfc024 100644 --- a/samples/client/petstore/perl/t/ParentWithNullableTest.t +++ b/samples/client/petstore/perl/t/ParentWithNullableTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ParentWithNullable'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ParentWithNullable'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/PetApiTest.t b/samples/client/petstore/perl/t/PetApiTest.t index 479af7c718f1..666dc67c146e 100644 --- a/samples/client/petstore/perl/t/PetApiTest.t +++ b/samples/client/petstore/perl/t/PetApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -99,3 +99,5 @@ isa_ok($api, 'WWW::OpenAPIClient::PetApi'); #my $upload_file_with_required_file_additional_metadata = undef; # replace NULL with a proper value #my $upload_file_with_required_file_result = $api->upload_file_with_required_file(pet_id => $upload_file_with_required_file_pet_id, required_file => $upload_file_with_required_file_required_file, additional_metadata => $upload_file_with_required_file_additional_metadata); + +done_testing(); diff --git a/samples/client/petstore/perl/t/PetTest.t b/samples/client/petstore/perl/t/PetTest.t index 988648c4ed36..b2f3809fc3cc 100644 --- a/samples/client/petstore/perl/t/PetTest.t +++ b/samples/client/petstore/perl/t/PetTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Pet'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Pet'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/ReadOnlyFirstTest.t b/samples/client/petstore/perl/t/ReadOnlyFirstTest.t index cf1360392035..f6d7694aafe7 100644 --- a/samples/client/petstore/perl/t/ReadOnlyFirstTest.t +++ b/samples/client/petstore/perl/t/ReadOnlyFirstTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::ReadOnlyFirst'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::ReadOnlyFirst'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/SingleRefTypeTest.t b/samples/client/petstore/perl/t/SingleRefTypeTest.t index 652ac5797d0d..ecd3bf0547c0 100644 --- a/samples/client/petstore/perl/t/SingleRefTypeTest.t +++ b/samples/client/petstore/perl/t/SingleRefTypeTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::SingleRefType'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::SingleRefType'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/SpecialModelNameTest.t b/samples/client/petstore/perl/t/SpecialModelNameTest.t index 8048dd3ab302..a30bde97be5b 100644 --- a/samples/client/petstore/perl/t/SpecialModelNameTest.t +++ b/samples/client/petstore/perl/t/SpecialModelNameTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::SpecialModelName'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::SpecialModelName'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/StoreApiTest.t b/samples/client/petstore/perl/t/StoreApiTest.t index c2dcf8cd64b4..bf9d3db403ca 100644 --- a/samples/client/petstore/perl/t/StoreApiTest.t +++ b/samples/client/petstore/perl/t/StoreApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -56,3 +56,5 @@ isa_ok($api, 'WWW::OpenAPIClient::StoreApi'); #my $place_order_order = undef; # replace NULL with a proper value #my $place_order_result = $api->place_order(order => $place_order_order); + +done_testing(); diff --git a/samples/client/petstore/perl/t/TagTest.t b/samples/client/petstore/perl/t/TagTest.t index 1a5b2ee23aea..d2ddd0c304ed 100644 --- a/samples/client/petstore/perl/t/TagTest.t +++ b/samples/client/petstore/perl/t/TagTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::Tag'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::Tag'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/TestInlineFreeformAdditionalPropertiesRequestTest.t b/samples/client/petstore/perl/t/TestInlineFreeformAdditionalPropertiesRequestTest.t index 32d797e4c40f..76b05931eaaf 100644 --- a/samples/client/petstore/perl/t/TestInlineFreeformAdditionalPropertiesRequestTest.t +++ b/samples/client/petstore/perl/t/TestInlineFreeformAdditionalPropertiesRequestTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::TestInlineFreeformAdditionalPropertiesReques # #isa_ok($instance, 'WWW::OpenAPIClient::Object::TestInlineFreeformAdditionalPropertiesRequest'); + +done_testing(); diff --git a/samples/client/petstore/perl/t/UserApiTest.t b/samples/client/petstore/perl/t/UserApiTest.t index a79d1fc2570f..66f9e9ce6f7f 100644 --- a/samples/client/petstore/perl/t/UserApiTest.t +++ b/samples/client/petstore/perl/t/UserApiTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the API endpoints. # Ref: https://openapi-generator.tech # -use Test::More tests => 1; #TODO update number of test cases +use Test::More; use Test::Exception; use lib 'lib'; @@ -86,3 +86,5 @@ isa_ok($api, 'WWW::OpenAPIClient::UserApi'); #my $update_user_user = undef; # replace NULL with a proper value #my $update_user_result = $api->update_user(username => $update_user_username, user => $update_user_user); + +done_testing(); diff --git a/samples/client/petstore/perl/t/UserTest.t b/samples/client/petstore/perl/t/UserTest.t index 1e678b9efebd..35c464d75560 100644 --- a/samples/client/petstore/perl/t/UserTest.t +++ b/samples/client/petstore/perl/t/UserTest.t @@ -17,7 +17,7 @@ Generated by: https://openapi-generator.tech # Please update the test cases below to test the model. # Ref: https://openapi-generator.tech # -use Test::More tests => 2; +use Test::More; use Test::Exception; use lib 'lib'; @@ -32,3 +32,5 @@ use_ok('WWW::OpenAPIClient::Object::User'); # #isa_ok($instance, 'WWW::OpenAPIClient::Object::User'); + +done_testing();