Skip to content

Commit

Permalink
Update for test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: currantw <[email protected]>
  • Loading branch information
currantw committed Feb 3, 2025
1 parent af9f294 commit bf49974
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ void testStructMissing() {
assertEquals(rowValue, actual);
}

@Test
void testStructUnknown() {
ExprValue actual = execute(flatten(inputPlan, DSL.ref("struct_unknown", STRUCT))).getFirst();
assertEquals(rowValue, actual);
}

@Test
void testStruct() {
ExprValue actual = execute(flatten(inputPlan, DSL.ref("struct", STRUCT))).getFirst();
Expand Down Expand Up @@ -140,14 +146,9 @@ void testAncestorStructMissing() {
}

@Test
void testPathMissing() {
ExprValue actual = execute(flatten(inputPlan, DSL.ref("struct.unknown", STRUCT))).getFirst();
assertEquals(rowValue, actual);
}

@Test
void testAncestorPathMissing() {
ExprValue actual = execute(flatten(inputPlan, DSL.ref("unknown", STRUCT))).getFirst();
void testAncestorStructUnknown() {
ExprValue actual =
execute(flatten(inputPlan, DSL.ref("struct_unknown.path", STRUCT))).getFirst();
assertEquals(rowValue, actual);
}

Expand Down

0 comments on commit bf49974

Please sign in to comment.