Skip to content

Commit a701f8b

Browse files
committed
Update snapshots
1 parent 11dc98b commit a701f8b

File tree

4 files changed

+44
-694
lines changed

4 files changed

+44
-694
lines changed

tests/testthat/_snaps/reporter-debug.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# produces consistent output
22

33
1: expect_true(FALSE)
4-
2: expect_waldo_constant(act, TRUE, info = info, ignore_attr = TRUE)
5-
3: fail(msg, info = info, trace_env = caller_env())
4+
2: expect_waldo_constant_(act, TRUE, info = info, ignore_attr = TRUE)
5+
3: fail(msg, info = info, trace_env = trace_env)
66

77
1: f()
88
2: expect_true(FALSE)
9-
3: expect_waldo_constant(act, TRUE, info = info, ignore_attr = TRUE)
10-
4: fail(msg, info = info, trace_env = caller_env())
9+
3: expect_waldo_constant_(act, TRUE, info = info, ignore_attr = TRUE)
10+
4: fail(msg, info = info, trace_env = trace_env)
1111

1212
1: stop("stop")
1313

tests/testthat/_snaps/reporter-debug.new.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/testthat/_snaps/reporter-progress.md

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -268,22 +268,25 @@
268268
x
269269
1. +-testthat::expect_s3_class(foo(), "foo")
270270
2. | \-testthat::quasi_label(enquo(object), arg = "object")
271-
3. | \-rlang::eval_bare(expr, quo_get_env(quo))
272-
4. \-foo()
271+
3. | +-testthat:::new_actual(...)
272+
4. | \-rlang::eval_bare(expr, quo_get_env(quo))
273+
5. \-foo()
273274

274275
Error ('reporters/backtraces.R:13:10'): errors thrown from a quasi-labelled argument are entraced (deep case)
275276
Error in `foo()`: foo
276277
Backtrace:
277-
x
278-
1. +-testthat::expect_s3_class(f(), "foo")
279-
2. | \-testthat::quasi_label(enquo(object), arg = "object")
280-
3. | \-rlang::eval_bare(expr, quo_get_env(quo))
281-
4. \-f()
282-
5. \-g()
283-
6. +-testthat::expect_s3_class(foo(), "foo")
284-
7. | \-testthat::quasi_label(enquo(object), arg = "object")
285-
8. | \-rlang::eval_bare(expr, quo_get_env(quo))
286-
9. \-foo()
278+
x
279+
1. +-testthat::expect_s3_class(f(), "foo")
280+
2. | \-testthat::quasi_label(enquo(object), arg = "object")
281+
3. | +-testthat:::new_actual(...)
282+
4. | \-rlang::eval_bare(expr, quo_get_env(quo))
283+
5. \-f()
284+
6. \-g()
285+
7. +-testthat::expect_s3_class(foo(), "foo")
286+
8. | \-testthat::quasi_label(enquo(object), arg = "object")
287+
9. | +-testthat:::new_actual(...)
288+
10. | \-rlang::eval_bare(expr, quo_get_env(quo))
289+
11. \-foo()
287290

288291
Error ('reporters/backtraces.R:21:10'): errors thrown from a quasi-labelled argument are entraced (deep deep case)
289292
Error in `bar()`: foobar
@@ -293,16 +296,17 @@
293296
2. \-g()
294297
3. +-testthat::expect_s3_class(foo(), "foo")
295298
4. | \-testthat::quasi_label(enquo(object), arg = "object")
296-
5. | \-rlang::eval_bare(expr, quo_get_env(quo))
297-
6. \-foo()
298-
7. \-bar()
299+
5. | +-testthat:::new_actual(...)
300+
6. | \-rlang::eval_bare(expr, quo_get_env(quo))
301+
7. \-foo()
302+
8. \-bar()
299303

300304
Error ('reporters/backtraces.R:32:16'): failed expect_error() prints a backtrace
301305
Error in `signaller()`: bar
302306
Backtrace:
303307
x
304308
1. +-testthat::expect_error(f(), "foo")
305-
2. | \-testthat:::expect_condition_matching(...)
309+
2. | \-testthat:::expect_condition_matching_(...)
306310
3. | \-testthat:::quasi_capture(...)
307311
4. | +-testthat (local) .capture(...)
308312
5. | | \-base::withCallingHandlers(...)
@@ -395,22 +399,25 @@
395399
x
396400
1. +-testthat::expect_s3_class(foo(), "foo")
397401
2. | \-testthat::quasi_label(enquo(object), arg = "object")
398-
3. | \-rlang::eval_bare(expr, quo_get_env(quo))
399-
4. \-foo()
402+
3. | +-testthat:::new_actual(...)
403+
4. | \-rlang::eval_bare(expr, quo_get_env(quo))
404+
5. \-foo()
400405

401406
Error ('reporters/backtraces.R:13:10'): errors thrown from a quasi-labelled argument are entraced (deep case)
402407
Error in `foo()`: foo
403408
Backtrace:
404-
x
405-
1. +-testthat::expect_s3_class(f(), "foo")
406-
2. | \-testthat::quasi_label(enquo(object), arg = "object")
407-
3. | \-rlang::eval_bare(expr, quo_get_env(quo))
408-
4. \-f()
409-
5. \-g()
410-
6. +-testthat::expect_s3_class(foo(), "foo")
411-
7. | \-testthat::quasi_label(enquo(object), arg = "object")
412-
8. | \-rlang::eval_bare(expr, quo_get_env(quo))
413-
9. \-foo()
409+
x
410+
1. +-testthat::expect_s3_class(f(), "foo")
411+
2. | \-testthat::quasi_label(enquo(object), arg = "object")
412+
3. | +-testthat:::new_actual(...)
413+
4. | \-rlang::eval_bare(expr, quo_get_env(quo))
414+
5. \-f()
415+
6. \-g()
416+
7. +-testthat::expect_s3_class(foo(), "foo")
417+
8. | \-testthat::quasi_label(enquo(object), arg = "object")
418+
9. | +-testthat:::new_actual(...)
419+
10. | \-rlang::eval_bare(expr, quo_get_env(quo))
420+
11. \-foo()
414421

415422
Error ('reporters/backtraces.R:21:10'): errors thrown from a quasi-labelled argument are entraced (deep deep case)
416423
Error in `bar()`: foobar
@@ -420,16 +427,17 @@
420427
2. \-g()
421428
3. +-testthat::expect_s3_class(foo(), "foo")
422429
4. | \-testthat::quasi_label(enquo(object), arg = "object")
423-
5. | \-rlang::eval_bare(expr, quo_get_env(quo))
424-
6. \-foo()
425-
7. \-bar()
430+
5. | +-testthat:::new_actual(...)
431+
6. | \-rlang::eval_bare(expr, quo_get_env(quo))
432+
7. \-foo()
433+
8. \-bar()
426434

427435
Error ('reporters/backtraces.R:32:16'): failed expect_error() prints a backtrace
428436
Error in `signaller()`: bar
429437
Backtrace:
430438
x
431439
1. +-testthat::expect_error(f(), "foo")
432-
2. | \-testthat:::expect_condition_matching(...)
440+
2. | \-testthat:::expect_condition_matching_(...)
433441
3. | \-testthat:::quasi_capture(...)
434442
4. | +-testthat (local) .capture(...)
435443
5. | | \-base::withCallingHandlers(...)

0 commit comments

Comments
 (0)