torvalds/linux

View on GitHub
tools/perf/pmu-events/metric_test.py

Summary

Maintainability
A
1 hr
Test Coverage

Function test_Simplify has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def test_Simplify(self):
    before = '1 + 2 + 3'
    after = '6'
    self.assertEqual(ParsePerfJson(before).Simplify().ToPerfJson(), after)

Severity: Minor
Found in tools/perf/pmu-events/metric_test.py - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status