All Downloads are FREE. Search and download functionalities are using the official Maven repository.

r.api_test.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
# 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}}
  {{/summary}}
  {{#notes}}
  # {{notes}}
  {{/notes}}
{{#allParams}}
  # @param {{{dataType}}}  {{{paramName}}}  {{{description}}} {{^required}} (optional){{/required}}
{{/allParams}}
  # @return [{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

{{/operation}}
{{/operations}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy