Nothing
# Test `BackendFactory` class.
test_that("'BackendFactory' produces the correct instance types", {
# Create a backend factory.
backend_factory <- BackendFactory$new()
# Expect a synchronous backend.
expect_equal(
Helper$get_class_name(backend_factory$get("sync")),
"SyncBackend"
)
# Expect an asynchronous backend.
expect_equal(
Helper$get_class_name(backend_factory$get("async")),
"AsyncBackend"
)
# Expect error for unsupported backend types.
expect_error(
backend_factory$get("unsupported"),
as_text(Exception$feature_not_developed())
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.