Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/testthat/perf_tests/perf_rate.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

perf.reference.save <- function(perf.ref.name, rate, tolerance.lower, tolerance.upper) {
if (is.null(.perf.reference))
load.pref()
.load.pref()

.perf.reference[nrow(.perf.reference)+1,] <- c(perf.ref.name, rate, tolerance.lower, tolerance.upper)

Expand Down
11 changes: 0 additions & 11 deletions tests/testthat/test-arg-ds.abs.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
#-------------------------------------------------------------------------------
# Copyright (c) 2018-2022 University of Newcastle upon Tyne. All rights reserved.
# Copyright (c) 2022-2025 Arjuna Technologies, Newcastle upon Tyne. All rights reserved.
#
# This program and the accompanying materials
# are made available under the terms of the GNU Public License v3.0.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#-------------------------------------------------------------------------------

#
# Set up
#
Expand Down
11 changes: 0 additions & 11 deletions tests/testthat/test-arg-ds.sqrt.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
#-------------------------------------------------------------------------------
# Copyright (c) 2018-2022 University of Newcastle upon Tyne. All rights reserved.
# Copyright (c) 2022-2025 Arjuna Technologies, Newcastle upon Tyne. All rights reserved.
#
# This program and the accompanying materials
# are made available under the terms of the GNU Public License v3.0.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#-------------------------------------------------------------------------------

#
# Set up
#
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.Boole.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.Boole::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.abs.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.abs::perf:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.asCharacter.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.asCharacter::perf:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.asDataMatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.asDataMatrix::perf:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.asFactor.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.survival(list("survtime", "time.id", "female", "age.60")

# context("ds.asFactor::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.asFactorSimple.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.survival(list("survtime", "time.id", "female", "age.60")

# context("ds.asFactorSimple::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.asInteger.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ connect.studies.dataset.cnsim(list("GENDER"))

# context("ds.asInteger::perf:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.asList.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.asList::perf:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.asLogical.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.asLogical::perf:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.asMatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.asMatrix::perf:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.asNumeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ connect.studies.dataset.cnsim(list("GENDER"))

# context("ds.asNumeric::perf:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.assign.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.assign::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.boxPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.boxPlot::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.boxPlotGG.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.boxPlotGG::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.c.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC"))

# context("ds.c::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.cbind.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.survival(list("survtime", "time.id", "female", "age.60")

# context("ds.cbind::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.changeRefGroup.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ connect.studies.dataset.cnsim(list('PM_BMI_CATEGORICAL'))
# context("ds.changeRefGroup::perf::0")
test_that("performance", {
ds.asFactorSimple("D$PM_BMI_CATEGORICAL", newobj.name="bmi_new")
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.class.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.class::perf::combine:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.colnames.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.colnames::perf:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
12 changes: 1 addition & 11 deletions tests/testthat/test-perf-ds.completeCases.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
#-------------------------------------------------------------------------------
# Copyright (c) 2024-2025 Arjuna Technologies, Newcastle upon Tyne. All rights reserved.
#
# This program and the accompanying materials
# are made available under the terms of the GNU Public License v3.0.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#-------------------------------------------------------------------------------

#
# Set up
#
Expand All @@ -21,7 +11,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.completeCases::perf::combine:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.contourPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.contourPlot::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.cor.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.survival(list("survtime", "time.id", "female"))

# context("ds.cor::perf::combine:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.corTest.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.survival(list("survtime", "time.id"))

# context("ds.corTest::perf::combine:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.cov.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.survival(list("survtime", "time.id", "female"))

# context("ds.cov::perf::combine:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.dataFrame.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_HDL"))

# context("ds.dataFrame::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.dataFrameFill.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.discordant.dataset.simple(list("A", "B", "C"))

# context("ds.dataFrameFill::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.dataFrameSort.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_HDL"))

# context("ds.dataFrameSort::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.dataFrameSubset.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_HDL", "PM_BMI_CATEGORICAL"))

# context("ds.dataFrameSubset::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.densityGrid.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.densityGrid::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
12 changes: 1 addition & 11 deletions tests/testthat/test-perf-ds.dim.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
#-------------------------------------------------------------------------------
# Copyright (c) 2024-2025 Arjuna Technologies, Newcastle upon Tyne. All rights reserved.
#
# This program and the accompanying materials
# are made available under the terms of the GNU Public License v3.0.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#-------------------------------------------------------------------------------

#
# Set up
#
Expand All @@ -21,7 +11,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.dim::perf::0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.dmtC2S.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC"))

# context("ds.dmtC2S::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.elspline.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.cnsim(list("LAB_TRIG", "PM_BMI_CONTINUOUS"))

# context("ds.elspline::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.exists.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.exists::perf::combine:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.exp.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))

# context("ds.exp::perf:0")
test_that("combine - performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.gamlss.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ connect.studies.dataset.gamlss(list("e3_bw", "e3_gac_None", "hs_zbmi_who", "hs_c

# context("ds.gamlss::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.getWGSR.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ connect.studies.dataset.anthro(list("age", "sex", "weight", "height", "muac"))

# context("ds.getWGSR::perf::0")
test_that("performance", {
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-perf-ds.glmPredict.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ connect.studies.dataset.cnsim(list("LAB_TSC", "LAB_TRIG"))
# context("ds.glmPredict::perf::0")
test_that("performance", {
ds.glmSLMA('D$LAB_TSC~D$LAB_TRIG', family="gaussian", newobj="gaussian.glmslma.obj")
.durationSec <- 30 # seconds
.durationSec <- perf.testduration()
.count <- 0
.start.time <- Sys.time()
.current.time <- .start.time
Expand Down
Loading
Loading