Moodle

Covered lines always show 1 usage

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Not a bug
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Unit tests
  • Labels:
    None
  • Difficulty:
    Moderate
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

Complete code coverage report is, apparently, showing always "1" usage for lines that, in theory, are used more than once. For example insert_record() function. See what's happening.

Ciao

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Not a bug. Each instrumentation only returns 1's (doesn't accumulate line executions). Only running multiple instrumentations (like dbtest does) will show > 1 usage.

Closing. Ciao

Show
Eloy Lafuente (stronk7) added a comment - Not a bug. Each instrumentation only returns 1's (doesn't accumulate line executions). Only running multiple instrumentations (like dbtest does) will show > 1 usage. Closing. Ciao

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: