Skip to content

Conversation

@aindlq
Copy link

@aindlq aindlq commented Apr 1, 2024

  1. small refactoring, to remove duplicated code
  2. simplify Literal xpath generation for the association table
  3. add unit test for association table generation

1. small refactoring, to remove duplicated code
2. simplify Literal xpath generation for the association table
3. add unit test for association table generation

Signed-off-by: Artem Kozlov <[email protected]>
@aindlq aindlq force-pushed the association-table-tests branch from 07457b7 to 55432e9 Compare April 1, 2024 18:55
Support function calls, relative path and indexed access. Update unit
test accordingly.

Signed-off-by: Artem Kozlov <[email protected]>
@aindlq
Copy link
Author

aindlq commented Apr 2, 2024

Association table didn't generated proper xpath when it already contained indexed access or relative path. I fixed that and added a unit test for that.

XPath generation was messing with paths inside function calls. With
this change we add [1] only to path segments that are not inside
function calls.

Signed-off-by: Artem Kozlov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant