-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
70 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
plugins { | ||
id 'nf-hello' | ||
id 'nf-polly' | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,12 +26,12 @@ import nextflow.trace.TraceObserverFactory | |
* @author Paolo Di Tommaso <[email protected]> | ||
*/ | ||
@CompileStatic | ||
class HelloFactory implements TraceObserverFactory { | ||
class PollyFactory implements TraceObserverFactory { | ||
|
||
@Override | ||
Collection<TraceObserver> create(Session session) { | ||
final result = new ArrayList() | ||
result.add( new HelloObserver() ) | ||
result.add( new PollyObserver() ) | ||
return result | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,9 +27,9 @@ import org.pf4j.PluginWrapper | |
* @author Paolo Di Tommaso <[email protected]> | ||
*/ | ||
@CompileStatic | ||
class HelloPlugin extends BasePlugin { | ||
class PollyPlugin extends BasePlugin { | ||
|
||
HelloPlugin(PluginWrapper wrapper) { | ||
PollyPlugin(PluginWrapper wrapper) { | ||
super(wrapper) | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...-hello/src/resources/META-INF/MANIFEST.MF → ...-polly/src/resources/META-INF/MANIFEST.MF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Manifest-Version: 1.0 | ||
Plugin-Id: nf-hello | ||
Plugin-Id: nf-polly | ||
Plugin-Version: 0.5.0 | ||
Plugin-Class: nextflow.hello.HelloPlugin | ||
Plugin-Class: nextflow.hello.PollyPlugin | ||
Plugin-Provider: nextflow | ||
Plugin-Requires: >=24.01.0-edge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nextflow.hello.PollyFactory | ||
nextflow.hello.PollyExtension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,12 @@ import java.nio.file.Path | |
|
||
|
||
/** | ||
* Unit test for Hello DSL | ||
* Unit test for Polly DSL | ||
* | ||
* @author : jorge <[email protected]> | ||
*/ | ||
@Timeout(10) | ||
class HelloDslTest extends Dsl2Spec{ | ||
class PollyDslTest extends Dsl2Spec{ | ||
|
||
@Shared String pluginsMode | ||
|
||
|
@@ -66,11 +66,11 @@ class HelloDslTest extends Dsl2Spec{ | |
def 'should perform a hi and create a channel' () { | ||
when: | ||
def SCRIPT = ''' | ||
include {reverse} from 'plugin/nf-hello' | ||
include {reverse} from 'plugin/nf-polly' | ||
channel.reverse('hi!') | ||
''' | ||
and: | ||
def result = new MockScriptRunner([hello:[prefix:'>>']]).setScript(SCRIPT).execute() | ||
def result = new MockScriptRunner([Polly:[prefix:'>>']]).setScript(SCRIPT).execute() | ||
then: | ||
result.val == 'hi!'.reverse() | ||
result.val == Channel.STOP | ||
|
@@ -79,7 +79,7 @@ class HelloDslTest extends Dsl2Spec{ | |
def 'should store a goodbye' () { | ||
when: | ||
def SCRIPT = ''' | ||
include {goodbye} from 'plugin/nf-hello' | ||
include {goodbye} from 'plugin/nf-polly' | ||
channel | ||
.of('folks') | ||
.goodbye() | ||
|
@@ -95,9 +95,9 @@ class HelloDslTest extends Dsl2Spec{ | |
def 'can use an imported function' () { | ||
when: | ||
def SCRIPT = ''' | ||
include {randomString} from 'plugin/nf-hello' | ||
include {reportMetric} from 'plugin/nf-polly' | ||
channel | ||
.of( randomString(20) ) | ||
.of( reportMetric("key","value") ) | ||
''' | ||
and: | ||
def result = new MockScriptRunner([:]).setScript(SCRIPT).execute() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,14 +23,14 @@ import spock.lang.Specification | |
* | ||
* @author Paolo Di Tommaso <[email protected]> | ||
*/ | ||
class HelloFactoryTest extends Specification { | ||
class PollyFactoryTest extends Specification { | ||
|
||
def 'should return observer' () { | ||
when: | ||
def result = new HelloFactory().create(Mock(Session)) | ||
def result = new PollyFactory().create(Mock(Session)) | ||
then: | ||
result.size()==1 | ||
result[0] instanceof HelloObserver | ||
result[0] instanceof PollyObserver | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ import java.util.zip.GZIPInputStream | |
* | ||
* @author Paolo Di Tommaso <[email protected]> | ||
*/ | ||
class TestHelper { | ||
class PollyHelper { | ||
|
||
static private fs = Jimfs.newFileSystem(Configuration.unix()); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters