MCPcopy Create free account
hub / github.com/LFYSec/MScan / sumX

Method sumX

src/test/resources/sideeffect/LinkedList.java:6–14  ·  view source on GitHub ↗
(List list)

Source from the content-addressed store, hash-verified

4
5public class LinkedList {
6 static float sumX(List list){
7 float s=0;
8 Iterator it=list.iterator();
9 while(it.hasNext()){
10 Point p=(Point) it.next();
11 s+=p.x;
12 }
13 return s;
14 }
15
16 static void flipAll(List list){
17 Iterator it=list.iterator();

Callers 1

mainMethod · 0.95

Calls 3

hasNextMethod · 0.95
nextMethod · 0.95
iteratorMethod · 0.65

Tested by

no test coverage detected