# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test SearchTermRef")
model.instance <- SearchTermRef$new()
test_that("searchString", {
# tests for the property `searchString` (character)
# The term to search for
# uncomment below to test the property
#expect_equal(model.instance$`searchString`, "EXPECTED_RESULT")
})
test_that("filters", {
# tests for the property `filters` (map(array[character]))
# Map[String, Array[String] ] Each entry contains the column name (i.e. \"library:indication\") and a list of terms that will be or'ed in the query ([\"cancer\", \"sleep apnea\"])
# uncomment below to test the property
#expect_equal(model.instance$`filters`, "EXPECTED_RESULT")
})
test_that("researchPurpose", {
# tests for the property `researchPurpose` (ResearchPurpose)
# uncomment below to test the property
#expect_equal(model.instance$`researchPurpose`, "EXPECTED_RESULT")
})
test_that("fieldAggregations", {
# tests for the property `fieldAggregations` (map(integer))
# Map[String, Int] The list of fields for which you would like to retrieve aggregations and the number of aggregations to return. Default is 5. Specify 0 to get all
# uncomment below to test the property
#expect_equal(model.instance$`fieldAggregations`, "EXPECTED_RESULT")
})
test_that("from", {
# tests for the property `from` (integer)
# Where in the results list to start (used for pagination)
# uncomment below to test the property
#expect_equal(model.instance$`from`, "EXPECTED_RESULT")
})
test_that("size", {
# tests for the property `size` (integer)
# How many results to return
# uncomment below to test the property
#expect_equal(model.instance$`size`, "EXPECTED_RESULT")
})
test_that("sortField", {
# tests for the property `sortField` (character)
# Field name on which to sort; defaults to sort by relevance if not specified
# uncomment below to test the property
#expect_equal(model.instance$`sortField`, "EXPECTED_RESULT")
})
test_that("sortDirection", {
# tests for the property `sortDirection` (character)
# asc or desc; defaults to asc if not specified
# uncomment below to test the property
#expect_equal(model.instance$`sortDirection`, "EXPECTED_RESULT")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.