Change to @Getter/@Setter to be above coverage threshold

Since toString(), equals(), and hashCode() are never called, the code coverage for the classes are too low.

In the future, we should ignore code coverage of lombok generated methods
This commit is contained in:
Laplie Anderson 2019-07-16 19:09:00 -04:00
parent 4853801813
commit d03a2a95e2
1 changed files with 6 additions and 3 deletions

View File

@ -10,13 +10,15 @@ import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
/**
* Parses container information from /proc/self/cgroup. Implementation based largely on
* Qard/container-info
*/
@Data
@Getter
@Setter
public class ContainerInfo {
private static final Path CGROUP_DEFAULT_PROCFILE = Paths.get("/proc/self/cgroup");
private static final String UUID_REGEX =
@ -32,7 +34,8 @@ public class ContainerInfo {
public String podId;
public List<CGroupInfo> cGroups;
@Data
@Getter
@Setter
public static class CGroupInfo {
public int id;
public String path;