Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5037] Drillbit: Generate getter / setter accessors based on the "permission" property for TDoc to improve coverage reporting

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-09-26T15:41:45.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-35, Release 1.8.0
ComponentsDrillbit
Labelscoverage
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-08-17T14:08:36.000+0000
Updated2017-03-03T22:48:19.000+0000

Description

Right now the coverage report only generates coverage for Proxy/Module properties, but does not automatically generate coverage for accessors. Initially the correct behavior would be to base get/set behavior based on the "permission" flag (read-only: get, write-only: set, read-write: both). We'll also need a new TDoc property for specifying certain properties that don't have accessors (such as "messageid")

Comments

  1. Marshall Culpepper 2011-09-01

    To test this, simply generate and open the coverage report:
       $ ./drillbit/coverage/coverage.py
       $ open dist/coverage/index.html
       
    Double check that properties defined in TDoc have automatically generated coverage for getter/setter methods under the *API Docs (TDoc)* column. Generally keep an eye out for: * Properties with permission: read-only should only show coverage for a getter method * Properties with permission: write-only should only show coverage for a setter method * Properties with accessors: false show neither * Properties with availability: constructor show neither * Constants (i.e. CONSTANT_NAME) show neither * All other properties by default show both getters and setters
  2. Bill Dawson 2011-09-01

    **NOTE** bullet four above should be availability: creation
  3. Don Thorp 2011-09-26

    re-reviewed. Merged.
  4. Lee Morris 2017-03-03

    Closing ticket.

JSON Source