Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Function is not tracked if it is an attribute #12

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

kohlerca
Copy link
Collaborator

@kohlerca kohlerca commented Aug 2, 2023

Currently, the tracking analysis will miss functions that are called as an attribute.

For example, if module.function is instrumented with the Provenance decorator, the call

result = module.function(input)

will be missed.

This was an error in the analysis of the AST of the code statement.
This PR fixes that behavior, and implements unit tests.

@kohlerca kohlerca merged commit 526828e into main Aug 2, 2023
5 checks passed
@kohlerca kohlerca added the bugfix Fix for an identified bug label Aug 2, 2023
@kohlerca kohlerca deleted the fix/attribute_call branch August 2, 2023 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fix for an identified bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant