Class RangeTest
java.lang.Object
org.checkerframework.framework.test.junit.RangeTest
This class tests the Range class, independent of the Value Checker.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidTest long factory.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestPlus()voidRefining by a constant that matches a boundary of this range should remove only that boundary value.voidRefining by a non-boundary constant or by a non-constant range is intentionally conservative and returns this range unchanged.voidSymmetric boundary trimming at Long.MAX_VALUE.voidRefining at the Long.MIN_VALUE boundary when 'this' is not constant must still trim normally and not get caught by the same-constant early return.voidRefining '[c, c] != [c, c]' for a "normal" constant c should return NOTHING.voidRefining '[Long.MAX_VALUE, Long.MAX_VALUE] != itself' must be NOTHING.voidRefining '[Long.MIN_VALUE, Long.MIN_VALUE] != itself' must be NOTHING.voidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
RangeTest
public RangeTest()
-
-
Method Details
-
testIntRange
public void testIntRange() -
testShortRange
public void testShortRange() -
testCharRange
public void testCharRange() -
testByteRange
public void testByteRange() -
testUnion
public void testUnion() -
testIntersect
public void testIntersect() -
testPlus
public void testPlus() -
testMinus
public void testMinus() -
testTimes
public void testTimes() -
testDivide
public void testDivide() -
testRemainder
public void testRemainder() -
testShiftLeft
public void testShiftLeft() -
testSignedShiftRight
public void testSignedShiftRight() -
testUnsignedShiftRight
public void testUnsignedShiftRight() -
testUnaryPlus
public void testUnaryPlus() -
testUnaryMinus
public void testUnaryMinus() -
testBitwiseComplement
public void testBitwiseComplement() -
testBitwiseAnd
public void testBitwiseAnd() -
testLessThan
public void testLessThan() -
testLessThanEq
public void testLessThanEq() -
testGreaterThan
public void testGreaterThan() -
testGreaterThanEq
public void testGreaterThanEq() -
testEqualTo
public void testEqualTo() -
testRefineNotEqualToSelfConstant
public void testRefineNotEqualToSelfConstant()Refining '[c, c] != [c, c]' for a "normal" constant c should return NOTHING. -
testRefineNotEqualToBoundary
public void testRefineNotEqualToBoundary()Refining by a constant that matches a boundary of this range should remove only that boundary value. -
testRefineNotEqualToConservative
public void testRefineNotEqualToConservative()Refining by a non-boundary constant or by a non-constant range is intentionally conservative and returns this range unchanged. -
testRefineNotEqualToSelfMinLong
public void testRefineNotEqualToSelfMinLong()Refining '[Long.MIN_VALUE, Long.MIN_VALUE] != itself' must be NOTHING. -
testRefineNotEqualToSelfMaxLong
public void testRefineNotEqualToSelfMaxLong()Refining '[Long.MAX_VALUE, Long.MAX_VALUE] != itself' must be NOTHING. -
testRefineNotEqualToMinLongBoundary
public void testRefineNotEqualToMinLongBoundary()Refining at the Long.MIN_VALUE boundary when 'this' is not constant must still trim normally and not get caught by the same-constant early return. -
testRefineNotEqualToMaxLongBoundary
public void testRefineNotEqualToMaxLongBoundary()Symmetric boundary trimming at Long.MAX_VALUE. -
testFactoryLongLong
public void testFactoryLongLong()Test long factory. -
testFactoryList
public void testFactoryList() -
testFactoryTypeKind
public void testFactoryTypeKind() -
testFactoryTypeKindFailure
public void testFactoryTypeKindFailure()
-