Skip to content

Fix association table xpath for custom Literal generators.#165

Open
aindlq wants to merge 3 commits intoisl:masterfrom
aindlq:association-table-tests
Open

Fix association table xpath for custom Literal generators.#165
aindlq wants to merge 3 commits intoisl:masterfrom
aindlq:association-table-tests

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 <artem@rem.sh>
@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 <artem@rem.sh>
@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 <artem@rem.sh>
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