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.9.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}}
  {{#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}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy