Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Oct 28, 2024
1 parent 6da5ad1 commit 0c35eed
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/testthat/test-get_stats.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
test_that("Test stats fetching", {
# This will be the directory that contains all the file path
bam_dir <- file.path(example_data_folder(), "bam")

# These MUST be names that are listed in the bam file name itself.
# There needs to be exactly 2 bam files per sample
sample_names <- c("sample1", "sample2", "sample3")

stats_df <- get_stats(
bam_dir = bam_dir,
sample_names = sample_names,
output_dir = "output_dir"
)
})

0 comments on commit 0c35eed

Please sign in to comment.