Skip to content

Commit

Permalink
Add comments to v1 tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
  • Loading branch information
bentsherman committed Mar 3, 2025
1 parent b28023a commit c287852
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 90 deletions.
1 change: 1 addition & 0 deletions tests/v1-complex-names-dsl2.nf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env nextflow
// parser_v1: dollar slashy strings

process foo {
publishDir 'foo', mode: 'copy'
Expand Down
17 changes: 2 additions & 15 deletions tests/v1-env.nf
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
#!/usr/bin/env nextflow
/*
* Copyright 2013-2024, Seqera Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// parser_v1: unquoted env inputs/outputs
// parser_v1: implicit process script section

process foo {
output:
Expand Down
16 changes: 1 addition & 15 deletions tests/v1-error-finish.nf
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
#!/usr/bin/env nextflow
/*
* Copyright 2013-2024, Seqera Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// parser_v1: mixing script declarations and statements

process foo {
debug true
Expand Down
1 change: 1 addition & 0 deletions tests/v1-output-globs.nf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// parser_v1: mixing script declarations and statements

def CMD = """
mkdir -p a/a b/b c/c
Expand Down
1 change: 1 addition & 0 deletions tests/v1-output-val-dsl2.nf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env nextflow
// parser_v1: mixing script declarations and statements

x = 100
y = 200
Expand Down
18 changes: 3 additions & 15 deletions tests/v1-publish-saveas.nf
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
#!/usr/bin/env nextflow
/*
* Copyright 2013-2024, Seqera Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// parser_v1: implicit environment variables
// parser_v1: method pointers
// parser_v1: implicit process script section

def rule( file ) {
if( file == 'file_1.txt' )
Expand Down
17 changes: 2 additions & 15 deletions tests/v1-singleton.nf
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
#!/usr/bin/env nextflow
/*
* Copyright 2013-2024, Seqera Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// parser_v1: unquoted file output
// parser_v1: implicit process script section

process foo {
output:
Expand Down
1 change: 1 addition & 0 deletions tests/v1-subworkflow-dsl2.nf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash nextflow
// parser_v1: implicit workflow main section

process foo {
output: stdout
Expand Down
16 changes: 1 addition & 15 deletions tests/v1-task-retry.nf
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
#!/usr/bin/env nextflow
/*
* Copyright 2013-2024, Seqera Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// parser_v1: implicit environment variables

workflow {
foo()
Expand Down
1 change: 1 addition & 0 deletions tests/v1-tuples-dsl2.nf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env nextflow
// parser_v1: multi-line slashy strings

process touch {

Expand Down
16 changes: 1 addition & 15 deletions tests/v1-when-block.nf
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
#!/usr/bin/env nextflow
/*
* Copyright 2013-2024, Seqera Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// parser_v1: mixing script declarations and statements

items = [0,1,2,3,4]
decode = ['zero','one','two','three','fourth']
Expand Down

0 comments on commit c287852

Please sign in to comment.