Skip to content

Commit

Permalink
Add test to pass coverage package job.
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekbanas committed Oct 18, 2024
1 parent a02e1b5 commit 8064c53
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/testthat/test-get_commits-GitStats.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,24 @@ test_that("get_commits works properly", {
test_mocker$cache(commits_table)
})

test_that("get_commits() works", {
mockery::stub(
get_commits,
"gitstats_object$get_commits",
test_mocker$use("commits_table")
)
commits_table <- get_commits(
test_gitstats,
since = "2023-06-15",
until = "2023-06-30",
verbose = FALSE
)
expect_s3_class(
commits_table,
"commits_data"
)
})

test_gitstats <- create_test_gitstats(
hosts = 2,
inject_commits = "commits_table"
Expand Down

0 comments on commit 8064c53

Please sign in to comment.