-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameter models for optional data columns.
- Loading branch information
Showing
4 changed files
with
46 additions
and
2 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
28 changes: 28 additions & 0 deletions
28
test/functional/tools/parameters/gx_data_column_optional.xml
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,28 @@ | ||
<tool id="gx_data_column_optional" name="gx_data_column_optional" version="1.0.0"> | ||
<macros> | ||
<import>macros.xml</import> | ||
</macros> | ||
<command><![CDATA[ | ||
echo 'parameter: $parameter' >> '$output' | ||
]]></command> | ||
<inputs> | ||
<param name="ref_parameter" type="data" format="tabular" /> | ||
<param name="parameter" type="data_column" data_ref="ref_parameter" optional="true" /> | ||
</inputs> | ||
<expand macro="simple_text_output" /> | ||
<tests> | ||
<test> | ||
<param name="ref_parameter" value="2.tabular" /> | ||
<param name="parameter" value="1" /> | ||
<expand macro="assert_output"> | ||
<has_line line="parameter: 1"/> | ||
</expand> | ||
</test> | ||
<test> | ||
<param name="ref_parameter" value="2.tabular" /> | ||
<expand macro="assert_output"> | ||
<has_line line="parameter: None"/> | ||
</expand> | ||
</test> | ||
</tests> | ||
</tool> |
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