-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code cov perf and bug fix in if statements (#264)
* Added function to bast test suite to store global mocked functions * Moved some logic to the utils * Added logic to inject code that adds global mock checks at the start of function bodys * Fixed a reversed check * Removed new api in favor of expanding stubcall and updated injection code * Updated some of the global function detection logic * Unit tests, fixes, sample test project update * removed console logs * Transpile the file if we had to touch modify it * Fixed global mocks and stubs not clearing * updated some of the checks around transforming stubcall functions * Made some code reusable and fixed some imports * Added back the disablemocking logic and removed unused code * Fixed bad ast related to noEarlyExit * Updated bsc in tests app * added tests for global stubcall on device * Fixed some device tests * Fixed more on device tests * More test fixes as the result of moving to ast editor * Fixed some indenting * Fixed node test xml files being added after modifying assertions leading to crashes * Updated the modify stub detection logic for globals * more tests for global stub call modifications * Fixed some race conditons and more global function detection refinments * Removed some raw code statements for the session and fixed test formatting at a result * removed trimLeading from mock util tests * Removed some raw code statements in code cov and updated test file format * Added a test showing the issue * Fixed the code cov handling of if statements * Updated test app for better covrage * Fixed a bug with the reporting of missed files * Improved code cov reporting perfomance * perf optimization to cc reporting * Some perf changed for code cov * Fixed device by zero crash in reports for cov * Fixed some issues picking the wrong scope and make sure stubcall worked with async tests * Moved global stub clearing to clearStubs()
- Loading branch information
Showing
10 changed files
with
355 additions
and
189 deletions.
There are no files selected for viewing
330 changes: 219 additions & 111 deletions
330
bsc-plugin/src/lib/rooibos/CodeCoverageProcessor.spec.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
|
||
function Main(args) | ||
|
||
? "here is my code" | ||
? "hello" | ||
end function | ||
|
||
function globalFunctionWithReturn() as dynamic | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters