aws / clock-bound
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 23 units with 321 lines of code in units (33.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 5 medium size units (154 lines of code)
    • 7 small units (106 lines of code)
    • 11 very small units (61 lines of code)
0% | 0% | 47% | 33% | 19%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rs0% | 0% | 47% | 33% | 19%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
clock-bound-d/src0% | 0% | 51% | 31% | 17%
clock-bound-c/src0% | 0% | 0% | 60% | 40%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
fn main()
in clock-bound-d/src/main.rs
46 3 0
fn test_build_response_before_true_successful()
in clock-bound-d/src/response.rs
27 1 0
fn test_build_response_before_false_successful()
in clock-bound-d/src/response.rs
27 1 0
fn test_build_response_after_true_successful()
in clock-bound-d/src/response.rs
27 1 0
fn test_build_response_after_false_successful()
in clock-bound-d/src/response.rs
27 1 0
fn build_response_before_after()
in clock-bound-d/src/response.rs
18 3 3
fn test_build_response_sync_flag_false()
in clock-bound-d/src/response.rs
18 1 0
fn test_build_response_now_successful()
in clock-bound-d/src/response.rs
17 1 0
fn test_build_response_header_error_successful()
in clock-bound-d/src/response.rs
16 1 0
fn build_response_header()
in clock-bound-d/src/response.rs
13 2 2
fn get_socket_path()
in clock-bound-c/src/lib.rs
12 1 0
fn test_dispersion_at()
in clock-bound-d/src/tracking.rs
12 1 0
fn drop()
in clock-bound-c/src/lib.rs
8 3 1
fn dispersion_at()
in clock-bound-d/src/tracking.rs
8 1 3
fn clockbound_now()
in clock-bound-d/src/response.rs
8 1 1
fn build_response_now()
in clock-bound-d/src/response.rs
7 1 2
fn test_validate_request_invalid()
in clock-bound-d/src/response.rs
7 1 0
fn test_validate_request_valid()
in clock-bound-d/src/response.rs
5 1 0
fn get_epoch_us()
in clock-bound-d/src/response.rs
4 1 0
fn round_f64_nanos_successful()
in clock-bound-d/src/ceb.rs
4 1 0