File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
main/java/com/quicklybly/itmo/bytecodeanalizer/example
test/java/com/quicklybly/itmo/bytecodeanalizer/example Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1+ package com .quicklybly .itmo .bytecodeanalizer .example ;
2+
3+ public class SimpleClass {
4+ private final String s = "123" ;
5+ }
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ public void analyzeComplexClass() throws IOException {
2828 Statistic stats = analyzer .analyzeJar (jarPath );
2929
3030 assertThat (stats .getMaxInheritanceDepth ()).isEqualTo (4 );
31- assertThat (stats .getAverageInheritanceDepth ()).isEqualTo (4.0 );
32- assertThat (stats .getAverageFieldCount ()).isEqualTo (2.0 );
33- assertThat (stats .getAverageOverriddenCount ()).isEqualTo (1.0 );
34- assertThat (stats .getAbcMetric ().getAbc ()).isBetween (9 .0 , 10 .0 );
31+ assertThat (stats .getAverageInheritanceDepth ()).isEqualTo (2.5 );
32+ assertThat (stats .getAverageFieldCount ()).isEqualTo (1.5 );
33+ assertThat (stats .getAverageOverriddenCount ()).isEqualTo (0.5 );
34+ assertThat (stats .getAbcMetric ().getAbc ()).isBetween (10 .0 , 11 .0 );
3535 }
3636}
You can’t perform that action at this time.
0 commit comments