tests/testthat/test_tool_input_parameter.R

# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate

context("Test ToolInputParameter")

model.instance <- ToolInputParameter$new()

test_that("name", {
  # tests for the property `name` (character)
  # The name of this input value (formatted as expected by the tool)

  # uncomment below to test the property 
  #expect_equal(model.instance$`name`, "EXPECTED_RESULT")
})

test_that("valueType", {
  # tests for the property `valueType` (ValueType)

  # uncomment below to test the property 
  #expect_equal(model.instance$`valueType`, "EXPECTED_RESULT")
})

test_that("optional", {
  # tests for the property `optional` (character)
  # Whether the tool allows this value to not be specified

  # uncomment below to test the property 
  #expect_equal(model.instance$`optional`, "EXPECTED_RESULT")
})

test_that("default", {
  # tests for the property `default` (character)
  # The in-language expression used to evaluate a default value for this parameter, if none is supplied.

  # uncomment below to test the property 
  #expect_equal(model.instance$`default`, "EXPECTED_RESULT")
})
vjcitn/terraClientR documentation built on Dec. 23, 2021, 4:07 p.m.