tests/testthat/test_DockerHardware.R

test_that("DockerHardware constructor", {
    expect_error(
        hardware <- DockerHardware()
        ,NA)
    expect_error(
        hardware <- DockerHardware(
            cpu = 512,
            memory = 1024,
            id = "test")
        ,NA)
    expect_equal(hardware@cpu, 512)
    expect_equal(hardware@memory, 1024)
    expect_equal(hardware@id, "test")
})

Try the DockerParallel package in your browser

Any scripts or data that you put into this service are public.

DockerParallel documentation built on June 23, 2021, 5:07 p.m.