1 | ||
2 | package com.jsql.model.injection.vendor.model.yaml; | |
3 | ||
4 | import org.apache.commons.lang3.StringUtils; | |
5 | ||
6 | import java.io.Serializable; | |
7 | import java.util.ArrayList; | |
8 | import java.util.Arrays; | |
9 | import java.util.List; | |
10 | import java.util.stream.Collectors; | |
11 | ||
12 | public class Test implements Serializable { | |
13 | ||
14 | private static final String REGEX_ARRAY = "[\r\n]+"; | |
15 | ||
16 | private List<String> falsyBin = new ArrayList<>(); // vendor specific | |
17 | private List<String> falsyBit = Arrays.asList( | |
18 | "'a' = 'b'", | |
19 | "'a' %21= 'a'", | |
20 | "'b' %21= 'b'", | |
21 | "1 = 2", | |
22 | "1 %21= 1", | |
23 | "2 %21= 2" | |
24 | ); | |
25 | | |
26 | private List<String> truthyBin = new ArrayList<>(); // vendor specific | |
27 | private List<String> truthyBit = Arrays.asList( | |
28 | "'a' = 'a'", | |
29 | "'b' = 'b'", | |
30 | "'a' %21= 'b'", | |
31 | "1 = 1", | |
32 | "2 = 2", | |
33 | "1 %21= 2" | |
34 | ); | |
35 | ||
36 | private String init = "0%2b1 = 1"; | |
37 | private String bit = StringUtils.EMPTY; | |
38 | private String bin = StringUtils.EMPTY; | |
39 | private String length = StringUtils.EMPTY; | |
40 | ||
41 | public List<String> getTruthyBin() { | |
42 |
1
1. getTruthyBin : replaced return value with Collections.emptyList for com/jsql/model/injection/vendor/model/yaml/Test::getTruthyBin → NO_COVERAGE |
return this.truthyBin; |
43 | } | |
44 | ||
45 | public void setTruthyBin(List<String> truthyBin) { | |
46 | this.truthyBin = truthyBin; | |
47 | } | |
48 | ||
49 | public List<String> getFalsyBin() { | |
50 |
1
1. getFalsyBin : replaced return value with Collections.emptyList for com/jsql/model/injection/vendor/model/yaml/Test::getFalsyBin → NO_COVERAGE |
return this.falsyBin; |
51 | } | |
52 | ||
53 | public void setFalsyBin(List<String> falsyBin) { | |
54 | this.falsyBin = falsyBin; | |
55 | } | |
56 | ||
57 | public List<String> getTruthyBit() { | |
58 |
1
1. getTruthyBit : replaced return value with Collections.emptyList for com/jsql/model/injection/vendor/model/yaml/Test::getTruthyBit → NO_COVERAGE |
return this.truthyBit; |
59 | } | |
60 | ||
61 | public void setTruthyBit(List<String> truthyBit) { | |
62 | this.truthyBit = truthyBit; | |
63 | } | |
64 | ||
65 | public List<String> getFalsyBit() { | |
66 |
1
1. getFalsyBit : replaced return value with Collections.emptyList for com/jsql/model/injection/vendor/model/yaml/Test::getFalsyBit → NO_COVERAGE |
return this.falsyBit; |
67 | } | |
68 | ||
69 | public void setFalsyBit(List<String> falsyBit) { | |
70 | this.falsyBit = falsyBit; | |
71 | } | |
72 | ||
73 | public String getInit() { | |
74 |
1
1. getInit : replaced return value with "" for com/jsql/model/injection/vendor/model/yaml/Test::getInit → NO_COVERAGE |
return this.init; |
75 | } | |
76 | ||
77 | public void setInit(String init) { | |
78 | this.init = init; | |
79 | } | |
80 | ||
81 | public String getBit() { | |
82 |
1
1. getBit : replaced return value with "" for com/jsql/model/injection/vendor/model/yaml/Test::getBit → NO_COVERAGE |
return this.bit; |
83 | } | |
84 | ||
85 | public void setBit(String bit) { | |
86 | this.bit = bit; | |
87 | } | |
88 | ||
89 | public String getLength() { | |
90 |
1
1. getLength : replaced return value with "" for com/jsql/model/injection/vendor/model/yaml/Test::getLength → NO_COVERAGE |
return this.length; |
91 | } | |
92 | ||
93 | public void setLength(String length) { | |
94 | this.length = length; | |
95 | } | |
96 | ||
97 | public String getTruthyBitAsString() { | |
98 |
1
1. getTruthyBitAsString : replaced return value with "" for com/jsql/model/injection/vendor/model/yaml/Test::getTruthyBitAsString → NO_COVERAGE |
return this.truthyBit.stream().collect(Collectors.joining(System.lineSeparator())); |
99 | } | |
100 | | |
101 | public void setTruthyBit(String truthyBit) { | |
102 | this.truthyBit = Arrays.asList(truthyBit.split(Test.REGEX_ARRAY)); | |
103 | } | |
104 | | |
105 | public String getFalsyBitAsString() { | |
106 |
1
1. getFalsyBitAsString : replaced return value with "" for com/jsql/model/injection/vendor/model/yaml/Test::getFalsyBitAsString → NO_COVERAGE |
return this.falsyBit.stream().collect(Collectors.joining(System.lineSeparator())); |
107 | } | |
108 | | |
109 | public void setFalsyBit(String falsyBit) { | |
110 | this.falsyBit = Arrays.asList(falsyBit.split(Test.REGEX_ARRAY)); | |
111 | } | |
112 | ||
113 | public String getTruthyBinAsString() { | |
114 |
1
1. getTruthyBinAsString : replaced return value with "" for com/jsql/model/injection/vendor/model/yaml/Test::getTruthyBinAsString → NO_COVERAGE |
return this.truthyBin.stream().collect(Collectors.joining(System.lineSeparator())); |
115 | } | |
116 | ||
117 | public void setTruthyBin(String truthyBin) { | |
118 | this.truthyBin = Arrays.asList(truthyBin.split(Test.REGEX_ARRAY)); | |
119 | } | |
120 | ||
121 | public String getFalsyBinAsString() { | |
122 |
1
1. getFalsyBinAsString : replaced return value with "" for com/jsql/model/injection/vendor/model/yaml/Test::getFalsyBinAsString → NO_COVERAGE |
return this.falsyBin.stream().collect(Collectors.joining(System.lineSeparator())); |
123 | } | |
124 | ||
125 | public void setFalsyBin(String falsyBin) { | |
126 | this.falsyBin = Arrays.asList(falsyBin.split(Test.REGEX_ARRAY)); | |
127 | } | |
128 | ||
129 | public String getBin() { | |
130 |
1
1. getBin : replaced return value with "" for com/jsql/model/injection/vendor/model/yaml/Test::getBin → NO_COVERAGE |
return this.bin; |
131 | } | |
132 | ||
133 | public void setBin(String bin) { | |
134 | this.bin = bin; | |
135 | } | |
136 | } | |
Mutations | ||
42 |
1.1 |
|
50 |
1.1 |
|
58 |
1.1 |
|
66 |
1.1 |
|
74 |
1.1 |
|
82 |
1.1 |
|
90 |
1.1 |
|
98 |
1.1 |
|
106 |
1.1 |
|
114 |
1.1 |
|
122 |
1.1 |
|
130 |
1.1 |