mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
33 lines
1.1 KiB
XML
33 lines
1.1 KiB
XML
<tool name="expression_null_handling_text" id="expression_null_handling_text"
|
|
version="0.1.0" tool_type="expression">
|
|
<expression type="ecma5.1">
|
|
{return {'text_out': $job.text_input};}
|
|
</expression>
|
|
<inputs>
|
|
<param type="text" label="Text input." name="text_input" optional="true" />
|
|
</inputs>
|
|
<outputs>
|
|
<output type="text" name="text_out" from="text_out" />
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<param name="text_input" value_json=""foo bar"" />
|
|
<output name="text_out" value_json=""foo bar"" />
|
|
</test>
|
|
<test>
|
|
<param name="text_input" value_json=""null"" />
|
|
<output name="text_out" value_json=""null"" />
|
|
</test>
|
|
<!-- Bug with the following test on postgres.
|
|
<test>
|
|
<param name="text_input" value_json="""" />
|
|
<output name="text_out" value_json="""" />
|
|
</test>
|
|
-->
|
|
<test>
|
|
<param name="text_input" value_json="null" />
|
|
<output name="text_out" value_json="null" />
|
|
</test>
|
|
</tests>
|
|
</tool>
|