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