tests/testthat/helper-context.R

test_empty_context <- function() {
  test_that("graph context is empty after test", {
    expect_length(environment(.graph_context$free)$private$context, 0)
  })
}

Try the tidygraph package in your browser

Any scripts or data that you put into this service are public.

tidygraph documentation built on June 22, 2024, 11:32 a.m.