Skip to content

Commit

Permalink
tests and docs for 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
James Dunkerley committed Feb 19, 2019
1 parent 06fe9cc commit 459c5a7
Show file tree
Hide file tree
Showing 9 changed files with 1,491 additions and 42 deletions.
514 changes: 480 additions & 34 deletions Coverage.yxmd

Large diffs are not rendered by default.

337 changes: 337 additions & 0 deletions DateUtils.Test/SecondTest.yxmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,337 @@
<?xml version="1.0"?>
<AlteryxDocument yxmdVer="2018.4">
<Nodes>
<Node ToolID="1">
<GuiSettings Plugin="AlteryxBasePluginsGui.DbFileInput.DbFileInput">
<Position x="54" y="54" />
</GuiSettings>
<Properties>
<Configuration>
<Passwords />
<File OutputFileName="" RecordLimit="" SearchSubDirs="False" FileFormat="25">.\TimeReference.xlsx</File>
<FormatSpecificOptions>
<FirstRowData>False</FirstRowData>
<ImportLine>1</ImportLine>
</FormatSpecificOptions>
</Configuration>
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText>TimeReference.xlsx</DefaultAnnotationText>
<Left value="False" />
</Annotation>
<Dependencies>
<Implicit />
</Dependencies>
<MetaInfo connection="Output">
<RecordInfo>
<Field name="Time" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\TimeReference.xlsx" type="Time" />
<Field name="Hour" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\TimeReference.xlsx" type="Double" />
<Field name="Minute" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\TimeReference.xlsx" type="Double" />
<Field name="Second" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\TimeReference.xlsx" type="Double" />
</RecordInfo>
</MetaInfo>
</Properties>
<EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxDbFileInput" />
</Node>
<Node ToolID="2">
<GuiSettings Plugin="AlteryxBasePluginsGui.AlteryxSelect.AlteryxSelect">
<Position x="162" y="54" />
</GuiSettings>
<Properties>
<Configuration>
<OrderChanged value="False" />
<CommaDecimal value="False" />
<SelectFields>
<SelectField field="Time" selected="True" />
<SelectField field="Second" selected="True" rename="Expected" />
<SelectField field="*Unknown" selected="False" />
</SelectFields>
</Configuration>
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText />
<Left value="False" />
</Annotation>
</Properties>
<EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxSelect" />
</Node>
<Node ToolID="3">
<GuiSettings Plugin="AlteryxBasePluginsGui.Formula.Formula">
<Position x="270" y="54" />
</GuiSettings>
<Properties>
<Configuration>
<FormulaFields>
<FormulaField expression="second([Time])" field="Actual" size="4" type="Int32" />
</FormulaFields>
</Configuration>
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText><![CDATA[Actual = second([Time])
]]></DefaultAnnotationText>
<Left value="False" />
</Annotation>
</Properties>
<EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxFormula" />
</Node>
<Node ToolID="4">
<GuiSettings Plugin="AlteryxBasePluginsGui.Filter.Filter">
<Position x="390" y="54" />
</GuiSettings>
<Properties>
<Configuration>
<Expression>[Actual] != [Expected]</Expression>
<Mode>Custom</Mode>
</Configuration>
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText>[Actual] != [Expected]</DefaultAnnotationText>
<Left value="False" />
</Annotation>
</Properties>
<EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxFilter" />
</Node>
<Node ToolID="6">
<GuiSettings Plugin="AlteryxBasePluginsGui.DbFileInput.DbFileInput">
<Position x="54" y="162" />
</GuiSettings>
<Properties>
<Configuration>
<Passwords />
<File OutputFileName="" RecordLimit="" SearchSubDirs="False" FileFormat="25">.\DateTimeReference.xlsx</File>
<FormatSpecificOptions>
<FirstRowData>False</FirstRowData>
<ImportLine>1</ImportLine>
</FormatSpecificOptions>
</Configuration>
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText>DateTimeReference.xlsx</DefaultAnnotationText>
<Left value="False" />
</Annotation>
<Dependencies>
<Implicit />
</Dependencies>
<MetaInfo connection="Output">
<RecordInfo>
<Field name="DateTimeText" size="255" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="V_String" />
<Field name="Year" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="Double" />
<Field name="Month" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="Double" />
<Field name="Day" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="Double" />
<Field name="Weekday" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="Double" />
<Field name="Quarter" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="Double" />
<Field name="IsLeapYear" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="Bool" />
<Field name="OrdinalDay" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="Double" />
<Field name="Hour" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="Double" />
<Field name="Minute" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="Double" />
<Field name="Second" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="Double" />
<Field name="WeekStart" size="255" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="V_String" />
<Field name="WeekEnd" size="255" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="V_String" />
<Field name="MonthStart" size="255" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="V_String" />
<Field name="MonthEnd" size="255" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="V_String" />
<Field name="QuarterStart" size="255" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="V_String" />
<Field name="QuarterEnd" size="255" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="V_String" />
<Field name="YearStart" size="255" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="V_String" />
<Field name="YearEnd" size="255" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="V_String" />
<Field name="Century" source="File: C:\Repos\AlteryxFormulaAddOns\DateUtils.Test\DateTimeReference.xlsx" type="Double" />
</RecordInfo>
</MetaInfo>
</Properties>
<EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxDbFileInput" />
</Node>
<Node ToolID="7">
<GuiSettings Plugin="AlteryxBasePluginsGui.AlteryxSelect.AlteryxSelect">
<Position x="162" y="162" />
</GuiSettings>
<Properties>
<Configuration>
<OrderChanged value="False" />
<CommaDecimal value="False" />
<SelectFields>
<SelectField field="DateTimeText" selected="True" rename="Date" type="DateTime" size="19" />
<SelectField field="Day" selected="False" type="Int64" size="8" />
<SelectField field="Second" selected="True" rename="Expected" />
<SelectField field="*Unknown" selected="False" />
</SelectFields>
</Configuration>
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText />
<Left value="False" />
</Annotation>
</Properties>
<EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxSelect" />
</Node>
<Node ToolID="8">
<GuiSettings Plugin="AlteryxBasePluginsGui.Formula.Formula">
<Position x="270" y="162" />
</GuiSettings>
<Properties>
<Configuration>
<FormulaFields>
<FormulaField expression="Second([Date])" field="Actual" size="4" type="Int32" />
</FormulaFields>
</Configuration>
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText><![CDATA[Actual = Second([Date])
]]></DefaultAnnotationText>
<Left value="False" />
</Annotation>
</Properties>
<EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxFormula" />
</Node>
<Node ToolID="9">
<GuiSettings Plugin="AlteryxBasePluginsGui.Filter.Filter">
<Position x="390" y="162" />
</GuiSettings>
<Properties>
<Configuration>
<Expression>[Actual] != [Expected]</Expression>
<Mode>Custom</Mode>
<Simple>
<Operator>=</Operator>
<Operands>
<IgnoreTimeInDateTime>True</IgnoreTimeInDateTime>
<DateType>fixed</DateType>
<PeriodDate>2019-02-15 21:52:45</PeriodDate>
<PeriodType>
</PeriodType>
<PeriodCount>0</PeriodCount>
<StartDate>2019-02-15 21:52:45</StartDate>
<EndDate>2019-02-15 21:52:45</EndDate>
<Operand>
</Operand>
</Operands>
</Simple>
</Configuration>
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText>[Actual] != [Expected]</DefaultAnnotationText>
<Left value="False" />
</Annotation>
</Properties>
<EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxFilter" />
</Node>
<Node ToolID="10">
<GuiSettings Plugin="AlteryxBasePluginsGui.Test.Test">
<Position x="510" y="162" />
</GuiSettings>
<Properties>
<Configuration>
<Tests>
<Test>
<Name>Second DateTime</Name>
<Connection>#1</Connection>
<Type>RecCountValue</Type>
<Value>0</Value>
</Test>
</Tests>
<DontReportSubsequent value="True" />
</Configuration>
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText>Second DateTime</DefaultAnnotationText>
<Left value="False" />
</Annotation>
</Properties>
<EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxTest" />
</Node>
<Node ToolID="11">
<GuiSettings Plugin="AlteryxBasePluginsGui.Test.Test">
<Position x="510" y="54" />
</GuiSettings>
<Properties>
<Configuration>
<Tests>
<Test>
<Name>Second</Name>
<Connection>#1</Connection>
<Type>RecCountValue</Type>
<Value>0</Value>
</Test>
</Tests>
<DontReportSubsequent value="True" />
</Configuration>
<Annotation DisplayMode="0">
<Name />
<DefaultAnnotationText>Second</DefaultAnnotationText>
<Left value="False" />
</Annotation>
</Properties>
<EngineSettings EngineDll="AlteryxBasePluginsEngine.dll" EngineDllEntryPoint="AlteryxTest" />
</Node>
</Nodes>
<Connections>
<Connection>
<Origin ToolID="1" Connection="Output" />
<Destination ToolID="2" Connection="Input" />
</Connection>
<Connection>
<Origin ToolID="2" Connection="Output" />
<Destination ToolID="3" Connection="Input" />
</Connection>
<Connection>
<Origin ToolID="3" Connection="Output" />
<Destination ToolID="4" Connection="Input" />
</Connection>
<Connection name="#1">
<Origin ToolID="4" Connection="True" />
<Destination ToolID="11" Connection="Input" />
</Connection>
<Connection>
<Origin ToolID="6" Connection="Output" />
<Destination ToolID="7" Connection="Input" />
</Connection>
<Connection>
<Origin ToolID="7" Connection="Output" />
<Destination ToolID="8" Connection="Input" />
</Connection>
<Connection>
<Origin ToolID="8" Connection="Output" />
<Destination ToolID="9" Connection="Input" />
</Connection>
<Connection name="#1">
<Origin ToolID="9" Connection="True" />
<Destination ToolID="10" Connection="Input" />
</Connection>
</Connections>
<Properties>
<Memory default="True" />
<GlobalRecordLimit value="0" />
<TempFiles default="True" />
<Annotation on="True" includeToolName="False" />
<ConvErrorLimit value="10" />
<ConvErrorLimit_Stop value="False" />
<CancelOnError value="False" />
<DisableBrowse value="False" />
<EnablePerformanceProfiling value="False" />
<DisableAllOutput value="False" />
<ShowAllMacroMessages value="False" />
<ShowConnectionStatusIsOn value="True" />
<ShowConnectionStatusOnlyWhenRunning value="True" />
<ZoomLevel value="0" />
<LayoutType>Horizontal</LayoutType>
<MetaInfo>
<NameIsFileName value="True" />
<Name>SecondTest</Name>
<Description />
<RootToolName />
<ToolVersion />
<ToolInDb value="False" />
<CategoryName />
<SearchTags />
<Author />
<Company />
<Copyright />
<DescriptionLink actual="" displayed="" />
<Example>
<Description />
<File />
</Example>
</MetaInfo>
<Events>
<Enabled value="True" />
</Events>
</Properties>
</AlteryxDocument>
Loading

0 comments on commit 459c5a7

Please sign in to comment.