Skip to content

Commit

Permalink
Fix test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
yogilad committed Nov 4, 2023
1 parent aeb6512 commit c606b30
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Src/Test/UtilsTest/TabularDataHelperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void AnalyzeTsvStringWithHeader()
var generator = new TableGenerator(autoGenerateScheme: true);
var tableScheme = generator.GenerateTableScheme();
var tableData = generator.GenerateTableString(lines: 10, addHeader: true, addNullRows: true, addEmptyRows: true);
var res = TabularDataHelper.TryAnalyzeTabularData(tableData, "\t", out var scheme, out var firstRowIsHeader);
var res = TabularDataHelper.TryAnalyzeTabularData(tableData, "\t", KqlTypeDetectionMode.All, isFirstRowHeader: null,out var scheme, out var firstRowIsHeader);

Assert.IsTrue(res);
Assert.IsTrue(firstRowIsHeader);
Expand All @@ -25,7 +25,7 @@ public void AnalyzeTsvStringWithoutHeader()
var generator = new TableGenerator(autoGenerateScheme: true);
var tableScheme = generator.GenerateTableScheme(firstRowIsHeader: false);
var tableData = generator.GenerateTableString(lines: 10, addHeader: false);
var res = TabularDataHelper.TryAnalyzeTabularData(tableData, "\t", out var scheme, out var firstRowIsHeader);
var res = TabularDataHelper.TryAnalyzeTabularData(tableData, "\t", KqlTypeDetectionMode.All, isFirstRowHeader: null, out var scheme, out var firstRowIsHeader);

Assert.IsTrue(res);
Assert.IsFalse(firstRowIsHeader);
Expand All @@ -38,7 +38,7 @@ public void AnalyzeTsvStringWithHeaderOnly()
var generator = new TableGenerator(autoGenerateScheme: true);
var tableScheme = generator.GenerateTableScheme(firstRowIsHeader: true);
var tableData = generator.GenerateTableString(lines: 0, addHeader: true);
var res = TabularDataHelper.TryAnalyzeTabularData(tableData, "\t", out var scheme, out var firstRowIsHeader);
var res = TabularDataHelper.TryAnalyzeTabularData(tableData, "\t", KqlTypeDetectionMode.All, isFirstRowHeader: null, out var scheme, out var firstRowIsHeader);

Assert.IsTrue(res);
Assert.IsFalse(firstRowIsHeader);
Expand All @@ -51,7 +51,7 @@ public void AnalyzeTsvStringWithSingleLineNoHeader()
var generator = new TableGenerator(autoGenerateScheme: true);
var tableScheme = generator.GenerateTableScheme(firstRowIsHeader: false);
var tableData = generator.GenerateTableString(lines: 1, addHeader: false);
var res = TabularDataHelper.TryAnalyzeTabularData(tableData, "\t", out var scheme, out var firstRowIsHeader);
var res = TabularDataHelper.TryAnalyzeTabularData(tableData, "\t", KqlTypeDetectionMode.All, isFirstRowHeader: null, out var scheme, out var firstRowIsHeader);

Assert.IsTrue(res);
Assert.IsFalse(firstRowIsHeader);
Expand All @@ -64,7 +64,7 @@ public void AnalyzeCsvStream()
var generator = new TableGenerator(autoGenerateScheme: true);
var tableScheme = generator.GenerateTableScheme();
var tableData = generator.GenerateTableStream(lines: 10, addHeader: true);
var res = TabularDataHelper.TryAnalyzeTabularData(tableData, ",", out var scheme, out var firstRowIsHeader);
var res = TabularDataHelper.TryAnalyzeTabularData(tableData, ",", KqlTypeDetectionMode.All, isFirstRowHeader: null, out var scheme, out var firstRowIsHeader);

Assert.IsTrue(res);
Assert.IsTrue(firstRowIsHeader);
Expand All @@ -77,7 +77,7 @@ public void ConvertTsvStringToInlineQuery()
var generator = new TableGenerator(autoGenerateScheme: true);
var tableScheme = generator.GenerateTableScheme();
var tableData = generator.GenerateTableString(lines: 100, addHeader: true, addNullRows: false, addEmptyRows: false);
var res = TabularDataHelper.TryConvertTableToInlineQuery(tableData, "\t", optionalKqlSuffix: null, out string inlineQuery);
var res = TabularDataHelper.TryConvertTableToInlineQuery(tableData, "\t", KqlTypeDetectionMode.All, isFirstRowHeader: null, optionalKqlSuffix: null, out string inlineQuery);

Assert.IsTrue(res);
Assert.IsNotNull(inlineQuery);
Expand All @@ -89,7 +89,7 @@ public void ConvertTsvStringToInlineQueryLink()
var generator = new TableGenerator(autoGenerateScheme: true);
var tableScheme = generator.GenerateTableScheme();
var tableData = generator.GenerateTableString(lines: 200, addHeader: true, addNullRows: false, addEmptyRows: false);
var res = TabularDataHelper.TryConvertTableToInlineQuery(tableData, "\t", optionalKqlSuffix: null, out string? inlineQueryLink);
var res = TabularDataHelper.TryConvertTableToInlineQuery(tableData, "\t", KqlTypeDetectionMode.All, isFirstRowHeader: null, optionalKqlSuffix: null, out string? inlineQueryLink);

Assert.IsTrue(res);
Assert.IsNotNull(inlineQueryLink);
Expand Down

0 comments on commit c606b30

Please sign in to comment.