Code
(expect_warning(s3_register("testthat::foobarbaz", "class", method = function(
...) NULL)))
Output
<warning/rlang_warning>
Warning:
Can't find generic `foobarbaz` in package testthat to register S3 method.
i This message is only shown to developers using devtools.
i Do you need to update testthat to the latest version?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.