tests/testthat/test-parse-r-package.R

context("Parsing R packages")

test_that("package sources are evaluated in a single env", {

  map <- map_r_package("testEnv")

  expect_equal(
    get_graph(map),
    list(f = "f")
  )
})

test_that("package sources use Collate from DESCRIPTION", {

  map <- map_r_package("testCollate")

  expect_equal(
    get_graph(map),
    list(f = "f")
  )
})
MangoTheCat/functionMap documentation built on May 7, 2019, 2:10 p.m.