Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7850

Improve SensorContextTester to differentiate no symbol from no references

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: Scanner
    • Labels:
      None

      Description

      When using SensorContextTester to test symbol references, the case where referencesForSymbolAt returns an empty list mean either that there was no symbol at all, or that symbol has no references.
      We could return null (or NoSuchElementException) in the first case.

        Attachments

          Activity

            People

            • Assignee:
              julien.henry Julien Henry
              Reporter:
              julien.henry Julien Henry
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: