Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12666] CodeProcessor: Analysis coverage visits different platform nodes

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2013-03-25T22:41:52.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsCode Processor
Labelsn/a
ReporterPraveen Innamuri
AssigneeBryan Hughes
Created2013-02-11T23:13:33.000+0000
Updated2013-08-14T20:44:06.000+0000

Description

When the code processor is run against iphone, then the analysis coverage plugin details that it visited nodes for resources defined under other platform folders as well (for ex: MasterDetail/Resources/ui/handheld/android/ or mobileweb). Since those resources are specific to other platforms, I guess they should not be visited as part of code analysis. For example, the output of analysis-coverage plugin shows the visited nodes of android even when the code processor is run against iphone platform - "/Users/pinnamuri/Documents/Titanium_Studio_Workspace_New/MasterDetail/Resources/ui/handheld/android/ApplicationWindow.js":{"numNodesVisited":86,"numNodesSkipped":0,"numTotalNodes":89},

Comments

  1. Bryan Hughes 2013-02-13

    When running the code processor, are you setting processUnvisitedCode to true? If so, then this is the expected behavior, but otherwise it _may_ be a bug.
  2. Bryan Hughes 2013-03-25

    The only code that is known to be platform specific is code that lives under Resources/[iphone, ipad, android, mobileweb]. Anything else is not technically platform specific, except by the coders own coding conventions which the code processor can't know

JSON Source