public void CallScopeMap01() { var t = typeof(ScopeMap01); var run = AnalyzeProcessor(t, "X: string", "X: string, a: int"); var s = SarifLogger.SarifRunToString(run); Assert.IsNotNull(run); Assert.IsTrue(run.BothAnalysesAgree()); }
public void CallPassColumnValuesToMethodReducer() { var t = typeof(PassColumnValuesToMethodReducer); var run = AnalyzeProcessor(t, "A: string", "A: string"); var s = SarifLogger.SarifRunToString(run); Assert.IsNotNull(run); Assert.IsTrue(run.BothAnalysesAgree()); }
public void CallConditionalColumnReducer() { var t = typeof(ConditionalColumnReducer); var run = AnalyzeProcessor(t, "A: string, B: string", "OutputColumn: string"); var s = SarifLogger.SarifRunToString(run); Assert.IsNotNull(run); Assert.IsTrue(run.BothAnalysesAgree()); }
public void CallRowCountReducer() { var t = typeof(RowCountReducer); var run = AnalyzeProcessor(t, "X: string, Y: int", "X: string, Y: int"); var s = SarifLogger.SarifRunToString(run); Assert.IsNotNull(run); // Diego: This test fail because the processor does not read any input columns and do not write an output column explicitly // It seems the doing yield return is not enough Assert.IsTrue(run.BothAnalysesAgree()); }