1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly 1`] = `
5 className="source-line source-line-filtered"
11 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
12 "coverageStatus": "covered",
13 "coveredConditions": 2,
17 "scmAuthor": "simon.brandhof@sonarsource.com",
18 "scmDate": "2018-12-11T10:48:39+0100",
19 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
26 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
27 "coverageStatus": "covered",
28 "coveredConditions": 2,
32 "scmAuthor": "simon.brandhof@sonarsource.com",
33 "scmDate": "2018-12-11T10:48:39+0100",
34 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
39 className="source-meta source-line-issues"
44 "analysisDate": "2018-01-01",
46 "branch": "feature/foo/bar",
49 "title": "Foo Bar feature",
52 displayLocationMarkers={false}
53 issueLocations={Array []}
58 "component": "main.js",
59 "componentLongName": "main.js",
60 "componentQualifier": "FIL",
61 "componentUuid": "foo1234",
62 "creationDate": "2017-03-01T09:36:01+0100",
65 "key": "AVsae-CQS-9G3txfbFN2",
67 "message": "Reduce the number of conditional operators (4) used in the expression",
68 "project": "myproject",
71 "rule": "javascript:S1067",
73 "secondaryLocations": Array [],
82 "transitions": Array [],
87 "component": "main.js",
88 "componentLongName": "main.js",
89 "componentQualifier": "FIL",
90 "componentUuid": "foo1234",
91 "creationDate": "2017-03-01T09:36:01+0100",
94 "key": "AVsae-CQS-9G3txfbFN2",
96 "message": "Reduce the number of conditional operators (4) used in the expression",
97 "project": "myproject",
100 "rule": "javascript:S1067",
102 "secondaryLocations": Array [],
105 "textRange": Object {
111 "transitions": Array [],
112 "type": "VULNERABILITY",
118 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
119 "coverageStatus": "covered",
120 "coveredConditions": 2,
124 "scmAuthor": "simon.brandhof@sonarsource.com",
125 "scmDate": "2018-12-11T10:48:39+0100",
126 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
129 onIssueChange={[MockFunction]}
130 onIssuePopupToggle={[MockFunction]}
131 onIssueSelect={[MockFunction]}
132 onLocationSelect={[MockFunction]}
133 onSymbolClick={[MockFunction]}
134 scroll={[MockFunction]}
135 secondaryIssueLocations={Array []}
141 exports[`should render correctly for last, new, and highlighted lines 1`] = `
143 className="source-line source-line-highlighted source-line-filtered source-line-last"
144 data-line-number={16}
149 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
150 "coverageStatus": "covered",
151 "coveredConditions": 2,
155 "scmAuthor": "simon.brandhof@sonarsource.com",
156 "scmDate": "2018-12-11T10:48:39+0100",
157 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
164 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
165 "coverageStatus": "covered",
166 "coveredConditions": 2,
170 "scmAuthor": "simon.brandhof@sonarsource.com",
171 "scmDate": "2018-12-11T10:48:39+0100",
172 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
177 className="source-meta source-line-issues"
182 "analysisDate": "2018-01-01",
184 "branch": "feature/foo/bar",
187 "title": "Foo Bar feature",
190 displayLocationMarkers={false}
191 issueLocations={Array []}
196 "component": "main.js",
197 "componentLongName": "main.js",
198 "componentQualifier": "FIL",
199 "componentUuid": "foo1234",
200 "creationDate": "2017-03-01T09:36:01+0100",
202 "fromHotspot": false,
203 "key": "AVsae-CQS-9G3txfbFN2",
205 "message": "Reduce the number of conditional operators (4) used in the expression",
206 "project": "myproject",
208 "projectName": "Foo",
209 "rule": "javascript:S1067",
211 "secondaryLocations": Array [],
214 "textRange": Object {
220 "transitions": Array [],
225 "component": "main.js",
226 "componentLongName": "main.js",
227 "componentQualifier": "FIL",
228 "componentUuid": "foo1234",
229 "creationDate": "2017-03-01T09:36:01+0100",
231 "fromHotspot": false,
232 "key": "AVsae-CQS-9G3txfbFN2",
234 "message": "Reduce the number of conditional operators (4) used in the expression",
235 "project": "myproject",
237 "projectName": "Foo",
238 "rule": "javascript:S1067",
240 "secondaryLocations": Array [],
243 "textRange": Object {
249 "transitions": Array [],
250 "type": "VULNERABILITY",
256 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
257 "coverageStatus": "covered",
258 "coveredConditions": 2,
262 "scmAuthor": "simon.brandhof@sonarsource.com",
263 "scmDate": "2018-12-11T10:48:39+0100",
264 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
267 onIssueChange={[MockFunction]}
268 onIssuePopupToggle={[MockFunction]}
269 onIssueSelect={[MockFunction]}
270 onLocationSelect={[MockFunction]}
271 onSymbolClick={[MockFunction]}
272 scroll={[MockFunction]}
273 secondaryIssueLocations={Array []}
279 exports[`should render correctly with coverage 1`] = `
281 className="source-line source-line-filtered"
282 data-line-number={16}
287 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
288 "coverageStatus": "covered",
289 "coveredConditions": 2,
293 "scmAuthor": "simon.brandhof@sonarsource.com",
294 "scmDate": "2018-12-11T10:48:39+0100",
295 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
302 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
303 "coverageStatus": "covered",
304 "coveredConditions": 2,
308 "scmAuthor": "simon.brandhof@sonarsource.com",
309 "scmDate": "2018-12-11T10:48:39+0100",
310 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
315 className="source-meta source-line-issues"
320 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
321 "coverageStatus": "covered",
322 "coveredConditions": 2,
326 "scmAuthor": "simon.brandhof@sonarsource.com",
327 "scmDate": "2018-12-11T10:48:39+0100",
328 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
331 scroll={[MockFunction]}
336 "analysisDate": "2018-01-01",
338 "branch": "feature/foo/bar",
341 "title": "Foo Bar feature",
344 displayLocationMarkers={false}
345 issueLocations={Array []}
350 "component": "main.js",
351 "componentLongName": "main.js",
352 "componentQualifier": "FIL",
353 "componentUuid": "foo1234",
354 "creationDate": "2017-03-01T09:36:01+0100",
356 "fromHotspot": false,
357 "key": "AVsae-CQS-9G3txfbFN2",
359 "message": "Reduce the number of conditional operators (4) used in the expression",
360 "project": "myproject",
362 "projectName": "Foo",
363 "rule": "javascript:S1067",
365 "secondaryLocations": Array [],
368 "textRange": Object {
374 "transitions": Array [],
379 "component": "main.js",
380 "componentLongName": "main.js",
381 "componentQualifier": "FIL",
382 "componentUuid": "foo1234",
383 "creationDate": "2017-03-01T09:36:01+0100",
385 "fromHotspot": false,
386 "key": "AVsae-CQS-9G3txfbFN2",
388 "message": "Reduce the number of conditional operators (4) used in the expression",
389 "project": "myproject",
391 "projectName": "Foo",
392 "rule": "javascript:S1067",
394 "secondaryLocations": Array [],
397 "textRange": Object {
403 "transitions": Array [],
404 "type": "VULNERABILITY",
410 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
411 "coverageStatus": "covered",
412 "coveredConditions": 2,
416 "scmAuthor": "simon.brandhof@sonarsource.com",
417 "scmDate": "2018-12-11T10:48:39+0100",
418 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
421 onIssueChange={[MockFunction]}
422 onIssuePopupToggle={[MockFunction]}
423 onIssueSelect={[MockFunction]}
424 onLocationSelect={[MockFunction]}
425 onSymbolClick={[MockFunction]}
426 scroll={[MockFunction]}
427 secondaryIssueLocations={Array []}
433 exports[`should render correctly with duplication information 1`] = `
435 className="source-line source-line-filtered"
436 data-line-number={16}
441 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
442 "coverageStatus": "covered",
443 "coveredConditions": 2,
447 "scmAuthor": "simon.brandhof@sonarsource.com",
448 "scmDate": "2018-12-11T10:48:39+0100",
449 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
456 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
457 "coverageStatus": "covered",
458 "coveredConditions": 2,
462 "scmAuthor": "simon.brandhof@sonarsource.com",
463 "scmDate": "2018-12-11T10:48:39+0100",
464 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
469 className="source-meta source-line-issues"
471 <Memo(LineDuplicationBlock)
478 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
479 "coverageStatus": "covered",
480 "coveredConditions": 2,
484 "scmAuthor": "simon.brandhof@sonarsource.com",
485 "scmDate": "2018-12-11T10:48:39+0100",
486 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
489 onClick={[MockFunction]}
490 renderDuplicationPopup={[MockFunction]}
492 <Memo(LineDuplicationBlock)
499 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
500 "coverageStatus": "covered",
501 "coveredConditions": 2,
505 "scmAuthor": "simon.brandhof@sonarsource.com",
506 "scmDate": "2018-12-11T10:48:39+0100",
507 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
510 renderDuplicationPopup={[MockFunction]}
512 <Memo(LineDuplicationBlock)
519 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
520 "coverageStatus": "covered",
521 "coveredConditions": 2,
525 "scmAuthor": "simon.brandhof@sonarsource.com",
526 "scmDate": "2018-12-11T10:48:39+0100",
527 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
530 renderDuplicationPopup={[MockFunction]}
535 "analysisDate": "2018-01-01",
537 "branch": "feature/foo/bar",
540 "title": "Foo Bar feature",
543 displayLocationMarkers={false}
544 issueLocations={Array []}
549 "component": "main.js",
550 "componentLongName": "main.js",
551 "componentQualifier": "FIL",
552 "componentUuid": "foo1234",
553 "creationDate": "2017-03-01T09:36:01+0100",
555 "fromHotspot": false,
556 "key": "AVsae-CQS-9G3txfbFN2",
558 "message": "Reduce the number of conditional operators (4) used in the expression",
559 "project": "myproject",
561 "projectName": "Foo",
562 "rule": "javascript:S1067",
564 "secondaryLocations": Array [],
567 "textRange": Object {
573 "transitions": Array [],
578 "component": "main.js",
579 "componentLongName": "main.js",
580 "componentQualifier": "FIL",
581 "componentUuid": "foo1234",
582 "creationDate": "2017-03-01T09:36:01+0100",
584 "fromHotspot": false,
585 "key": "AVsae-CQS-9G3txfbFN2",
587 "message": "Reduce the number of conditional operators (4) used in the expression",
588 "project": "myproject",
590 "projectName": "Foo",
591 "rule": "javascript:S1067",
593 "secondaryLocations": Array [],
596 "textRange": Object {
602 "transitions": Array [],
603 "type": "VULNERABILITY",
609 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
610 "coverageStatus": "covered",
611 "coveredConditions": 2,
615 "scmAuthor": "simon.brandhof@sonarsource.com",
616 "scmDate": "2018-12-11T10:48:39+0100",
617 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
620 onIssueChange={[MockFunction]}
621 onIssuePopupToggle={[MockFunction]}
622 onIssueSelect={[MockFunction]}
623 onLocationSelect={[MockFunction]}
624 onSymbolClick={[MockFunction]}
625 scroll={[MockFunction]}
626 secondaryIssueLocations={Array []}
632 exports[`should render correctly with issues info 1`] = `
634 className="source-line source-line-filtered"
635 data-line-number={16}
640 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
641 "coverageStatus": "covered",
642 "coveredConditions": 2,
646 "scmAuthor": "simon.brandhof@sonarsource.com",
647 "scmDate": "2018-12-11T10:48:39+0100",
648 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
655 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
656 "coverageStatus": "covered",
657 "coveredConditions": 2,
661 "scmAuthor": "simon.brandhof@sonarsource.com",
662 "scmDate": "2018-12-11T10:48:39+0100",
663 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
667 <Memo(LineIssuesIndicator)
672 "component": "main.js",
673 "componentLongName": "main.js",
674 "componentQualifier": "FIL",
675 "componentUuid": "foo1234",
676 "creationDate": "2017-03-01T09:36:01+0100",
678 "fromHotspot": false,
679 "key": "AVsae-CQS-9G3txfbFN2",
681 "message": "Reduce the number of conditional operators (4) used in the expression",
682 "project": "myproject",
684 "projectName": "Foo",
685 "rule": "javascript:S1067",
687 "secondaryLocations": Array [],
690 "textRange": Object {
696 "transitions": Array [],
701 "component": "main.js",
702 "componentLongName": "main.js",
703 "componentQualifier": "FIL",
704 "componentUuid": "foo1234",
705 "creationDate": "2017-03-01T09:36:01+0100",
707 "fromHotspot": false,
708 "key": "AVsae-CQS-9G3txfbFN2",
710 "message": "Reduce the number of conditional operators (4) used in the expression",
711 "project": "myproject",
713 "projectName": "Foo",
714 "rule": "javascript:S1067",
716 "secondaryLocations": Array [],
719 "textRange": Object {
725 "transitions": Array [],
726 "type": "VULNERABILITY",
733 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
734 "coverageStatus": "covered",
735 "coveredConditions": 2,
739 "scmAuthor": "simon.brandhof@sonarsource.com",
740 "scmDate": "2018-12-11T10:48:39+0100",
741 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
749 "analysisDate": "2018-01-01",
751 "branch": "feature/foo/bar",
754 "title": "Foo Bar feature",
757 displayLocationMarkers={false}
758 issueLocations={Array []}
763 "component": "main.js",
764 "componentLongName": "main.js",
765 "componentQualifier": "FIL",
766 "componentUuid": "foo1234",
767 "creationDate": "2017-03-01T09:36:01+0100",
769 "fromHotspot": false,
770 "key": "AVsae-CQS-9G3txfbFN2",
772 "message": "Reduce the number of conditional operators (4) used in the expression",
773 "project": "myproject",
775 "projectName": "Foo",
776 "rule": "javascript:S1067",
778 "secondaryLocations": Array [],
781 "textRange": Object {
787 "transitions": Array [],
792 "component": "main.js",
793 "componentLongName": "main.js",
794 "componentQualifier": "FIL",
795 "componentUuid": "foo1234",
796 "creationDate": "2017-03-01T09:36:01+0100",
798 "fromHotspot": false,
799 "key": "AVsae-CQS-9G3txfbFN2",
801 "message": "Reduce the number of conditional operators (4) used in the expression",
802 "project": "myproject",
804 "projectName": "Foo",
805 "rule": "javascript:S1067",
807 "secondaryLocations": Array [],
810 "textRange": Object {
816 "transitions": Array [],
817 "type": "VULNERABILITY",
823 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
824 "coverageStatus": "covered",
825 "coveredConditions": 2,
829 "scmAuthor": "simon.brandhof@sonarsource.com",
830 "scmDate": "2018-12-11T10:48:39+0100",
831 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
834 onIssueChange={[MockFunction]}
835 onIssuePopupToggle={[MockFunction]}
836 onIssueSelect={[MockFunction]}
837 onLocationSelect={[MockFunction]}
838 onSymbolClick={[MockFunction]}
839 scroll={[MockFunction]}
840 secondaryIssueLocations={Array []}
846 exports[`should render correctly: no SCM 1`] = `
848 className="source-line source-line-filtered"
849 data-line-number={16}
854 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
855 "coverageStatus": "covered",
856 "coveredConditions": 2,
860 "scmAuthor": "simon.brandhof@sonarsource.com",
861 "scmDate": "2018-12-11T10:48:39+0100",
862 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
867 className="source-meta source-line-issues"
872 "analysisDate": "2018-01-01",
874 "branch": "feature/foo/bar",
877 "title": "Foo Bar feature",
880 displayLocationMarkers={false}
881 issueLocations={Array []}
886 "component": "main.js",
887 "componentLongName": "main.js",
888 "componentQualifier": "FIL",
889 "componentUuid": "foo1234",
890 "creationDate": "2017-03-01T09:36:01+0100",
892 "fromHotspot": false,
893 "key": "AVsae-CQS-9G3txfbFN2",
895 "message": "Reduce the number of conditional operators (4) used in the expression",
896 "project": "myproject",
898 "projectName": "Foo",
899 "rule": "javascript:S1067",
901 "secondaryLocations": Array [],
904 "textRange": Object {
910 "transitions": Array [],
915 "component": "main.js",
916 "componentLongName": "main.js",
917 "componentQualifier": "FIL",
918 "componentUuid": "foo1234",
919 "creationDate": "2017-03-01T09:36:01+0100",
921 "fromHotspot": false,
922 "key": "AVsae-CQS-9G3txfbFN2",
924 "message": "Reduce the number of conditional operators (4) used in the expression",
925 "project": "myproject",
927 "projectName": "Foo",
928 "rule": "javascript:S1067",
930 "secondaryLocations": Array [],
933 "textRange": Object {
939 "transitions": Array [],
940 "type": "VULNERABILITY",
946 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
947 "coverageStatus": "covered",
948 "coveredConditions": 2,
952 "scmAuthor": "simon.brandhof@sonarsource.com",
953 "scmDate": "2018-12-11T10:48:39+0100",
954 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
957 onIssueChange={[MockFunction]}
958 onIssuePopupToggle={[MockFunction]}
959 onIssueSelect={[MockFunction]}
960 onLocationSelect={[MockFunction]}
961 onSymbolClick={[MockFunction]}
962 scroll={[MockFunction]}
963 secondaryIssueLocations={Array []}