You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/challenging-tests.Rmd
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,10 @@ Sometimes part of the output varies in ways that you can't easily control. There
153
153
154
154
## Mocking
155
155
156
+
Mocking is a useful technique when all else fails: for the duration of your test, you make some function return whatever you need it to.
157
+
158
+
Note that mocking works best on your own functions and functions that you import. But it's possible to mock base R functions and functions that you don't import. See `?local_mocked_bindings` for more details.
0 commit comments