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",
335 "analysisDate": "2018-01-01",
337 "branch": "feature/foo/bar",
340 "title": "Foo Bar feature",
343 displayLocationMarkers={false}
344 issueLocations={Array []}
349 "component": "main.js",
350 "componentLongName": "main.js",
351 "componentQualifier": "FIL",
352 "componentUuid": "foo1234",
353 "creationDate": "2017-03-01T09:36:01+0100",
355 "fromHotspot": false,
356 "key": "AVsae-CQS-9G3txfbFN2",
358 "message": "Reduce the number of conditional operators (4) used in the expression",
359 "project": "myproject",
361 "projectName": "Foo",
362 "rule": "javascript:S1067",
364 "secondaryLocations": Array [],
367 "textRange": Object {
373 "transitions": Array [],
378 "component": "main.js",
379 "componentLongName": "main.js",
380 "componentQualifier": "FIL",
381 "componentUuid": "foo1234",
382 "creationDate": "2017-03-01T09:36:01+0100",
384 "fromHotspot": false,
385 "key": "AVsae-CQS-9G3txfbFN2",
387 "message": "Reduce the number of conditional operators (4) used in the expression",
388 "project": "myproject",
390 "projectName": "Foo",
391 "rule": "javascript:S1067",
393 "secondaryLocations": Array [],
396 "textRange": Object {
402 "transitions": Array [],
403 "type": "VULNERABILITY",
409 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
410 "coverageStatus": "covered",
411 "coveredConditions": 2,
415 "scmAuthor": "simon.brandhof@sonarsource.com",
416 "scmDate": "2018-12-11T10:48:39+0100",
417 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
420 onIssueChange={[MockFunction]}
421 onIssuePopupToggle={[MockFunction]}
422 onIssueSelect={[MockFunction]}
423 onLocationSelect={[MockFunction]}
424 onSymbolClick={[MockFunction]}
425 scroll={[MockFunction]}
426 secondaryIssueLocations={Array []}
432 exports[`should render correctly with duplication information 1`] = `
434 className="source-line source-line-filtered"
435 data-line-number={16}
440 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
441 "coverageStatus": "covered",
442 "coveredConditions": 2,
446 "scmAuthor": "simon.brandhof@sonarsource.com",
447 "scmDate": "2018-12-11T10:48:39+0100",
448 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
455 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
456 "coverageStatus": "covered",
457 "coveredConditions": 2,
461 "scmAuthor": "simon.brandhof@sonarsource.com",
462 "scmDate": "2018-12-11T10:48:39+0100",
463 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
468 className="source-meta source-line-issues"
470 <Memo(LineDuplicationBlock)
477 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
478 "coverageStatus": "covered",
479 "coveredConditions": 2,
483 "scmAuthor": "simon.brandhof@sonarsource.com",
484 "scmDate": "2018-12-11T10:48:39+0100",
485 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
488 onClick={[MockFunction]}
489 renderDuplicationPopup={[MockFunction]}
491 <Memo(LineDuplicationBlock)
498 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
499 "coverageStatus": "covered",
500 "coveredConditions": 2,
504 "scmAuthor": "simon.brandhof@sonarsource.com",
505 "scmDate": "2018-12-11T10:48:39+0100",
506 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
509 renderDuplicationPopup={[MockFunction]}
511 <Memo(LineDuplicationBlock)
518 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
519 "coverageStatus": "covered",
520 "coveredConditions": 2,
524 "scmAuthor": "simon.brandhof@sonarsource.com",
525 "scmDate": "2018-12-11T10:48:39+0100",
526 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
529 renderDuplicationPopup={[MockFunction]}
534 "analysisDate": "2018-01-01",
536 "branch": "feature/foo/bar",
539 "title": "Foo Bar feature",
542 displayLocationMarkers={false}
543 issueLocations={Array []}
548 "component": "main.js",
549 "componentLongName": "main.js",
550 "componentQualifier": "FIL",
551 "componentUuid": "foo1234",
552 "creationDate": "2017-03-01T09:36:01+0100",
554 "fromHotspot": false,
555 "key": "AVsae-CQS-9G3txfbFN2",
557 "message": "Reduce the number of conditional operators (4) used in the expression",
558 "project": "myproject",
560 "projectName": "Foo",
561 "rule": "javascript:S1067",
563 "secondaryLocations": Array [],
566 "textRange": Object {
572 "transitions": Array [],
577 "component": "main.js",
578 "componentLongName": "main.js",
579 "componentQualifier": "FIL",
580 "componentUuid": "foo1234",
581 "creationDate": "2017-03-01T09:36:01+0100",
583 "fromHotspot": false,
584 "key": "AVsae-CQS-9G3txfbFN2",
586 "message": "Reduce the number of conditional operators (4) used in the expression",
587 "project": "myproject",
589 "projectName": "Foo",
590 "rule": "javascript:S1067",
592 "secondaryLocations": Array [],
595 "textRange": Object {
601 "transitions": Array [],
602 "type": "VULNERABILITY",
608 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
609 "coverageStatus": "covered",
610 "coveredConditions": 2,
614 "scmAuthor": "simon.brandhof@sonarsource.com",
615 "scmDate": "2018-12-11T10:48:39+0100",
616 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
619 onIssueChange={[MockFunction]}
620 onIssuePopupToggle={[MockFunction]}
621 onIssueSelect={[MockFunction]}
622 onLocationSelect={[MockFunction]}
623 onSymbolClick={[MockFunction]}
624 scroll={[MockFunction]}
625 secondaryIssueLocations={Array []}
631 exports[`should render correctly with issues info 1`] = `
633 className="source-line source-line-filtered"
634 data-line-number={16}
639 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
640 "coverageStatus": "covered",
641 "coveredConditions": 2,
645 "scmAuthor": "simon.brandhof@sonarsource.com",
646 "scmDate": "2018-12-11T10:48:39+0100",
647 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
654 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
655 "coverageStatus": "covered",
656 "coveredConditions": 2,
660 "scmAuthor": "simon.brandhof@sonarsource.com",
661 "scmDate": "2018-12-11T10:48:39+0100",
662 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
666 <Memo(LineIssuesIndicator)
671 "component": "main.js",
672 "componentLongName": "main.js",
673 "componentQualifier": "FIL",
674 "componentUuid": "foo1234",
675 "creationDate": "2017-03-01T09:36:01+0100",
677 "fromHotspot": false,
678 "key": "AVsae-CQS-9G3txfbFN2",
680 "message": "Reduce the number of conditional operators (4) used in the expression",
681 "project": "myproject",
683 "projectName": "Foo",
684 "rule": "javascript:S1067",
686 "secondaryLocations": Array [],
689 "textRange": Object {
695 "transitions": Array [],
700 "component": "main.js",
701 "componentLongName": "main.js",
702 "componentQualifier": "FIL",
703 "componentUuid": "foo1234",
704 "creationDate": "2017-03-01T09:36:01+0100",
706 "fromHotspot": false,
707 "key": "AVsae-CQS-9G3txfbFN2",
709 "message": "Reduce the number of conditional operators (4) used in the expression",
710 "project": "myproject",
712 "projectName": "Foo",
713 "rule": "javascript:S1067",
715 "secondaryLocations": Array [],
718 "textRange": Object {
724 "transitions": Array [],
725 "type": "VULNERABILITY",
732 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
733 "coverageStatus": "covered",
734 "coveredConditions": 2,
738 "scmAuthor": "simon.brandhof@sonarsource.com",
739 "scmDate": "2018-12-11T10:48:39+0100",
740 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
748 "analysisDate": "2018-01-01",
750 "branch": "feature/foo/bar",
753 "title": "Foo Bar feature",
756 displayLocationMarkers={false}
757 issueLocations={Array []}
762 "component": "main.js",
763 "componentLongName": "main.js",
764 "componentQualifier": "FIL",
765 "componentUuid": "foo1234",
766 "creationDate": "2017-03-01T09:36:01+0100",
768 "fromHotspot": false,
769 "key": "AVsae-CQS-9G3txfbFN2",
771 "message": "Reduce the number of conditional operators (4) used in the expression",
772 "project": "myproject",
774 "projectName": "Foo",
775 "rule": "javascript:S1067",
777 "secondaryLocations": Array [],
780 "textRange": Object {
786 "transitions": Array [],
791 "component": "main.js",
792 "componentLongName": "main.js",
793 "componentQualifier": "FIL",
794 "componentUuid": "foo1234",
795 "creationDate": "2017-03-01T09:36:01+0100",
797 "fromHotspot": false,
798 "key": "AVsae-CQS-9G3txfbFN2",
800 "message": "Reduce the number of conditional operators (4) used in the expression",
801 "project": "myproject",
803 "projectName": "Foo",
804 "rule": "javascript:S1067",
806 "secondaryLocations": Array [],
809 "textRange": Object {
815 "transitions": Array [],
816 "type": "VULNERABILITY",
822 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
823 "coverageStatus": "covered",
824 "coveredConditions": 2,
828 "scmAuthor": "simon.brandhof@sonarsource.com",
829 "scmDate": "2018-12-11T10:48:39+0100",
830 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
833 onIssueChange={[MockFunction]}
834 onIssuePopupToggle={[MockFunction]}
835 onIssueSelect={[MockFunction]}
836 onLocationSelect={[MockFunction]}
837 onSymbolClick={[MockFunction]}
838 scroll={[MockFunction]}
839 secondaryIssueLocations={Array []}
845 exports[`should render correctly: no SCM 1`] = `
847 className="source-line source-line-filtered"
848 data-line-number={16}
853 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
854 "coverageStatus": "covered",
855 "coveredConditions": 2,
859 "scmAuthor": "simon.brandhof@sonarsource.com",
860 "scmDate": "2018-12-11T10:48:39+0100",
861 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
866 className="source-meta source-line-issues"
871 "analysisDate": "2018-01-01",
873 "branch": "feature/foo/bar",
876 "title": "Foo Bar feature",
879 displayLocationMarkers={false}
880 issueLocations={Array []}
885 "component": "main.js",
886 "componentLongName": "main.js",
887 "componentQualifier": "FIL",
888 "componentUuid": "foo1234",
889 "creationDate": "2017-03-01T09:36:01+0100",
891 "fromHotspot": false,
892 "key": "AVsae-CQS-9G3txfbFN2",
894 "message": "Reduce the number of conditional operators (4) used in the expression",
895 "project": "myproject",
897 "projectName": "Foo",
898 "rule": "javascript:S1067",
900 "secondaryLocations": Array [],
903 "textRange": Object {
909 "transitions": Array [],
914 "component": "main.js",
915 "componentLongName": "main.js",
916 "componentQualifier": "FIL",
917 "componentUuid": "foo1234",
918 "creationDate": "2017-03-01T09:36:01+0100",
920 "fromHotspot": false,
921 "key": "AVsae-CQS-9G3txfbFN2",
923 "message": "Reduce the number of conditional operators (4) used in the expression",
924 "project": "myproject",
926 "projectName": "Foo",
927 "rule": "javascript:S1067",
929 "secondaryLocations": Array [],
932 "textRange": Object {
938 "transitions": Array [],
939 "type": "VULNERABILITY",
945 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
946 "coverageStatus": "covered",
947 "coveredConditions": 2,
951 "scmAuthor": "simon.brandhof@sonarsource.com",
952 "scmDate": "2018-12-11T10:48:39+0100",
953 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
956 onIssueChange={[MockFunction]}
957 onIssuePopupToggle={[MockFunction]}
958 onIssueSelect={[MockFunction]}
959 onLocationSelect={[MockFunction]}
960 onSymbolClick={[MockFunction]}
961 scroll={[MockFunction]}
962 secondaryIssueLocations={Array []}