-
Notifications
You must be signed in to change notification settings - Fork 316
Fix loading serialized declarations from non standard path #4239
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 loading serialized declarations from non standard path #4239
Conversation
Codecov Report
@@ Coverage Diff @@
## next #4239 +/- ##
==========================================
- Coverage 52.16% 52.14% -0.02%
==========================================
Files 968 968
Lines 33483 33484 +1
==========================================
- Hits 17466 17459 -7
- Misses 16017 16025 +8
|
| using (var state = parser.State) | ||
| { | ||
| state.AddTestLibrary("Excel.1.8.xml"); | ||
| //state.AddTestLibrary("Excel.1.8.xml"); |
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.
why is this only commented out?
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.
Oh, I must have missed to completely remove.
| using (var state = parser.State) | ||
| { | ||
| state.AddTestLibrary("Excel.1.8.xml"); | ||
| //state.AddTestLibrary("Excel.1.8.xml"); |
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.
why is this only commented out?
| var parser = MockParser.Create(vbe.Object); | ||
|
|
||
| parser.State.AddTestLibrary(library.Equals("Scripting") ? "Scripting.1.0.xml" : "Excel.1.8.xml"); | ||
| //parser.State.AddTestLibrary(library.Equals("Scripting") ? "Scripting.1.0.xml" : "Excel.1.8.xml"); |
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.
commented code
This PR closes #4182
Moreover, the fix makes
MockParser.AddTestLibraryobsolete since the parsing process will pick up all serialized declarations from referenced projects. Acordingly, I removed it along with all uses.This had a good effect on test execution times.