bazelbuild / rules_webtesting
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 334 units with 4,698 lines of code in units (57.7% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (375 lines of code)
    • 13 medium complex units (659 lines of code)
    • 36 simple units (1,057 lines of code)
    • 282 very simple units (2,607 lines of code)
0% | 7% | 14% | 22% | 55%
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
go0% | 8% | 14% | 23% | 54%
java0% | 0% | 0% | 23% | 76%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
go/wtl0% | 13% | 7% | 19% | 60%
go/wsl0% | 20% | 28% | 9% | 42%
go/metadata0% | 0% | 23% | 39% | 37%
go/webdriver0% | 0% | 14% | 5% | 80%
go/bazel0% | 0% | 0% | 68% | 31%
go/httphelper0% | 0% | 0% | 60% | 39%
go/errors0% | 0% | 0% | 44% | 55%
go/healthreporter0% | 0% | 0% | 100% | 0%
go/portpicker0% | 0% | 0% | 83% | 16%
java/com0% | 0% | 0% | 25% | 74%
testing/web0% | 0% | 0% | 0% | 100%
go/webtest0% | 0% | 0% | 0% | 100%
go/cmdhelper0% | 0% | 0% | 0% | 100%
javatests/com0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func extractWSLCaps()
in go/wsl/driver/driver.go
150 39 2
func Run()
in go/wtl/wtl.go
158 35 6
func ProviderFunc()
in go/wtl/proxy/driverhub/scripttimeout/script_timeout.go
67 26 3
func FromNewSessionArgs()
in go/metadata/capabilities/capabilities.go
83 24 1
func CreateSession()
in go/webdriver/webdriver.go
69 16 4
func New()
in go/wsl/driver/driver.go
54 15 5
func()
in go/wsl/hub/hub.go
29 14 1
func errDatum()
in go/webdriver/webdriver_error.go
30 14 1
func()
in go/metadata/capabilities/capabilities.go
43 14 1
func()
in go/wtl/proxy/driverhub/debugger/debugger.go
47 13 1
func normalizeProxyCapability()
in go/metadata/capabilities/capabilities.go
44 13 2
func()
in go/wtl/proxy/driverhub/driver_hub.go
73 12 1
func()
in go/wsl/resolver/resolver.go
41 11 1
func()
in go/wsl/driver/driver.go
49 11 1
func()
in go/wsl/hub/hub.go
42 11 1
func Merge()
in go/metadata/metadata.go
55 11 2
func()
in go/wsl/upload/upload.go
48 10 1
func()
in go/wtl/proxy/driverhub/debugger/debugger.go
52 10 1
func()
in go/wtl/proxy/driverhub/driver_session.go
54 10 1
func extractOptions()
in go/wtl/environment/sauce/sauce.go
37 10 1