r.api_test.mustache Maven / Gradle / Ivy
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test {{{classname}}}")
api.instance <- {{{classname}}}$new()
{{#operations}}
{{#operation}}
test_that("{{{operationId}}}", {
# tests for {{operationId}}
# base path: {{{basePath}}}
{{#summary}}
# {{.}}
{{/summary}}
{{#notes}}
# {{.}}
{{/notes}}
{{#allParams}}
# @param {{{paramName}}} {{{dataType}}} {{{description}}}{{^required}} (optional){{/required}}
{{/allParams}}
# @return [{{{returnType}}}{{^returnType}}Void{{/returnType}}]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
{{/operation}}
{{/operations}}