[TIMOB-5037] Drillbit: Generate getter / setter accessors based on the "permission" property for TDoc to improve coverage reporting
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-09-26T15:41:45.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | Sprint 2011-35, Release 1.8.0 |
Components | Drillbit |
Labels | coverage |
Reporter | Marshall Culpepper |
Assignee | Marshall Culpepper |
Created | 2011-08-17T14:08:36.000+0000 |
Updated | 2017-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")
To test this, simply generate and open the coverage report:
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 withpermission: write-only
should only show coverage for a setter method * Properties withaccessors: false
show neither * Properties withavailability: constructor
show neither * Constants (i.e. CONSTANT_NAME) show neither * All other properties by default show both getters and setters**NOTE** bullet four above should be
availability: creation
re-reviewed. Merged.
Closing ticket.