]> source.dussan.org Git - sonarqube.git/blob
f77a840ba37f364bf789c4540b91b25fc82b7bba
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="source-viewer-code snippet"
6 >
7   <div>
8     <div
9       className="expand-block expand-block-above"
10     >
11       <button
12         aria-label="source_viewer.expand_above"
13         onClick={[Function]}
14         type="button"
15       >
16         <ExpandSnippetIcon />
17       </button>
18     </div>
19     <table
20       className="source-table expand-up expand-down"
21     >
22       <tbody>
23         <Line
24           branchLike={
25             Object {
26               "analysisDate": "2018-01-01",
27               "excludedFromPurge": true,
28               "isMain": true,
29               "name": "master",
30             }
31           }
32           displayAllIssues={false}
33           displayCoverage={true}
34           displayDuplications={false}
35           displayIssues={true}
36           displayLocationMarkers={true}
37           duplications={Array []}
38           duplicationsCount={0}
39           highlighted={false}
40           issueLocations={Array []}
41           issues={Array []}
42           key="5"
43           last={false}
44           line={
45             Object {
46               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
47               "coverageStatus": "covered",
48               "coveredConditions": 2,
49               "duplicated": false,
50               "isNew": true,
51               "line": 5,
52               "scmAuthor": "simon.brandhof@sonarsource.com",
53               "scmDate": "2018-12-11T10:48:39+0100",
54               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
55             }
56           }
57           loadDuplications={[MockFunction]}
58           onIssueChange={[MockFunction]}
59           onIssuePopupToggle={[MockFunction]}
60           onIssueSelect={[Function]}
61           onIssueUnselect={[Function]}
62           onIssuesClose={[MockFunction]}
63           onIssuesOpen={[MockFunction]}
64           onLinePopupToggle={[MockFunction]}
65           onLocationSelect={[MockFunction]}
66           onSymbolClick={[MockFunction]}
67           renderDuplicationPopup={[MockFunction]}
68           scroll={[Function]}
69           secondaryIssueLocations={Array []}
70           verticalBuffer={0}
71         />
72         <Line
73           branchLike={
74             Object {
75               "analysisDate": "2018-01-01",
76               "excludedFromPurge": true,
77               "isMain": true,
78               "name": "master",
79             }
80           }
81           displayAllIssues={false}
82           displayCoverage={true}
83           displayDuplications={false}
84           displayIssues={true}
85           displayLocationMarkers={true}
86           duplications={Array []}
87           duplicationsCount={0}
88           highlighted={false}
89           issueLocations={Array []}
90           issues={Array []}
91           key="6"
92           last={false}
93           line={
94             Object {
95               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
96               "coverageStatus": "covered",
97               "coveredConditions": 2,
98               "duplicated": false,
99               "isNew": true,
100               "line": 6,
101               "scmAuthor": "simon.brandhof@sonarsource.com",
102               "scmDate": "2018-12-11T10:48:39+0100",
103               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
104             }
105           }
106           loadDuplications={[MockFunction]}
107           onIssueChange={[MockFunction]}
108           onIssuePopupToggle={[MockFunction]}
109           onIssueSelect={[Function]}
110           onIssueUnselect={[Function]}
111           onIssuesClose={[MockFunction]}
112           onIssuesOpen={[MockFunction]}
113           onLinePopupToggle={[MockFunction]}
114           onLocationSelect={[MockFunction]}
115           onSymbolClick={[MockFunction]}
116           previousLine={
117             Object {
118               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
119               "coverageStatus": "covered",
120               "coveredConditions": 2,
121               "duplicated": false,
122               "isNew": true,
123               "line": 5,
124               "scmAuthor": "simon.brandhof@sonarsource.com",
125               "scmDate": "2018-12-11T10:48:39+0100",
126               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
127             }
128           }
129           renderDuplicationPopup={[MockFunction]}
130           scroll={[Function]}
131           secondaryIssueLocations={Array []}
132           verticalBuffer={0}
133         />
134         <Line
135           branchLike={
136             Object {
137               "analysisDate": "2018-01-01",
138               "excludedFromPurge": true,
139               "isMain": true,
140               "name": "master",
141             }
142           }
143           displayAllIssues={false}
144           displayCoverage={true}
145           displayDuplications={false}
146           displayIssues={true}
147           displayLocationMarkers={true}
148           duplications={Array []}
149           duplicationsCount={0}
150           highlighted={false}
151           issueLocations={Array []}
152           issues={Array []}
153           key="7"
154           last={false}
155           line={
156             Object {
157               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
158               "coverageStatus": "covered",
159               "coveredConditions": 2,
160               "duplicated": false,
161               "isNew": true,
162               "line": 7,
163               "scmAuthor": "simon.brandhof@sonarsource.com",
164               "scmDate": "2018-12-11T10:48:39+0100",
165               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
166             }
167           }
168           loadDuplications={[MockFunction]}
169           onIssueChange={[MockFunction]}
170           onIssuePopupToggle={[MockFunction]}
171           onIssueSelect={[Function]}
172           onIssueUnselect={[Function]}
173           onIssuesClose={[MockFunction]}
174           onIssuesOpen={[MockFunction]}
175           onLinePopupToggle={[MockFunction]}
176           onLocationSelect={[MockFunction]}
177           onSymbolClick={[MockFunction]}
178           previousLine={
179             Object {
180               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
181               "coverageStatus": "covered",
182               "coveredConditions": 2,
183               "duplicated": false,
184               "isNew": true,
185               "line": 6,
186               "scmAuthor": "simon.brandhof@sonarsource.com",
187               "scmDate": "2018-12-11T10:48:39+0100",
188               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
189             }
190           }
191           renderDuplicationPopup={[MockFunction]}
192           scroll={[Function]}
193           secondaryIssueLocations={Array []}
194           verticalBuffer={0}
195         />
196       </tbody>
197     </table>
198     <div
199       className="expand-block expand-block-below"
200     >
201       <button
202         aria-label="source_viewer.expand_below"
203         onClick={[Function]}
204         type="button"
205       >
206         <ExpandSnippetIcon />
207       </button>
208     </div>
209   </div>
210 </div>
211 `;
212
213 exports[`should render correctly when at the bottom of the file 1`] = `
214 <div
215   className="source-viewer-code snippet"
216 >
217   <div>
218     <div
219       className="expand-block expand-block-above"
220     >
221       <button
222         aria-label="source_viewer.expand_above"
223         onClick={[Function]}
224         type="button"
225       >
226         <ExpandSnippetIcon />
227       </button>
228     </div>
229     <table
230       className="source-table expand-up expand-down"
231     >
232       <tbody>
233         <Line
234           branchLike={
235             Object {
236               "analysisDate": "2018-01-01",
237               "excludedFromPurge": true,
238               "isMain": true,
239               "name": "master",
240             }
241           }
242           displayAllIssues={false}
243           displayCoverage={true}
244           displayDuplications={false}
245           displayIssues={true}
246           displayLocationMarkers={true}
247           duplications={Array []}
248           duplicationsCount={0}
249           highlighted={false}
250           issueLocations={Array []}
251           issues={Array []}
252           key="10"
253           last={false}
254           line={
255             Object {
256               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
257               "coverageStatus": "covered",
258               "coveredConditions": 2,
259               "duplicated": false,
260               "isNew": true,
261               "line": 10,
262               "scmAuthor": "simon.brandhof@sonarsource.com",
263               "scmDate": "2018-12-11T10:48:39+0100",
264               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
265             }
266           }
267           loadDuplications={[MockFunction]}
268           onIssueChange={[MockFunction]}
269           onIssuePopupToggle={[MockFunction]}
270           onIssueSelect={[Function]}
271           onIssueUnselect={[Function]}
272           onIssuesClose={[MockFunction]}
273           onIssuesOpen={[MockFunction]}
274           onLinePopupToggle={[MockFunction]}
275           onLocationSelect={[MockFunction]}
276           onSymbolClick={[MockFunction]}
277           renderDuplicationPopup={[MockFunction]}
278           scroll={[Function]}
279           secondaryIssueLocations={Array []}
280           verticalBuffer={0}
281         />
282         <Line
283           branchLike={
284             Object {
285               "analysisDate": "2018-01-01",
286               "excludedFromPurge": true,
287               "isMain": true,
288               "name": "master",
289             }
290           }
291           displayAllIssues={false}
292           displayCoverage={true}
293           displayDuplications={false}
294           displayIssues={true}
295           displayLocationMarkers={true}
296           duplications={Array []}
297           duplicationsCount={0}
298           highlighted={false}
299           issueLocations={Array []}
300           issues={Array []}
301           key="11"
302           last={false}
303           line={
304             Object {
305               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
306               "coverageStatus": "covered",
307               "coveredConditions": 2,
308               "duplicated": false,
309               "isNew": true,
310               "line": 11,
311               "scmAuthor": "simon.brandhof@sonarsource.com",
312               "scmDate": "2018-12-11T10:48:39+0100",
313               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
314             }
315           }
316           loadDuplications={[MockFunction]}
317           onIssueChange={[MockFunction]}
318           onIssuePopupToggle={[MockFunction]}
319           onIssueSelect={[Function]}
320           onIssueUnselect={[Function]}
321           onIssuesClose={[MockFunction]}
322           onIssuesOpen={[MockFunction]}
323           onLinePopupToggle={[MockFunction]}
324           onLocationSelect={[MockFunction]}
325           onSymbolClick={[MockFunction]}
326           previousLine={
327             Object {
328               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
329               "coverageStatus": "covered",
330               "coveredConditions": 2,
331               "duplicated": false,
332               "isNew": true,
333               "line": 10,
334               "scmAuthor": "simon.brandhof@sonarsource.com",
335               "scmDate": "2018-12-11T10:48:39+0100",
336               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
337             }
338           }
339           renderDuplicationPopup={[MockFunction]}
340           scroll={[Function]}
341           secondaryIssueLocations={Array []}
342           verticalBuffer={0}
343         />
344         <Line
345           branchLike={
346             Object {
347               "analysisDate": "2018-01-01",
348               "excludedFromPurge": true,
349               "isMain": true,
350               "name": "master",
351             }
352           }
353           displayAllIssues={false}
354           displayCoverage={true}
355           displayDuplications={false}
356           displayIssues={true}
357           displayLocationMarkers={true}
358           duplications={Array []}
359           duplicationsCount={0}
360           highlighted={false}
361           issueLocations={Array []}
362           issues={Array []}
363           key="12"
364           last={false}
365           line={
366             Object {
367               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
368               "coverageStatus": "covered",
369               "coveredConditions": 2,
370               "duplicated": false,
371               "isNew": true,
372               "line": 12,
373               "scmAuthor": "simon.brandhof@sonarsource.com",
374               "scmDate": "2018-12-11T10:48:39+0100",
375               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
376             }
377           }
378           loadDuplications={[MockFunction]}
379           onIssueChange={[MockFunction]}
380           onIssuePopupToggle={[MockFunction]}
381           onIssueSelect={[Function]}
382           onIssueUnselect={[Function]}
383           onIssuesClose={[MockFunction]}
384           onIssuesOpen={[MockFunction]}
385           onLinePopupToggle={[MockFunction]}
386           onLocationSelect={[MockFunction]}
387           onSymbolClick={[MockFunction]}
388           previousLine={
389             Object {
390               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
391               "coverageStatus": "covered",
392               "coveredConditions": 2,
393               "duplicated": false,
394               "isNew": true,
395               "line": 11,
396               "scmAuthor": "simon.brandhof@sonarsource.com",
397               "scmDate": "2018-12-11T10:48:39+0100",
398               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
399             }
400           }
401           renderDuplicationPopup={[MockFunction]}
402           scroll={[Function]}
403           secondaryIssueLocations={Array []}
404           verticalBuffer={0}
405         />
406         <Line
407           branchLike={
408             Object {
409               "analysisDate": "2018-01-01",
410               "excludedFromPurge": true,
411               "isMain": true,
412               "name": "master",
413             }
414           }
415           displayAllIssues={false}
416           displayCoverage={true}
417           displayDuplications={false}
418           displayIssues={true}
419           displayLocationMarkers={true}
420           duplications={Array []}
421           duplicationsCount={0}
422           highlighted={false}
423           issueLocations={Array []}
424           issues={Array []}
425           key="13"
426           last={false}
427           line={
428             Object {
429               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
430               "coverageStatus": "covered",
431               "coveredConditions": 2,
432               "duplicated": false,
433               "isNew": true,
434               "line": 13,
435               "scmAuthor": "simon.brandhof@sonarsource.com",
436               "scmDate": "2018-12-11T10:48:39+0100",
437               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
438             }
439           }
440           loadDuplications={[MockFunction]}
441           onIssueChange={[MockFunction]}
442           onIssuePopupToggle={[MockFunction]}
443           onIssueSelect={[Function]}
444           onIssueUnselect={[Function]}
445           onIssuesClose={[MockFunction]}
446           onIssuesOpen={[MockFunction]}
447           onLinePopupToggle={[MockFunction]}
448           onLocationSelect={[MockFunction]}
449           onSymbolClick={[MockFunction]}
450           previousLine={
451             Object {
452               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
453               "coverageStatus": "covered",
454               "coveredConditions": 2,
455               "duplicated": false,
456               "isNew": true,
457               "line": 12,
458               "scmAuthor": "simon.brandhof@sonarsource.com",
459               "scmDate": "2018-12-11T10:48:39+0100",
460               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
461             }
462           }
463           renderDuplicationPopup={[MockFunction]}
464           scroll={[Function]}
465           secondaryIssueLocations={Array []}
466           verticalBuffer={0}
467         />
468       </tbody>
469     </table>
470     <div
471       className="expand-block expand-block-below"
472     >
473       <button
474         aria-label="source_viewer.expand_below"
475         onClick={[Function]}
476         type="button"
477       >
478         <ExpandSnippetIcon />
479       </button>
480     </div>
481   </div>
482 </div>
483 `;
484
485 exports[`should render correctly when at the top of the file 1`] = `
486 <div
487   className="source-viewer-code snippet"
488 >
489   <div>
490     <table
491       className="source-table expand-down"
492     >
493       <tbody>
494         <Line
495           branchLike={
496             Object {
497               "analysisDate": "2018-01-01",
498               "excludedFromPurge": true,
499               "isMain": true,
500               "name": "master",
501             }
502           }
503           displayAllIssues={false}
504           displayCoverage={true}
505           displayDuplications={false}
506           displayIssues={true}
507           displayLocationMarkers={true}
508           duplications={Array []}
509           duplicationsCount={0}
510           highlighted={false}
511           issueLocations={Array []}
512           issues={Array []}
513           key="1"
514           last={false}
515           line={
516             Object {
517               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
518               "coverageStatus": "covered",
519               "coveredConditions": 2,
520               "duplicated": false,
521               "isNew": true,
522               "line": 1,
523               "scmAuthor": "simon.brandhof@sonarsource.com",
524               "scmDate": "2018-12-11T10:48:39+0100",
525               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
526             }
527           }
528           loadDuplications={[MockFunction]}
529           onIssueChange={[MockFunction]}
530           onIssuePopupToggle={[MockFunction]}
531           onIssueSelect={[Function]}
532           onIssueUnselect={[Function]}
533           onIssuesClose={[MockFunction]}
534           onIssuesOpen={[MockFunction]}
535           onLinePopupToggle={[MockFunction]}
536           onLocationSelect={[MockFunction]}
537           onSymbolClick={[MockFunction]}
538           renderDuplicationPopup={[MockFunction]}
539           scroll={[Function]}
540           secondaryIssueLocations={Array []}
541           verticalBuffer={0}
542         />
543         <Line
544           branchLike={
545             Object {
546               "analysisDate": "2018-01-01",
547               "excludedFromPurge": true,
548               "isMain": true,
549               "name": "master",
550             }
551           }
552           displayAllIssues={false}
553           displayCoverage={true}
554           displayDuplications={false}
555           displayIssues={true}
556           displayLocationMarkers={true}
557           duplications={Array []}
558           duplicationsCount={0}
559           highlighted={false}
560           issueLocations={Array []}
561           issues={Array []}
562           key="2"
563           last={false}
564           line={
565             Object {
566               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
567               "coverageStatus": "covered",
568               "coveredConditions": 2,
569               "duplicated": false,
570               "isNew": true,
571               "line": 2,
572               "scmAuthor": "simon.brandhof@sonarsource.com",
573               "scmDate": "2018-12-11T10:48:39+0100",
574               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
575             }
576           }
577           loadDuplications={[MockFunction]}
578           onIssueChange={[MockFunction]}
579           onIssuePopupToggle={[MockFunction]}
580           onIssueSelect={[Function]}
581           onIssueUnselect={[Function]}
582           onIssuesClose={[MockFunction]}
583           onIssuesOpen={[MockFunction]}
584           onLinePopupToggle={[MockFunction]}
585           onLocationSelect={[MockFunction]}
586           onSymbolClick={[MockFunction]}
587           previousLine={
588             Object {
589               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
590               "coverageStatus": "covered",
591               "coveredConditions": 2,
592               "duplicated": false,
593               "isNew": true,
594               "line": 1,
595               "scmAuthor": "simon.brandhof@sonarsource.com",
596               "scmDate": "2018-12-11T10:48:39+0100",
597               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
598             }
599           }
600           renderDuplicationPopup={[MockFunction]}
601           scroll={[Function]}
602           secondaryIssueLocations={Array []}
603           verticalBuffer={0}
604         />
605         <Line
606           branchLike={
607             Object {
608               "analysisDate": "2018-01-01",
609               "excludedFromPurge": true,
610               "isMain": true,
611               "name": "master",
612             }
613           }
614           displayAllIssues={false}
615           displayCoverage={true}
616           displayDuplications={false}
617           displayIssues={true}
618           displayLocationMarkers={true}
619           duplications={Array []}
620           duplicationsCount={0}
621           highlighted={false}
622           issueLocations={Array []}
623           issues={Array []}
624           key="3"
625           last={false}
626           line={
627             Object {
628               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
629               "coverageStatus": "covered",
630               "coveredConditions": 2,
631               "duplicated": false,
632               "isNew": true,
633               "line": 3,
634               "scmAuthor": "simon.brandhof@sonarsource.com",
635               "scmDate": "2018-12-11T10:48:39+0100",
636               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
637             }
638           }
639           loadDuplications={[MockFunction]}
640           onIssueChange={[MockFunction]}
641           onIssuePopupToggle={[MockFunction]}
642           onIssueSelect={[Function]}
643           onIssueUnselect={[Function]}
644           onIssuesClose={[MockFunction]}
645           onIssuesOpen={[MockFunction]}
646           onLinePopupToggle={[MockFunction]}
647           onLocationSelect={[MockFunction]}
648           onSymbolClick={[MockFunction]}
649           previousLine={
650             Object {
651               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
652               "coverageStatus": "covered",
653               "coveredConditions": 2,
654               "duplicated": false,
655               "isNew": true,
656               "line": 2,
657               "scmAuthor": "simon.brandhof@sonarsource.com",
658               "scmDate": "2018-12-11T10:48:39+0100",
659               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
660             }
661           }
662           renderDuplicationPopup={[MockFunction]}
663           scroll={[Function]}
664           secondaryIssueLocations={Array []}
665           verticalBuffer={0}
666         />
667         <Line
668           branchLike={
669             Object {
670               "analysisDate": "2018-01-01",
671               "excludedFromPurge": true,
672               "isMain": true,
673               "name": "master",
674             }
675           }
676           displayAllIssues={false}
677           displayCoverage={true}
678           displayDuplications={false}
679           displayIssues={true}
680           displayLocationMarkers={true}
681           duplications={Array []}
682           duplicationsCount={0}
683           highlighted={false}
684           issueLocations={Array []}
685           issues={Array []}
686           key="4"
687           last={false}
688           line={
689             Object {
690               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
691               "coverageStatus": "covered",
692               "coveredConditions": 2,
693               "duplicated": false,
694               "isNew": true,
695               "line": 4,
696               "scmAuthor": "simon.brandhof@sonarsource.com",
697               "scmDate": "2018-12-11T10:48:39+0100",
698               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
699             }
700           }
701           loadDuplications={[MockFunction]}
702           onIssueChange={[MockFunction]}
703           onIssuePopupToggle={[MockFunction]}
704           onIssueSelect={[Function]}
705           onIssueUnselect={[Function]}
706           onIssuesClose={[MockFunction]}
707           onIssuesOpen={[MockFunction]}
708           onLinePopupToggle={[MockFunction]}
709           onLocationSelect={[MockFunction]}
710           onSymbolClick={[MockFunction]}
711           previousLine={
712             Object {
713               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
714               "coverageStatus": "covered",
715               "coveredConditions": 2,
716               "duplicated": false,
717               "isNew": true,
718               "line": 3,
719               "scmAuthor": "simon.brandhof@sonarsource.com",
720               "scmDate": "2018-12-11T10:48:39+0100",
721               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
722             }
723           }
724           renderDuplicationPopup={[MockFunction]}
725           scroll={[Function]}
726           secondaryIssueLocations={Array []}
727           verticalBuffer={0}
728         />
729         <Line
730           branchLike={
731             Object {
732               "analysisDate": "2018-01-01",
733               "excludedFromPurge": true,
734               "isMain": true,
735               "name": "master",
736             }
737           }
738           displayAllIssues={false}
739           displayCoverage={true}
740           displayDuplications={false}
741           displayIssues={true}
742           displayLocationMarkers={true}
743           duplications={Array []}
744           duplicationsCount={0}
745           highlighted={false}
746           issueLocations={Array []}
747           issues={Array []}
748           key="5"
749           last={false}
750           line={
751             Object {
752               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
753               "coverageStatus": "covered",
754               "coveredConditions": 2,
755               "duplicated": false,
756               "isNew": true,
757               "line": 5,
758               "scmAuthor": "simon.brandhof@sonarsource.com",
759               "scmDate": "2018-12-11T10:48:39+0100",
760               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
761             }
762           }
763           loadDuplications={[MockFunction]}
764           onIssueChange={[MockFunction]}
765           onIssuePopupToggle={[MockFunction]}
766           onIssueSelect={[Function]}
767           onIssueUnselect={[Function]}
768           onIssuesClose={[MockFunction]}
769           onIssuesOpen={[MockFunction]}
770           onLinePopupToggle={[MockFunction]}
771           onLocationSelect={[MockFunction]}
772           onSymbolClick={[MockFunction]}
773           previousLine={
774             Object {
775               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
776               "coverageStatus": "covered",
777               "coveredConditions": 2,
778               "duplicated": false,
779               "isNew": true,
780               "line": 4,
781               "scmAuthor": "simon.brandhof@sonarsource.com",
782               "scmDate": "2018-12-11T10:48:39+0100",
783               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
784             }
785           }
786           renderDuplicationPopup={[MockFunction]}
787           scroll={[Function]}
788           secondaryIssueLocations={Array []}
789           verticalBuffer={0}
790         />
791         <Line
792           branchLike={
793             Object {
794               "analysisDate": "2018-01-01",
795               "excludedFromPurge": true,
796               "isMain": true,
797               "name": "master",
798             }
799           }
800           displayAllIssues={false}
801           displayCoverage={true}
802           displayDuplications={false}
803           displayIssues={true}
804           displayLocationMarkers={true}
805           duplications={Array []}
806           duplicationsCount={0}
807           highlighted={false}
808           issueLocations={Array []}
809           issues={Array []}
810           key="6"
811           last={false}
812           line={
813             Object {
814               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
815               "coverageStatus": "covered",
816               "coveredConditions": 2,
817               "duplicated": false,
818               "isNew": true,
819               "line": 6,
820               "scmAuthor": "simon.brandhof@sonarsource.com",
821               "scmDate": "2018-12-11T10:48:39+0100",
822               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
823             }
824           }
825           loadDuplications={[MockFunction]}
826           onIssueChange={[MockFunction]}
827           onIssuePopupToggle={[MockFunction]}
828           onIssueSelect={[Function]}
829           onIssueUnselect={[Function]}
830           onIssuesClose={[MockFunction]}
831           onIssuesOpen={[MockFunction]}
832           onLinePopupToggle={[MockFunction]}
833           onLocationSelect={[MockFunction]}
834           onSymbolClick={[MockFunction]}
835           previousLine={
836             Object {
837               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
838               "coverageStatus": "covered",
839               "coveredConditions": 2,
840               "duplicated": false,
841               "isNew": true,
842               "line": 5,
843               "scmAuthor": "simon.brandhof@sonarsource.com",
844               "scmDate": "2018-12-11T10:48:39+0100",
845               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
846             }
847           }
848           renderDuplicationPopup={[MockFunction]}
849           scroll={[Function]}
850           secondaryIssueLocations={Array []}
851           verticalBuffer={0}
852         />
853         <Line
854           branchLike={
855             Object {
856               "analysisDate": "2018-01-01",
857               "excludedFromPurge": true,
858               "isMain": true,
859               "name": "master",
860             }
861           }
862           displayAllIssues={false}
863           displayCoverage={true}
864           displayDuplications={false}
865           displayIssues={true}
866           displayLocationMarkers={true}
867           duplications={Array []}
868           duplicationsCount={0}
869           highlighted={false}
870           issueLocations={Array []}
871           issues={Array []}
872           key="7"
873           last={false}
874           line={
875             Object {
876               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
877               "coverageStatus": "covered",
878               "coveredConditions": 2,
879               "duplicated": false,
880               "isNew": true,
881               "line": 7,
882               "scmAuthor": "simon.brandhof@sonarsource.com",
883               "scmDate": "2018-12-11T10:48:39+0100",
884               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
885             }
886           }
887           loadDuplications={[MockFunction]}
888           onIssueChange={[MockFunction]}
889           onIssuePopupToggle={[MockFunction]}
890           onIssueSelect={[Function]}
891           onIssueUnselect={[Function]}
892           onIssuesClose={[MockFunction]}
893           onIssuesOpen={[MockFunction]}
894           onLinePopupToggle={[MockFunction]}
895           onLocationSelect={[MockFunction]}
896           onSymbolClick={[MockFunction]}
897           previousLine={
898             Object {
899               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
900               "coverageStatus": "covered",
901               "coveredConditions": 2,
902               "duplicated": false,
903               "isNew": true,
904               "line": 6,
905               "scmAuthor": "simon.brandhof@sonarsource.com",
906               "scmDate": "2018-12-11T10:48:39+0100",
907               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
908             }
909           }
910           renderDuplicationPopup={[MockFunction]}
911           scroll={[Function]}
912           secondaryIssueLocations={Array []}
913           verticalBuffer={0}
914         />
915       </tbody>
916     </table>
917     <div
918       className="expand-block expand-block-below"
919     >
920       <button
921         aria-label="source_viewer.expand_below"
922         onClick={[Function]}
923         type="button"
924       >
925         <ExpandSnippetIcon />
926       </button>
927     </div>
928   </div>
929 </div>
930 `;
931
932 exports[`should render correctly with no SCM 1`] = `
933 <div
934   className="source-viewer-code snippet"
935 >
936   <div>
937     <div
938       className="expand-block expand-block-above"
939     >
940       <button
941         aria-label="source_viewer.expand_above"
942         onClick={[Function]}
943         type="button"
944       >
945         <ExpandSnippetIcon />
946       </button>
947     </div>
948     <table
949       className="source-table expand-up expand-down"
950     >
951       <tbody>
952         <Line
953           branchLike={
954             Object {
955               "analysisDate": "2018-01-01",
956               "excludedFromPurge": true,
957               "isMain": true,
958               "name": "master",
959             }
960           }
961           displayAllIssues={false}
962           displayCoverage={true}
963           displayDuplications={false}
964           displayIssues={true}
965           displayLocationMarkers={true}
966           displaySCM={false}
967           duplications={Array []}
968           duplicationsCount={0}
969           highlighted={false}
970           issueLocations={Array []}
971           issues={Array []}
972           key="5"
973           last={false}
974           line={
975             Object {
976               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
977               "coverageStatus": "covered",
978               "coveredConditions": 2,
979               "duplicated": false,
980               "isNew": true,
981               "line": 5,
982               "scmAuthor": "simon.brandhof@sonarsource.com",
983               "scmDate": "2018-12-11T10:48:39+0100",
984               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
985             }
986           }
987           loadDuplications={[MockFunction]}
988           onIssueChange={[MockFunction]}
989           onIssuePopupToggle={[MockFunction]}
990           onIssueSelect={[Function]}
991           onIssueUnselect={[Function]}
992           onIssuesClose={[MockFunction]}
993           onIssuesOpen={[MockFunction]}
994           onLinePopupToggle={[MockFunction]}
995           onLocationSelect={[MockFunction]}
996           onSymbolClick={[MockFunction]}
997           renderDuplicationPopup={[MockFunction]}
998           scroll={[Function]}
999           secondaryIssueLocations={Array []}
1000           verticalBuffer={0}
1001         />
1002         <Line
1003           branchLike={
1004             Object {
1005               "analysisDate": "2018-01-01",
1006               "excludedFromPurge": true,
1007               "isMain": true,
1008               "name": "master",
1009             }
1010           }
1011           displayAllIssues={false}
1012           displayCoverage={true}
1013           displayDuplications={false}
1014           displayIssues={true}
1015           displayLocationMarkers={true}
1016           displaySCM={false}
1017           duplications={Array []}
1018           duplicationsCount={0}
1019           highlighted={false}
1020           issueLocations={Array []}
1021           issues={Array []}
1022           key="6"
1023           last={false}
1024           line={
1025             Object {
1026               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
1027               "coverageStatus": "covered",
1028               "coveredConditions": 2,
1029               "duplicated": false,
1030               "isNew": true,
1031               "line": 6,
1032               "scmAuthor": "simon.brandhof@sonarsource.com",
1033               "scmDate": "2018-12-11T10:48:39+0100",
1034               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
1035             }
1036           }
1037           loadDuplications={[MockFunction]}
1038           onIssueChange={[MockFunction]}
1039           onIssuePopupToggle={[MockFunction]}
1040           onIssueSelect={[Function]}
1041           onIssueUnselect={[Function]}
1042           onIssuesClose={[MockFunction]}
1043           onIssuesOpen={[MockFunction]}
1044           onLinePopupToggle={[MockFunction]}
1045           onLocationSelect={[MockFunction]}
1046           onSymbolClick={[MockFunction]}
1047           previousLine={
1048             Object {
1049               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
1050               "coverageStatus": "covered",
1051               "coveredConditions": 2,
1052               "duplicated": false,
1053               "isNew": true,
1054               "line": 5,
1055               "scmAuthor": "simon.brandhof@sonarsource.com",
1056               "scmDate": "2018-12-11T10:48:39+0100",
1057               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
1058             }
1059           }
1060           renderDuplicationPopup={[MockFunction]}
1061           scroll={[Function]}
1062           secondaryIssueLocations={Array []}
1063           verticalBuffer={0}
1064         />
1065         <Line
1066           branchLike={
1067             Object {
1068               "analysisDate": "2018-01-01",
1069               "excludedFromPurge": true,
1070               "isMain": true,
1071               "name": "master",
1072             }
1073           }
1074           displayAllIssues={false}
1075           displayCoverage={true}
1076           displayDuplications={false}
1077           displayIssues={true}
1078           displayLocationMarkers={true}
1079           displaySCM={false}
1080           duplications={Array []}
1081           duplicationsCount={0}
1082           highlighted={false}
1083           issueLocations={Array []}
1084           issues={Array []}
1085           key="7"
1086           last={false}
1087           line={
1088             Object {
1089               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
1090               "coverageStatus": "covered",
1091               "coveredConditions": 2,
1092               "duplicated": false,
1093               "isNew": true,
1094               "line": 7,
1095               "scmAuthor": "simon.brandhof@sonarsource.com",
1096               "scmDate": "2018-12-11T10:48:39+0100",
1097               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
1098             }
1099           }
1100           loadDuplications={[MockFunction]}
1101           onIssueChange={[MockFunction]}
1102           onIssuePopupToggle={[MockFunction]}
1103           onIssueSelect={[Function]}
1104           onIssueUnselect={[Function]}
1105           onIssuesClose={[MockFunction]}
1106           onIssuesOpen={[MockFunction]}
1107           onLinePopupToggle={[MockFunction]}
1108           onLocationSelect={[MockFunction]}
1109           onSymbolClick={[MockFunction]}
1110           previousLine={
1111             Object {
1112               "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
1113               "coverageStatus": "covered",
1114               "coveredConditions": 2,
1115               "duplicated": false,
1116               "isNew": true,
1117               "line": 6,
1118               "scmAuthor": "simon.brandhof@sonarsource.com",
1119               "scmDate": "2018-12-11T10:48:39+0100",
1120               "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
1121             }
1122           }
1123           renderDuplicationPopup={[MockFunction]}
1124           scroll={[Function]}
1125           secondaryIssueLocations={Array []}
1126           verticalBuffer={0}
1127         />
1128       </tbody>
1129     </table>
1130     <div
1131       className="expand-block expand-block-below"
1132     >
1133       <button
1134         aria-label="source_viewer.expand_below"
1135         onClick={[Function]}
1136         type="button"
1137       >
1138         <ExpandSnippetIcon />
1139       </button>
1140     </div>
1141   </div>
1142 </div>
1143 `;