]> source.dussan.org Git - sonarqube.git/blob
20d8cf07dd10d8dd51ae57bc0ee705dd96217b62
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`New code measures should be rendered properly 1`] = `
4 <Fragment>
5   <DateTimeFormatter
6     date="2018-01-01"
7   >
8     <Component />
9   </DateTimeFormatter>
10   <div
11     className="display-flex-row display-flex-space-between"
12   >
13     <ProjectCardMeasure
14       className="flex-0"
15       key="new_bugs"
16       label="metric.bugs.name"
17       metricKey="new_bugs"
18     >
19       <Measure
20         className="spacer-right big project-card-measure-secondary-info"
21         metricKey="new_bugs"
22         metricType="SHORT_INT"
23         value="8"
24       />
25       <span
26         className="big"
27       >
28         <Rating
29           value="1.0"
30         />
31       </span>
32     </ProjectCardMeasure>
33     <span
34       className="bordered-left little-spacer"
35     />
36     <ProjectCardMeasure
37       className=""
38       key="new_vulnerabilities"
39       label="metric.vulnerabilities.name"
40       metricKey="new_vulnerabilities"
41     >
42       <Measure
43         className="spacer-right big project-card-measure-secondary-info"
44         metricKey="new_vulnerabilities"
45         metricType="SHORT_INT"
46         value="2"
47       />
48       <span
49         className="big"
50       >
51         <Rating
52           value="2.0"
53         />
54       </span>
55     </ProjectCardMeasure>
56     <span
57       className="bordered-left little-spacer"
58     />
59     <ProjectCardMeasure
60       className=""
61       iconKey="security_hotspots"
62       key="new_security_hotspots_reviewed"
63       label="projects.security_hotspots_reviewed"
64       metricKey="new_security_hotspots_reviewed"
65     >
66       <Measure
67         className="spacer-right big project-card-measure-secondary-info"
68         metricKey="new_security_hotspots_reviewed"
69         metricType="PERCENT"
70       />
71       <span
72         className="big"
73       >
74         <Rating />
75       </span>
76     </ProjectCardMeasure>
77     <span
78       className="bordered-left little-spacer"
79     />
80     <ProjectCardMeasure
81       className=""
82       key="new_code_smells"
83       label="metric.code_smells.name"
84       metricKey="new_code_smells"
85     >
86       <Measure
87         className="spacer-right big project-card-measure-secondary-info"
88         metricKey="new_code_smells"
89         metricType="SHORT_INT"
90         value="0"
91       />
92       <span
93         className="big"
94       >
95         <Rating
96           value="1.0"
97         />
98       </span>
99     </ProjectCardMeasure>
100     <span
101       className="bordered-left little-spacer"
102     />
103     <ProjectCardMeasure
104       label="metric.coverage.name"
105       metricKey="new_coverage"
106     >
107       <div
108         className="display-flex-center"
109       >
110         <Measure
111           className="big"
112           metricKey="new_coverage"
113           metricType="PERCENT"
114           value="26.55"
115         />
116         <span
117           className="spacer-left project-card-measure-secondary-info"
118         >
119           <CoverageRating
120             value="26.55"
121           />
122         </span>
123       </div>
124     </ProjectCardMeasure>
125     <span
126       className="bordered-left little-spacer"
127     />
128     <ProjectCardMeasure
129       label="metric.duplicated_lines_density.short_name"
130       metricKey="new_duplicated_lines_density"
131     >
132       <div
133         className="display-flex-center"
134       >
135         <Measure
136           className="big"
137           metricKey="new_duplicated_lines_density"
138           metricType="PERCENT"
139           value="0.55"
140         />
141         <span
142           className="spacer-left project-card-measure-secondary-info"
143         >
144           <DuplicationsRating
145             value={0.55}
146           />
147         </span>
148       </div>
149     </ProjectCardMeasure>
150   </div>
151 </Fragment>
152 `;
153
154 exports[`Overall measures should be not be rendered if there's no line of code: application 1`] = `
155 <div
156   className="note big-spacer-top"
157 >
158   portfolio.app.empty
159 </div>
160 `;
161
162 exports[`Overall measures should be not be rendered if there's no line of code: project 1`] = `
163 <div
164   className="note big-spacer-top"
165 >
166   overview.project.main_branch_empty
167 </div>
168 `;
169
170 exports[`Overall measures should be rendered properly 1`] = `
171 <Fragment>
172   <div
173     className="display-flex-row display-flex-space-between"
174   >
175     <ProjectCardMeasure
176       className="flex-0"
177       key="bugs"
178       label="metric.bugs.name"
179       metricKey="bugs"
180     >
181       <Measure
182         className="spacer-right big project-card-measure-secondary-info"
183         metricKey="bugs"
184         metricType="SHORT_INT"
185         value="17"
186       />
187       <span
188         className="big"
189       >
190         <Rating
191           value="1.0"
192         />
193       </span>
194     </ProjectCardMeasure>
195     <span
196       className="bordered-left little-spacer"
197     />
198     <ProjectCardMeasure
199       className=""
200       key="vulnerabilities"
201       label="metric.vulnerabilities.name"
202       metricKey="vulnerabilities"
203     >
204       <Measure
205         className="spacer-right big project-card-measure-secondary-info"
206         metricKey="vulnerabilities"
207         metricType="SHORT_INT"
208         value="0"
209       />
210       <span
211         className="big"
212       >
213         <Rating
214           value="1.0"
215         />
216       </span>
217     </ProjectCardMeasure>
218     <span
219       className="bordered-left little-spacer"
220     />
221     <ProjectCardMeasure
222       className=""
223       iconKey="security_hotspots"
224       key="security_hotspots_reviewed"
225       label="projects.security_hotspots_reviewed"
226       metricKey="security_hotspots_reviewed"
227     >
228       <Measure
229         className="spacer-right big project-card-measure-secondary-info"
230         metricKey="security_hotspots_reviewed"
231         metricType="PERCENT"
232       />
233       <span
234         className="big"
235       >
236         <Rating />
237       </span>
238     </ProjectCardMeasure>
239     <span
240       className="bordered-left little-spacer"
241     />
242     <ProjectCardMeasure
243       className=""
244       key="code_smells"
245       label="metric.code_smells.name"
246       metricKey="code_smells"
247     >
248       <Measure
249         className="spacer-right big project-card-measure-secondary-info"
250         metricKey="code_smells"
251         metricType="SHORT_INT"
252         value="132"
253       />
254       <span
255         className="big"
256       >
257         <Rating
258           value="1.0"
259         />
260       </span>
261     </ProjectCardMeasure>
262     <span
263       className="bordered-left little-spacer"
264     />
265     <ProjectCardMeasure
266       label="metric.coverage.name"
267       metricKey="coverage"
268     >
269       <div
270         className="display-flex-center"
271       >
272         <Measure
273           className="big"
274           metricKey="coverage"
275           metricType="PERCENT"
276           value="88.3"
277         />
278         <span
279           className="spacer-left project-card-measure-secondary-info"
280         >
281           <CoverageRating
282             value="88.3"
283           />
284         </span>
285       </div>
286     </ProjectCardMeasure>
287     <span
288       className="bordered-left little-spacer"
289     />
290     <ProjectCardMeasure
291       label="metric.duplicated_lines_density.short_name"
292       metricKey="duplicated_lines_density"
293     >
294       <div
295         className="display-flex-center"
296       >
297         <Measure
298           className="big"
299           metricKey="duplicated_lines_density"
300           metricType="PERCENT"
301           value="9.8"
302         />
303         <span
304           className="spacer-left project-card-measure-secondary-info"
305         >
306           <DuplicationsRating
307             value={9.8}
308           />
309         </span>
310       </div>
311     </ProjectCardMeasure>
312   </div>
313 </Fragment>
314 `;