Skip to content

Commit

Permalink
Update VectorHolder unit tests for isDummy method
Browse files Browse the repository at this point in the history
  • Loading branch information
slessard committed Sep 26, 2024
1 parent bbc776d commit 2bf5b2f
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,24 @@ void testDummyHolder() {
}

@Test
void testIsDummy1() {
void testIsDummyWithDeletedVectorHolder() {
// Test case where vector is null
VectorHolder vh = VectorHolder.deletedVectorHolder(0);
boolean result = vh.isDummy();
Assertions.assertEquals(true, result);
}

@Test
void testIsDummyWithDummyHolder() {
// Test case where vector is a NullVector instance
VectorHolder vh = VectorHolder.dummyHolder(0);
boolean result = vh.isDummy();
Assertions.assertEquals(true, result);
}

@Test
void testIsDummy2() {
void testIsDummyWithConstantVectorHolder() {
// Test case where vector is null
VectorHolder vh = VectorHolder.constantHolder(this.icebergField, 0, "a");
boolean result = vh.isDummy();
Assertions.assertEquals(true, result);
Expand Down

0 comments on commit 2bf5b2f

Please sign in to comment.