intersystems / TestCoverage

Test Coverage Tool
MIT License
9 stars 8 forks source link

Fix CodeUnit dependencies around UpdateComplexity #46

Closed isc-cge closed 2 months ago

isc-cge commented 2 months ago

Fixed bug

ERROR #5002: ObjectScript error: UpdateComplexity+9^TestCoverage.Data.CodeUnit.1 <<==== FAILED

likely caused by circular dependencies involving the GetCurrentByName call in UpdateComplexity, by replacing calls to GetCurrentByName with calls to GetCurrentHash if possible, and also not calling UpdateComplexity unnecessarily.