tests/testthat/test-argument-string.R

test_that("privacy of strings", {
  tmp = tempfile()
  cat("privacy issue",file=tmp)
  
  string_arg = openeo:::String$new()
  string_arg$setValue(tmp)
  
  expect(string_arg$serialize() != "privacy issue",failure_message = "String parameter opens file.")
})

Try the openeo package in your browser

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

openeo documentation built on June 8, 2025, 11:46 a.m.