context("1 Trivial")
test_that(
desc = "create consumer",
code =
{
consumer <- kafka_consumer()
# starting/connecting - + status
consumer$start()
expect_true({
consumer$running()
})
expect_false({
consumer$end()$running()
})
expect_true({
consumer$start()$running()
})
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.