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)
  })
}
thomasp85/tidygraph documentation built on Feb. 8, 2025, 12:16 a.m.