perl.api_test.mustache Maven / Gradle / Ivy
The newest version!
{{>partial_license}}
#
# NOTE: This class is auto generated by Swagger Codegen
# Please update the test cases below to test the API endpoints.
# Ref: https://github.com/swagger-api/swagger-codegen
#
use Test::More tests => 1; #TODO update number of test cases
use Test::Exception;
use lib 'lib';
use strict;
use warnings;
use_ok('{{moduleName}}::{{classname}}');
my $api = {{moduleName}}::{{classname}}->new();
isa_ok($api, '{{moduleName}}::{{classname}}');
{{#operations}}
{{#operation}}
#
# {{{nickname}}} test
#
{
{{#allParams}} my ${{paramName}} = undef; # replace NULL with a proper value
{{/allParams}}
my $result = $api->{{nickname}}({{#allParams}}{{paramName}} => ${{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
}
{{/operation}}
{{/operations}}
1;