microsoft / AppCenter-Test-Espresso-Extensions
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 47 units with 366 lines of code in units (69.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 4 simple units (100 lines of code)
    • 43 very simple units (266 lines of code)
0% | 0% | 0% | 27% | 72%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
java0% | 0% | 0% | 27% | 72%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
espresso0% | 0% | 0% | 48% | 51%
event0% | 0% | 0% | 8% | 91%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public void run()
in src/main/java/com/microsoft/appcenter/espresso/EventServer.java
41 7 0
private static Bundle getArguments()
in src/main/java/com/microsoft/appcenter/espresso/Factory.java
17 7 0
private Event()
in src/main/java/com/microsoft/appcenter/event/Event.java
17 7 5
public boolean sendSync()
in src/main/java/com/microsoft/appcenter/espresso/EventServer.java
25 6 1
static String readLine()
in src/main/java/com/microsoft/appcenter/espresso/EventServer.java
11 4 1
public void reportJunit()
in src/main/java/com/microsoft/appcenter/event/EventReporter.java
21 4 3
protected void commit()
in src/main/java/com/microsoft/appcenter/event/StdOutEventReporter.java
16 4 1
static
in src/main/java/com/microsoft/appcenter/espresso/Factory.java
14 3 0
private void ensureOnlyOneReporter()
in src/main/java/com/microsoft/appcenter/espresso/ReportHelper.java
7 3 0
public static Event createLabel()
in src/main/java/com/microsoft/appcenter/event/Event.java
8 3 5
private String getParameters()
in src/main/java/com/microsoft/appcenter/event/EventReporter.java
9 3 1
public boolean hasId()
in src/main/java/com/microsoft/appcenter/event/MemoryEventReporter.java
8 3 1
public ShortIdentifier()
in src/main/java/com/microsoft/appcenter/event/ShortIdentifier.java
6 3 1
public void stop()
in src/main/java/com/microsoft/appcenter/espresso/EventServer.java
9 2 0
public LocalSocketEventReporter()
in src/main/java/com/microsoft/appcenter/espresso/LocalSocketEventReporter.java
11 2 2
public void reportLabel()
in src/main/java/com/microsoft/appcenter/event/EventReporter.java
9 2 4
public void reportScreenshot()
in src/main/java/com/microsoft/appcenter/event/EventReporter.java
9 2 3
private String shortId()
in src/main/java/com/microsoft/appcenter/event/ShortIdentifier.java
11 2 1
private String mostSignificantSubstring()
in src/main/java/com/microsoft/appcenter/event/ShortIdentifier.java
9 2 2
private String filenameSafeHash()
in src/main/java/com/microsoft/appcenter/event/ShortIdentifier.java
9 2 1