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