tests/testthat/test_blocks_api.R

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

context("Test BlocksApi")

api.instance <- BlocksApi$new()

test_that("GetBlock", {
  # tests for GetBlock
  # base path: https://api.graphsense.info
  # Get a block by its height
  # @param currency character The cryptocurrency (e.g., btc)
  # @param height integer The block height
  # @return [Block]

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

test_that("ListBlockTxs", {
  # tests for ListBlockTxs
  # base path: https://api.graphsense.info
  # Get block transactions (100 per page)
  # @param currency character The cryptocurrency (e.g., btc)
  # @param height integer The block height
  # @return [array[BlockTx]]

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

test_that("ListBlockTxsCsv", {
  # tests for ListBlockTxsCsv
  # base path: https://api.graphsense.info
  # Get block transactions as CSV
  # @param currency character The cryptocurrency (e.g., btc)
  # @param height integer The block height
  # @return [character]

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

test_that("ListBlocks", {
  # tests for ListBlocks
  # base path: https://api.graphsense.info
  # Get all blocks
  # @param currency character The cryptocurrency (e.g., btc)
  # @param page character Resumption token for retrieving the next page (optional)
  # @return [Blocks]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})
graphsense/rgraphsense documentation built on Sept. 2, 2022, 1:45 p.m.