1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly: default 1`] = `
5 className="source-viewer-code"
8 className="source-table"
14 "analysisDate": "2018-01-01",
15 "excludedFromPurge": true,
20 displayCoverage={true}
21 displayDuplications={false}
23 duplications={Array []}
26 issueLocations={Array []}
32 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
33 "coverageStatus": "covered",
34 "coveredConditions": 2,
38 "scmAuthor": "simon.brandhof@sonarsource.com",
39 "scmDate": "2018-12-11T10:48:39+0100",
40 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
43 loadDuplications={[MockFunction]}
44 onIssueChange={[MockFunction]}
45 onIssuePopupToggle={[MockFunction]}
46 onIssueSelect={[MockFunction]}
47 onIssueUnselect={[MockFunction]}
48 onIssuesClose={[MockFunction]}
49 onIssuesOpen={[MockFunction]}
50 onLocationSelect={[MockFunction]}
51 onSymbolClick={[MockFunction]}
53 renderDuplicationPopup={[MockFunction]}
54 scrollToUncoveredLine={false}
55 secondaryIssueLocations={Array []}
60 "analysisDate": "2018-01-01",
61 "excludedFromPurge": true,
66 displayCoverage={true}
67 displayDuplications={false}
69 duplications={Array []}
72 issueLocations={Array []}
78 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
79 "coverageStatus": "covered",
80 "coveredConditions": 2,
84 "scmAuthor": "simon.brandhof@sonarsource.com",
85 "scmDate": "2018-12-11T10:48:39+0100",
86 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
89 loadDuplications={[MockFunction]}
90 onIssueChange={[MockFunction]}
91 onIssuePopupToggle={[MockFunction]}
92 onIssueSelect={[MockFunction]}
93 onIssueUnselect={[MockFunction]}
94 onIssuesClose={[MockFunction]}
95 onIssuesOpen={[MockFunction]}
96 onLocationSelect={[MockFunction]}
97 onSymbolClick={[MockFunction]}
101 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
102 "coverageStatus": "covered",
103 "coveredConditions": 2,
107 "scmAuthor": "simon.brandhof@sonarsource.com",
108 "scmDate": "2018-12-11T10:48:39+0100",
109 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
112 renderDuplicationPopup={[MockFunction]}
113 scrollToUncoveredLine={false}
114 secondaryIssueLocations={Array []}
119 "analysisDate": "2018-01-01",
120 "excludedFromPurge": true,
122 "name": "branch-6.7",
125 displayCoverage={true}
126 displayDuplications={false}
128 duplications={Array []}
129 duplicationsCount={0}
131 issueLocations={Array []}
137 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
138 "coverageStatus": "covered",
139 "coveredConditions": 2,
143 "scmAuthor": "simon.brandhof@sonarsource.com",
144 "scmDate": "2018-12-11T10:48:39+0100",
145 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
148 loadDuplications={[MockFunction]}
149 onIssueChange={[MockFunction]}
150 onIssuePopupToggle={[MockFunction]}
151 onIssueSelect={[MockFunction]}
152 onIssueUnselect={[MockFunction]}
153 onIssuesClose={[MockFunction]}
154 onIssuesOpen={[MockFunction]}
155 onLocationSelect={[MockFunction]}
156 onSymbolClick={[MockFunction]}
160 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
161 "coverageStatus": "covered",
162 "coveredConditions": 2,
166 "scmAuthor": "simon.brandhof@sonarsource.com",
167 "scmDate": "2018-12-11T10:48:39+0100",
168 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
171 renderDuplicationPopup={[MockFunction]}
172 scrollToUncoveredLine={false}
173 secondaryIssueLocations={Array []}
180 exports[`should render correctly: has file level issues 1`] = `
182 className="source-viewer-code"
185 className="source-table"
191 "analysisDate": "2018-01-01",
192 "excludedFromPurge": true,
194 "name": "branch-6.7",
197 displayCoverage={true}
198 displayDuplications={false}
200 duplications={Array []}
201 duplicationsCount={0}
203 issueLocations={Array []}
215 loadDuplications={[MockFunction]}
216 onIssueChange={[MockFunction]}
217 onIssuePopupToggle={[MockFunction]}
218 onIssueSelect={[MockFunction]}
219 onIssueUnselect={[MockFunction]}
220 onIssuesClose={[MockFunction]}
221 onIssuesOpen={[MockFunction]}
222 onLocationSelect={[MockFunction]}
223 onSymbolClick={[MockFunction]}
225 renderDuplicationPopup={[MockFunction]}
226 scrollToUncoveredLine={false}
227 secondaryIssueLocations={Array []}
232 "analysisDate": "2018-01-01",
233 "excludedFromPurge": true,
235 "name": "branch-6.7",
238 displayCoverage={true}
239 displayDuplications={false}
241 duplications={Array []}
242 duplicationsCount={0}
244 issueLocations={Array []}
250 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
251 "coverageStatus": "covered",
252 "coveredConditions": 2,
256 "scmAuthor": "simon.brandhof@sonarsource.com",
257 "scmDate": "2018-12-11T10:48:39+0100",
258 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
261 loadDuplications={[MockFunction]}
262 onIssueChange={[MockFunction]}
263 onIssuePopupToggle={[MockFunction]}
264 onIssueSelect={[MockFunction]}
265 onIssueUnselect={[MockFunction]}
266 onIssuesClose={[MockFunction]}
267 onIssuesOpen={[MockFunction]}
268 onLocationSelect={[MockFunction]}
269 onSymbolClick={[MockFunction]}
271 renderDuplicationPopup={[MockFunction]}
272 scrollToUncoveredLine={false}
273 secondaryIssueLocations={Array []}
278 "analysisDate": "2018-01-01",
279 "excludedFromPurge": true,
281 "name": "branch-6.7",
284 displayCoverage={true}
285 displayDuplications={false}
287 duplications={Array []}
288 duplicationsCount={0}
290 issueLocations={Array []}
296 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
297 "coverageStatus": "covered",
298 "coveredConditions": 2,
302 "scmAuthor": "simon.brandhof@sonarsource.com",
303 "scmDate": "2018-12-11T10:48:39+0100",
304 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
307 loadDuplications={[MockFunction]}
308 onIssueChange={[MockFunction]}
309 onIssuePopupToggle={[MockFunction]}
310 onIssueSelect={[MockFunction]}
311 onIssueUnselect={[MockFunction]}
312 onIssuesClose={[MockFunction]}
313 onIssuesOpen={[MockFunction]}
314 onLocationSelect={[MockFunction]}
315 onSymbolClick={[MockFunction]}
319 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
320 "coverageStatus": "covered",
321 "coveredConditions": 2,
325 "scmAuthor": "simon.brandhof@sonarsource.com",
326 "scmDate": "2018-12-11T10:48:39+0100",
327 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
330 renderDuplicationPopup={[MockFunction]}
331 scrollToUncoveredLine={false}
332 secondaryIssueLocations={Array []}
337 "analysisDate": "2018-01-01",
338 "excludedFromPurge": true,
340 "name": "branch-6.7",
343 displayCoverage={true}
344 displayDuplications={false}
346 duplications={Array []}
347 duplicationsCount={0}
349 issueLocations={Array []}
355 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
356 "coverageStatus": "covered",
357 "coveredConditions": 2,
361 "scmAuthor": "simon.brandhof@sonarsource.com",
362 "scmDate": "2018-12-11T10:48:39+0100",
363 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
366 loadDuplications={[MockFunction]}
367 onIssueChange={[MockFunction]}
368 onIssuePopupToggle={[MockFunction]}
369 onIssueSelect={[MockFunction]}
370 onIssueUnselect={[MockFunction]}
371 onIssuesClose={[MockFunction]}
372 onIssuesOpen={[MockFunction]}
373 onLocationSelect={[MockFunction]}
374 onSymbolClick={[MockFunction]}
378 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
379 "coverageStatus": "covered",
380 "coveredConditions": 2,
384 "scmAuthor": "simon.brandhof@sonarsource.com",
385 "scmDate": "2018-12-11T10:48:39+0100",
386 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
389 renderDuplicationPopup={[MockFunction]}
390 scrollToUncoveredLine={false}
391 secondaryIssueLocations={Array []}
398 exports[`should render correctly: has more sources 1`] = `
400 className="source-viewer-code"
403 className="source-viewer-more-code"
406 className="js-component-viewer-source-before"
407 onClick={[MockFunction]}
409 source_viewer.load_more_code
413 className="source-table"
419 "analysisDate": "2018-01-01",
420 "excludedFromPurge": true,
422 "name": "branch-6.7",
425 displayCoverage={true}
426 displayDuplications={false}
428 duplications={Array []}
429 duplicationsCount={0}
431 issueLocations={Array []}
437 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
438 "coverageStatus": "covered",
439 "coveredConditions": 2,
443 "scmAuthor": "simon.brandhof@sonarsource.com",
444 "scmDate": "2018-12-11T10:48:39+0100",
445 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
448 loadDuplications={[MockFunction]}
449 onIssueChange={[MockFunction]}
450 onIssuePopupToggle={[MockFunction]}
451 onIssueSelect={[MockFunction]}
452 onIssueUnselect={[MockFunction]}
453 onIssuesClose={[MockFunction]}
454 onIssuesOpen={[MockFunction]}
455 onLocationSelect={[MockFunction]}
456 onSymbolClick={[MockFunction]}
458 renderDuplicationPopup={[MockFunction]}
459 scrollToUncoveredLine={false}
460 secondaryIssueLocations={Array []}
465 "analysisDate": "2018-01-01",
466 "excludedFromPurge": true,
468 "name": "branch-6.7",
471 displayCoverage={true}
472 displayDuplications={false}
474 duplications={Array []}
475 duplicationsCount={0}
477 issueLocations={Array []}
483 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
484 "coverageStatus": "covered",
485 "coveredConditions": 2,
489 "scmAuthor": "simon.brandhof@sonarsource.com",
490 "scmDate": "2018-12-11T10:48:39+0100",
491 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
494 loadDuplications={[MockFunction]}
495 onIssueChange={[MockFunction]}
496 onIssuePopupToggle={[MockFunction]}
497 onIssueSelect={[MockFunction]}
498 onIssueUnselect={[MockFunction]}
499 onIssuesClose={[MockFunction]}
500 onIssuesOpen={[MockFunction]}
501 onLocationSelect={[MockFunction]}
502 onSymbolClick={[MockFunction]}
506 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
507 "coverageStatus": "covered",
508 "coveredConditions": 2,
512 "scmAuthor": "simon.brandhof@sonarsource.com",
513 "scmDate": "2018-12-11T10:48:39+0100",
514 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
517 renderDuplicationPopup={[MockFunction]}
518 scrollToUncoveredLine={false}
519 secondaryIssueLocations={Array []}
524 "analysisDate": "2018-01-01",
525 "excludedFromPurge": true,
527 "name": "branch-6.7",
530 displayCoverage={true}
531 displayDuplications={false}
533 duplications={Array []}
534 duplicationsCount={0}
536 issueLocations={Array []}
542 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
543 "coverageStatus": "covered",
544 "coveredConditions": 2,
548 "scmAuthor": "simon.brandhof@sonarsource.com",
549 "scmDate": "2018-12-11T10:48:39+0100",
550 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
553 loadDuplications={[MockFunction]}
554 onIssueChange={[MockFunction]}
555 onIssuePopupToggle={[MockFunction]}
556 onIssueSelect={[MockFunction]}
557 onIssueUnselect={[MockFunction]}
558 onIssuesClose={[MockFunction]}
559 onIssuesOpen={[MockFunction]}
560 onLocationSelect={[MockFunction]}
561 onSymbolClick={[MockFunction]}
565 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
566 "coverageStatus": "covered",
567 "coveredConditions": 2,
571 "scmAuthor": "simon.brandhof@sonarsource.com",
572 "scmDate": "2018-12-11T10:48:39+0100",
573 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
576 renderDuplicationPopup={[MockFunction]}
577 scrollToUncoveredLine={false}
578 secondaryIssueLocations={Array []}
583 className="source-viewer-more-code"
586 className="js-component-viewer-source-after"
587 onClick={[MockFunction]}
589 source_viewer.load_more_code