Skip to content

Commit 6fe402d

Browse files
committed
Test that error occurs with no data. Closes #24.
1 parent dc37c22 commit 6fe402d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

tests/testthat/test-make_receiver_push_summary.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,13 @@ test_that("Default \"since\" date works", {
8989

9090
expect_true(any(grepl("receiver_push_summary", list.files(getwd()))))
9191
})
92+
93+
94+
95+
96+
test_that("errors with no input data", {
97+
expect_error(
98+
make_receiver_push_summary(),
99+
"Must provide at least one each of qualified.*unqualified detections.*deployment"
100+
)
101+
})

tests/testthat/test-make_tag_push_summary.R

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,13 @@ test_that("Default \"since\" date works", {
7878

7979
expect_true(any(grepl("tag_push_summary", list.files(getwd()))))
8080
})
81+
82+
83+
84+
85+
test_that("errors with no input data", {
86+
expect_error(
87+
make_tag_push_summary(),
88+
"Must provide at least one set of OTN-matched detections"
89+
)
90+
})

0 commit comments

Comments
 (0)