public class TestBOpUtility extends TestCase2
BOpUtility.TestCase2.MyProperties, TestCase2.RandomType_randomType, log| Constructor and Description |
|---|
TestBOpUtility() |
TestBOpUtility(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
test_annotationOpIterator()
Unit test for
BOpUtility.annotationOpIterator(BOp). |
void |
test_getArgumentVariables()
Unit test for
BOpUtility.getArgumentVariables(BOp) and
BOpUtility.getArgumentVariableCount(BOp). |
void |
test_getEvaluationOrder()
Unit tests for extracting the left-deep evaluation order for the query
pipeline.
|
void |
test_getIndex_doesNotIndexAnnotations()
Unit test verifies that annotations are not indexed (they are outside of
the pipeline).
|
void |
test_getIndex_rejectsDuplicateBOpIds()
Unit test for
BOpUtility.getIndex(BOp) in which we verify that
it rejects operator trees having duplicate operator ids. |
void |
test_getIndex_rejectsNonIntegerIds()
Unit test for
BOpUtility.getIndex(BOp) in which we verify that it
rejects operator trees with operator ids which are not Integers. |
void |
test_getIndex_rejectsNonPipelineOps()
Unit test verifies that non-pipeline operators are rejected.
|
void |
test_getIndex()
Unit test for
BOpUtility.getIndex(BOp) using valid inputs. |
void |
test_getParent()
Unit test for
BOpUtility.getParent(BOp, BOp). |
void |
test_getPipelineStart()
Unit test for locating the left-deep child at which pipeline evaluation
should begin.
|
void |
test_getSpannedVariables()
Unit test for
BOpUtility.getSpannedVariables(BOp). |
void |
test_postOrderIterator()
Unit test for
BOpUtility.postOrderIterator(BOp). |
void |
test_postOrderIteratorWithAnnotations()
Unit test for
BOpUtility.postOrderIteratorWithAnnotations(BOp). |
void |
test_preOrderIterator()
Unit test for
BOpUtility.preOrderIterator(BOp). |
void |
test_preOrderIteratorWithAnnotations()
Unit test for
BOpUtility.preOrderIteratorWithAnnotations(BOp). |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getProperties, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logPropertiesassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic TestBOpUtility()
public TestBOpUtility(String name)
name - public void test_getArgumentVariables()
BOpUtility.getArgumentVariables(BOp) and
BOpUtility.getArgumentVariableCount(BOp).public void test_preOrderIterator()
BOpUtility.preOrderIterator(BOp).public void test_postOrderIterator()
BOpUtility.postOrderIterator(BOp).public void test_annotationOpIterator()
BOpUtility.annotationOpIterator(BOp).
Note: This test depends on the LinkedHashMap imposing the ordering in which the annotations are declared.
public void test_preOrderIteratorWithAnnotations()
BOpUtility.preOrderIteratorWithAnnotations(BOp).
Note: This test depends on the LinkedHashMap imposing the ordering in which the annotations are declared.
public void test_postOrderIteratorWithAnnotations()
BOpUtility.postOrderIteratorWithAnnotations(BOp).
Note: This test depends on the LinkedHashMap imposing the ordering in which the annotations are declared.
public void test_getSpannedVariables()
BOpUtility.getSpannedVariables(BOp).public void test_getIndex()
BOpUtility.getIndex(BOp) using valid inputs.public void test_getIndex_doesNotIndexAnnotations()
public void test_getIndex_rejectsDuplicateBOpIds()
BOpUtility.getIndex(BOp) in which we verify that
it rejects operator trees having duplicate operator ids.public void test_getIndex_rejectsNonIntegerIds()
BOpUtility.getIndex(BOp) in which we verify that it
rejects operator trees with operator ids which are not Integers.public void test_getIndex_rejectsNonPipelineOps()
public void test_getParent()
BOpUtility.getParent(BOp, BOp).public void test_getPipelineStart()
public void test_getEvaluationOrder()
- test when the 1st operator is a control operator.
- test when there is an embedded control operator (subquery).
Note: this is not testing with left/right branches in the query plan. That sort of plan is not currently supported by pipeline evaluation.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.