Skip to content

Package: Module

Module

nameinstructionbranchcomplexitylinemethod
Module()
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
addLibRefs(LibReference)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getLibRefs()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package libraries;
2:
3: import java.util.ArrayList;
4: import java.util.List;
5:
6: /**
7: * class for modules.
8: *
9: * @author Markus
10: *
11: */
12: public class Module {
13:
14:         /**
15:          * represents the list of library references.
16:          */
17:         private final List<LibReference> deps;
18:
19:         /**
20:          * Constructor. initialize deps.
21:          *
22:          */
23:         public Module() {
24:                 super();
25:                 this.deps = new ArrayList<LibReference>();
26:         }
27:
28:         /**
29:          * getter for library references.
30:          *
31:          * @return LibReference.
32:          */
33:         public List<LibReference> getLibRefs() {
34:                 return this.deps;
35:         }
36:
37:         /**
38:          * add to library references.
39:          *
40:          * @param libRef
41:          * param library references.
42:          */
43:         public void addLibRefs(final LibReference libRef) {
44:                 this.deps.add(libRef);
45:         }
46:
47: }