211 [.qenv
S3 method + replacement of @id
, @warnings
, and @messages
fields
#248
1 errors, 8 fail, 3 skipped, 133 pass in 3s
1 files 12 suites 3s ⏱️
145 tests 133 ✅ 3 💤 8 ❌ 1 🔥
222 runs 210 ✅ 3 💤 8 ❌ 1 🔥
Results for commit defa490.
Annotations
Check warning on line 0 in qenv_class
github-actions / Unit Tests Summary
creates_a_locked_environment (qenv_class) failed
teal.code.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
environmentIsLocked(as.environment(methods::new("qenv"))) is not TRUE ('test-qenv-class.R:3:5')
environmentIsLocked(as.environment(methods::new("qenv"))) is not TRUE
`actual`: FALSE
`expected`: TRUE
Check warning on line 0 in qenv_class
github-actions / Unit Tests Summary
1 out of 2 runs failed: creates_a_locked_environment_when_.xData_is_manually_defined (qenv_class)
teal.code.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
environmentIsLocked(as.environment(methods::new("qenv", .xData = new_env))) is not TRUE ('test-qenv-class.R:10:5')
environmentIsLocked(as.environment(methods::new("qenv", .xData = new_env))) is not TRUE
`actual`: FALSE
`expected`: TRUE
Check warning on line 0 in qenv_class
github-actions / Unit Tests Summary
throws_error_when_id_and_code_length_doesn_t_match (qenv_class) failed
teal.code.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
`methods::new("qenv", id = 1L)` threw an error with unexpected message. ('test-qenv-class.R:14:5')
`methods::new("qenv", id = 1L)` threw an error with unexpected message.
Expected match: "@code and @id slots must have the same length\\."
Actual message: "cannot add bindings to a locked environment"
Backtrace:
▆
1. ├─testthat::expect_error(methods::new("qenv", id = 1L), "@code and @id slots must have the same length\\.") at test-qenv-class.R:14:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─methods::new("qenv", id = 1L)
7. ├─methods::initialize(value, ...)
8. └─teal.code (local) initialize(value, ...)
9. └─teal.code (local) .local(.Object, ...)
10. ├─methods::callNextMethod(.Object, new_xdata, ...)
11. │ └─base::eval(call, callEnv)
12. │ └─base::eval(call, callEnv)
13. └─methods (local) .nextMethod(.Object, new_xdata, ...)
Check warning on line 0 in qenv_class
github-actions / Unit Tests Summary
throws_error_when_code_is_not_language_or_character_object (qenv_class) failed
teal.code.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
`methods::new("qenv", code = 2)` threw an error with unexpected message. ('test-qenv-class.R:22:5')
`methods::new("qenv", code = 2)` threw an error with unexpected message.
Expected match: "`code` must be a character or language object\\."
Actual message: "invalid class \"qenv\" object: invalid object for slot \"code\" in class \"qenv\": got class \"numeric\", should be or extend class \"list\""
Backtrace:
▆
1. ├─testthat::expect_error(methods::new("qenv", code = 2), "`code` must be a character or language object\\.") at test-qenv-class.R:22:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─methods::new("qenv", code = 2)
7. ├─methods::initialize(value, ...)
8. └─teal.code (local) initialize(value, ...)
9. └─teal.code (local) .local(.Object, ...)
10. ├─methods::callNextMethod(.Object, new_xdata, ...)
11. │ └─base::eval(call, callEnv)
12. │ └─base::eval(call, callEnv)
13. └─methods (local) .nextMethod(.Object, new_xdata, ...)
14. ├─base::do.call(callNextMethod, c(.Object, args))
15. ├─methods (local) `<fn>`(`<qenv>`, code = 2)
16. │ └─base::eval(call, callEnv)
17. │ └─base::eval(call, callEnv)
18. └─methods (local) .nextMethod(`<qenv>`, code = 2)
19. └─methods::validObject(.Object)
Check warning on line 0 in qenv_constructor
github-actions / Unit Tests Summary
does_not_allow_binding_to_be_added (qenv_constructor) failed
teal.code.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
`q$x <- 1` did not throw an error. ('test-qenv_constructor.R:41:5')
`q$x <- 1` did not throw an error.
Check warning on line 0 in qenv_constructor
github-actions / Unit Tests Summary
via_slot (qenv_constructor) failed
teal.code.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
parent.env([email protected]) not identical to parent.env(.GlobalEnv). ('test-qenv_constructor.R:60:5')
parent.env([email protected]) not identical to parent.env(.GlobalEnv).
Names: 6 string mismatches
Length mismatch: comparison on first 6 components
Component 1: Modes: ..., character
Component 1: target is not list-like
Component 2: 'current' is not an environment
Component 3: Modes: list, environment
Component 3: Lengths: 1, 3
Component 3: names for current but not for target
Component 3: current is not list-like
...
Check warning on line 0 in qenv_constructor
github-actions / Unit Tests Summary
via_qenv_directly (qenv_constructor) failed
teal.code.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
parent.env(q) not identical to parent.env(.GlobalEnv). ('test-qenv_constructor.R:65:5')
parent.env(q) not identical to parent.env(.GlobalEnv).
Names: 6 string mismatches
Length mismatch: comparison on first 6 components
Component 1: Modes: ..., character
Component 1: target is not list-like
Component 2: 'current' is not an environment
Component 3: Modes: list, environment
Component 3: Lengths: 1, 3
Component 3: names for current but not for target
Component 3: current is not list-like
...
Check failure on line 0 in qenv_eval_code
github-actions / Unit Tests Summary
eval_code_locks_the_environment (qenv_eval_code) with error
teal.code.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
Error in `isEnvironmentLocked([email protected])`: could not find function "isEnvironmentLocked" ('test-qenv_eval_code.R:10:3')
Error in `isEnvironmentLocked([email protected])`: could not find function "isEnvironmentLocked"
Backtrace:
▆
1. └─testthat::expect_identical(isEnvironmentLocked([email protected])) at test-qenv_eval_code.R:10:3
2. └─testthat::quasi_label(enquo(object), label, arg = "object")
3. └─rlang::eval_bare(expr, quo_get_env(quo))
Check warning on line 0 in qenv_eval_code
github-actions / Unit Tests Summary
alone_comments_at_the_end_of_the_source_are_considered_as_a_separate_call (qenv_eval_code) failed
teal.code.Rcheck/tests/testthat/junit-result.xml [took 0s]
Raw output
unlist(q@code)[3] not identical to "# comment". ('test-qenv_eval_code.R:157:3')
unlist(q@code)[3] not identical to "# comment".
1/1 mismatches
x[1]: NA
y[1]: "# comment"