-
Notifications
You must be signed in to change notification settings - Fork 574
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
Add tests (and refactor) API extraction and symbol generation #2597
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: vibhatsu <[email protected]>
Signed-off-by: vibhatsu <[email protected]>
Signed-off-by: vibhatsu <[email protected]>
assert trim_dll_part("kernel32.CreateFileA") == "CreateFileA" | ||
assert trim_dll_part("System.Convert::FromBase64String") == "System.Convert::FromBase64String" | ||
assert trim_dll_part("System.Diagnostics.Debugger::IsLogging") == "System.Diagnostics.Debugger::IsLogging" | ||
assert trim_dll_part("ws2_32.#1") == "ws2_32.#1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems inconsistent to me:
assert trim_dll_part("kernel32.CreateFileA") == "CreateFileA"
only export name.
assert trim_dll_part("ws2_32.#1") == "ws2_32.#1"
both DLL and export name.
would you please continue to explore how this code is used (e.g., review the callers) and consider if further refactoring needs to be done to make the code less surprising?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so we can remove the dll
part for ordinal
function. Reason: ordinal
is meaningless without the dll
part. In case of named functions, only a single library contains them and exports them but ordinal
is same for all libraries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is used for api
and count(api:<api_name>)
statement building
closes #1899
Checklist