Skip to content

Commit

Permalink
test: Update all the snapshot declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Jul 8, 2024
1 parent 990ae6a commit 6d40730
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 37 deletions.
38 changes: 25 additions & 13 deletions modules/nf-core/narfmap/align/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ nextflow_process {
assertAll (
{ assert process.success },
{ assert snapshot(
process.out.bam,
process.out.versions,
file(process.out.bam[0][1]).name,
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") },
file(process.out.versions[0]).name
).match() }
).match()
}
)
}

Expand Down Expand Up @@ -84,10 +86,12 @@ nextflow_process {
assertAll (
{ assert process.success },
{ assert snapshot(
process.out.bam,
process.out.versions,
file(process.out.bam[0][1]).name,
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") },
file(process.out.versions[0]).name
).match() }
).match()
}
)
}

Expand Down Expand Up @@ -129,10 +133,12 @@ nextflow_process {
assertAll (
{ assert process.success },
{ assert snapshot(
process.out.bam,
process.out.versions,
file(process.out.bam[0][1]).name,
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") },
file(process.out.versions[0]).name
).match() }
).match()
}
)
}

Expand Down Expand Up @@ -174,10 +180,12 @@ nextflow_process {
assertAll (
{ assert process.success },
{ assert snapshot(
process.out.bam,
process.out.versions,
file(process.out.bam[0][1]).name,
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") },
file(process.out.versions[0]).name
).match() }
).match()
}
)
}

Expand Down Expand Up @@ -219,10 +227,12 @@ nextflow_process {
assertAll (
{ assert process.success },
{ assert snapshot(
process.out.bam,
process.out.versions,
file(process.out.bam[0][1]).name,
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") },
file(process.out.versions[0]).name
).match() }
).match()
}
)
}

Expand Down Expand Up @@ -265,10 +275,12 @@ nextflow_process {
assertAll (
{ assert process.success },
{ assert snapshot(
process.out.bam,
process.out.versions,
file(process.out.bam[0][1]).name,
file(process.out.log[0][1]).name,
file(process.out.versions[0]).name
).match() }
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") },
).match()
}
)
}

Expand Down
128 changes: 110 additions & 18 deletions modules/nf-core/narfmap/align/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"homo_sapiens - [fastq1, fastq2], hashtable, true": {
"content": [
[
[
{
"id": "test",
"single_end": false
},
"test.bam:md5,5c407c8e621fc931af17a585526598bf"
]
],
[
"versions.yml:md5,f7f7afeeca9aecd25ef825978aac55d7"
],
"test.bam",
[
"decompHashTableCtxInit...",
Expand All @@ -9,21 +21,53 @@
"decompHashTableExtIndex...",
"decompHashTableAutoHits...",
"decompHashTableSetFlags..."
],
"versions.yml"
]
],
"timestamp": "2023-11-23T10:12:03.844836279"
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.2"
},
"timestamp": "2024-07-08T11:45:10.095839411"
},
"sarscov2 - [fastq1, fastq2], hashtable, true - stub": {
"content": [
[
[
{
"id": "test",
"single_end": false
},
"test.bam:md5,d41d8cd98f00b204e9800998ecf8427e"
]
],
[
"versions.yml:md5,f7f7afeeca9aecd25ef825978aac55d7"
],
"test.bam",
"test.log",
"versions.yml"
[

]
],
"timestamp": "2023-11-22T13:41:18.016853266"
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.2"
},
"timestamp": "2024-07-08T11:45:22.364107512"
},
"sarscov2 - fastq, hashtable, false": {
"content": [
[
[
{
"id": "test",
"single_end": true
},
"test.bam:md5,ea3a6f419b6c8f91e99603058c608124"
]
],
[
"versions.yml:md5,f7f7afeeca9aecd25ef825978aac55d7"
],
"test.bam",
[
"decompHashTableCtxInit...",
Expand All @@ -32,13 +76,28 @@
"decompHashTableExtIndex...",
"decompHashTableAutoHits...",
"decompHashTableSetFlags..."
],
"versions.yml"
]
],
"timestamp": "2023-11-23T10:11:33.956661024"
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.2"
},
"timestamp": "2024-07-08T11:43:57.96792573"
},
"sarscov2 - fastq, hashtable, true": {
"content": [
[
[
{
"id": "test",
"single_end": true
},
"test.bam:md5,e2632fce5442e05210edd516715489c4"
]
],
[
"versions.yml:md5,f7f7afeeca9aecd25ef825978aac55d7"
],
"test.bam",
[
"decompHashTableCtxInit...",
Expand All @@ -47,13 +106,28 @@
"decompHashTableExtIndex...",
"decompHashTableAutoHits...",
"decompHashTableSetFlags..."
],
"versions.yml"
]
],
"timestamp": "2023-11-23T10:11:40.270598375"
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.2"
},
"timestamp": "2024-07-08T11:44:17.486586239"
},
"sarscov2 - [fastq1, fastq2], hashtable, false": {
"content": [
[
[
{
"id": "test",
"single_end": false
},
"test.bam:md5,ef0c12ae27778b906fd4f822ef7ce074"
]
],
[
"versions.yml:md5,f7f7afeeca9aecd25ef825978aac55d7"
],
"test.bam",
[
"decompHashTableCtxInit...",
Expand All @@ -62,13 +136,28 @@
"decompHashTableExtIndex...",
"decompHashTableAutoHits...",
"decompHashTableSetFlags..."
],
"versions.yml"
]
],
"timestamp": "2023-11-23T10:11:46.928978876"
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.2"
},
"timestamp": "2024-07-08T11:44:48.178604348"
},
"sarscov2 - [fastq1, fastq2], hashtable, true": {
"content": [
[
[
{
"id": "test",
"single_end": false
},
"test.bam:md5,54965e6a11a9c31b1ae3c7e896c96c32"
]
],
[
"versions.yml:md5,f7f7afeeca9aecd25ef825978aac55d7"
],
"test.bam",
[
"decompHashTableCtxInit...",
Expand All @@ -77,9 +166,12 @@
"decompHashTableExtIndex...",
"decompHashTableAutoHits...",
"decompHashTableSetFlags..."
],
"versions.yml"
]
],
"timestamp": "2023-11-23T10:11:53.506727278"
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.2"
},
"timestamp": "2024-07-08T11:44:55.858525101"
}
}
6 changes: 4 additions & 2 deletions modules/nf-core/narfmap/align/tests/segfault.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ nextflow_process {
assertAll (
{ assert process.success },
{ assert snapshot(
process.out.bam,
process.out.versions,
file(process.out.bam[0][1]).name,
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") },
file(process.out.versions[0]).name
).match() }
).match()
}
)
}

Expand Down
19 changes: 15 additions & 4 deletions modules/nf-core/narfmap/align/tests/segfault.nf.test.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"This should segfault": {
"content": [
[
[
{
"id": "test",
"single_end": true
},
"test.bam:md5,c38463b4da3a56010093cf2ce7634b86"
]
],
[
"versions.yml:md5,f7f7afeeca9aecd25ef825978aac55d7"
],
"test.bam",
[
"decompHashTableCtxInit...",
Expand All @@ -9,13 +21,12 @@
"decompHashTableExtIndex...",
"decompHashTableAutoHits...",
"decompHashTableSetFlags..."
],
"versions.yml"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nextflow": "24.04.2"
},
"timestamp": "2024-02-11T23:08:34.922392857"
"timestamp": "2024-07-08T11:46:14.084669293"
}
}
8 changes: 8 additions & 0 deletions modules/nf-core/narfmap/hashtable/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@
"narfmap",
"versions.yml"
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.2"
},
"timestamp": "2023-12-15T17:42:36.677592114"
},
"sarscov2 - fasta": {
"content": [
"narfmap",
"versions.yml"
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.2"
},
"timestamp": "2023-12-15T17:42:32.074476297"
}
}

0 comments on commit 6d40730

Please sign in to comment.