-
Notifications
You must be signed in to change notification settings - Fork 389
Skip instrumentation for external pdb with no local sources #538
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
Skip instrumentation for external pdb with no local sources #538
Conversation
{ | ||
bool Exists(string path); | ||
} | ||
} |
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.
for the moment I wrapped only needed method
"aead64ad")] | ||
// Needed to mock internal type https://github.com/Moq/moq4/wiki/Quickstart#advanced-features | ||
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")] |
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.
to mock internal IFileSystem for testing we need to allow access from dynamic proxy, it's signed.
// We verify all docs and return false if not all are present in local | ||
// We could have false negative if doc is not a source | ||
// Btw check for all possible extension could be weak approach | ||
if (!_fileSystem.Exists(docName)) |
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.
like embedded one we check for all docs
closes #529
cc: @tonerdo @petli @onovotny