This file is indexed.

/usr/share/doc/r-cran-dplyr/tests/testthat/test-funs-predicates.R is in r-cran-dplyr 0.7.4-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
context("funs-predicates")

test_that("all_exprs() creates intersection", {
  expect_identical(all_exprs(am == 1), quo(am == 1))

  quo <- set_env(quo((!! quo(cyl == 2)) & (!! quo(am == 1))), base_env())
  expect_identical(all_exprs(cyl == 2, am == 1), quo)
})

test_that("any_exprs() creates union", {
  expect_identical(any_exprs(am == 1), quo(am == 1))

  quo <- set_env(quo((!! quo(cyl == 2)) | (!! quo(am == 1))), base_env())
  expect_identical(any_exprs(cyl == 2, am == 1), quo)
})

test_that("all_exprs() without expression returns an error", {
  expect_error(
    all_exprs(),
    "At least one expression must be given",
    fixed = TRUE
  )
})