tests/testthat/test-interfaceplot.R

context("interfaceplot test")

test_that("interfaces properly detected and plotted", {
  expected_result <- list(core = c(out = "pm_global"), 
                           fancymodule = c(`in` = "pm_global", 
                                           out = "vm_exchange"), 
                           crazymodule = c(`in` = "vm_exchange"))
  expect_message(cc <- codeCheck(system.file("dummymodel",package="lucode")),"All codeCheck tests passed!")
  expect_identical(cc,expected_result)
})
pik-piam/lucode documentation built on June 10, 2020, 6:55 p.m.