Skip to content

Commit

Permalink
fix lack of optional input on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
afombravo committed Jan 19, 2025
1 parent 00ed681 commit 9de9c4c
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions modules/nf-core/fast2q/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,19 @@ nextflow_process {

when {

params {
module_args = '--mo EC'
}
params {
module_args = '--mo EC'
}

process {
"""
input[0] = [
[ id:'test1', single_end:false ], // meta map
file(params.modules_testdata_base_path + '/SRR23101364_1.small.fastq.gz', checkIfExists: true) // FASTQ file
]
"""
}
process {
"""
input[0] = [
[ id:'test1', single_end:false ], // meta map for the first input
file(params.modules_testdata_base_path + '/SRR23101364_1.small.fastq.gz', checkIfExists: true), // First input (FASTQ file)
null // Second input is null
]
"""
}
}

then {
Expand All @@ -74,8 +75,9 @@ nextflow_process {
process {
"""
input[0] = [
[ id: 'test', single_end: true ], // meta map
file(params.modules_testdata_base_path + '/SRR23101364_1.small.fastq.gz', checkIfExists: true) // FASTQ file
[ id:'test1', single_end:false ], // meta map for the first input
file(params.modules_testdata_base_path + '/SRR23101364_1.small.fastq.gz', checkIfExists: true), // First input (FASTQ file)
null // Second input is null
]
"""
}
Expand Down

0 comments on commit 9de9c4c

Please sign in to comment.