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",
22 onPopupToggle={[MockFunction]}
28 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
29 "coverageStatus": "covered",
30 "coveredConditions": 2,
34 "scmAuthor": "simon.brandhof@sonarsource.com",
35 "scmDate": "2018-12-11T10:48:39+0100",
36 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
39 onPopupToggle={[MockFunction]}
43 className="source-meta source-line-issues"
48 "analysisDate": "2018-01-01",
50 "branch": "feature/foo/bar",
53 "title": "Foo Bar feature",
56 displayLocationMarkers={false}
57 issueLocations={Array []}
62 "component": "main.js",
63 "componentLongName": "main.js",
64 "componentQualifier": "FIL",
65 "componentUuid": "foo1234",
66 "creationDate": "2017-03-01T09:36:01+0100",
69 "key": "AVsae-CQS-9G3txfbFN2",
71 "message": "Reduce the number of conditional operators (4) used in the expression",
72 "organization": "myorg",
73 "project": "myproject",
76 "projectOrganization": "org",
77 "rule": "javascript:S1067",
79 "secondaryLocations": Array [],
88 "transitions": Array [],
93 "component": "main.js",
94 "componentLongName": "main.js",
95 "componentQualifier": "FIL",
96 "componentUuid": "foo1234",
97 "creationDate": "2017-03-01T09:36:01+0100",
100 "key": "AVsae-CQS-9G3txfbFN2",
102 "message": "Reduce the number of conditional operators (4) used in the expression",
103 "organization": "myorg",
104 "project": "myproject",
106 "projectName": "Foo",
107 "projectOrganization": "org",
108 "rule": "javascript:S1067",
110 "secondaryLocations": Array [],
113 "textRange": Object {
119 "transitions": Array [],
120 "type": "VULNERABILITY",
126 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
127 "coverageStatus": "covered",
128 "coveredConditions": 2,
132 "scmAuthor": "simon.brandhof@sonarsource.com",
133 "scmDate": "2018-12-11T10:48:39+0100",
134 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
137 onIssueChange={[MockFunction]}
138 onIssuePopupToggle={[MockFunction]}
139 onIssueSelect={[MockFunction]}
140 onLocationSelect={[MockFunction]}
141 onSymbolClick={[MockFunction]}
142 scroll={[MockFunction]}
143 secondaryIssueLocations={Array []}
149 exports[`should render correctly for last, new, and highlighted lines 1`] = `
151 className="source-line source-line-highlighted source-line-filtered source-line-last"
152 data-line-number={16}
157 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
158 "coverageStatus": "covered",
159 "coveredConditions": 2,
163 "scmAuthor": "simon.brandhof@sonarsource.com",
164 "scmDate": "2018-12-11T10:48:39+0100",
165 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
168 onPopupToggle={[MockFunction]}
174 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
175 "coverageStatus": "covered",
176 "coveredConditions": 2,
180 "scmAuthor": "simon.brandhof@sonarsource.com",
181 "scmDate": "2018-12-11T10:48:39+0100",
182 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
185 onPopupToggle={[MockFunction]}
189 className="source-meta source-line-issues"
194 "analysisDate": "2018-01-01",
196 "branch": "feature/foo/bar",
199 "title": "Foo Bar feature",
202 displayLocationMarkers={false}
203 issueLocations={Array []}
208 "component": "main.js",
209 "componentLongName": "main.js",
210 "componentQualifier": "FIL",
211 "componentUuid": "foo1234",
212 "creationDate": "2017-03-01T09:36:01+0100",
214 "fromHotspot": false,
215 "key": "AVsae-CQS-9G3txfbFN2",
217 "message": "Reduce the number of conditional operators (4) used in the expression",
218 "organization": "myorg",
219 "project": "myproject",
221 "projectName": "Foo",
222 "projectOrganization": "org",
223 "rule": "javascript:S1067",
225 "secondaryLocations": Array [],
228 "textRange": Object {
234 "transitions": Array [],
239 "component": "main.js",
240 "componentLongName": "main.js",
241 "componentQualifier": "FIL",
242 "componentUuid": "foo1234",
243 "creationDate": "2017-03-01T09:36:01+0100",
245 "fromHotspot": false,
246 "key": "AVsae-CQS-9G3txfbFN2",
248 "message": "Reduce the number of conditional operators (4) used in the expression",
249 "organization": "myorg",
250 "project": "myproject",
252 "projectName": "Foo",
253 "projectOrganization": "org",
254 "rule": "javascript:S1067",
256 "secondaryLocations": Array [],
259 "textRange": Object {
265 "transitions": Array [],
266 "type": "VULNERABILITY",
272 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
273 "coverageStatus": "covered",
274 "coveredConditions": 2,
278 "scmAuthor": "simon.brandhof@sonarsource.com",
279 "scmDate": "2018-12-11T10:48:39+0100",
280 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
283 onIssueChange={[MockFunction]}
284 onIssuePopupToggle={[MockFunction]}
285 onIssueSelect={[MockFunction]}
286 onLocationSelect={[MockFunction]}
287 onSymbolClick={[MockFunction]}
288 scroll={[MockFunction]}
289 secondaryIssueLocations={Array []}
295 exports[`should render correctly with coverage 1`] = `
297 className="source-line source-line-filtered"
298 data-line-number={16}
303 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
304 "coverageStatus": "covered",
305 "coveredConditions": 2,
309 "scmAuthor": "simon.brandhof@sonarsource.com",
310 "scmDate": "2018-12-11T10:48:39+0100",
311 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
314 onPopupToggle={[MockFunction]}
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 onPopupToggle={[MockFunction]}
335 className="source-meta source-line-issues"
340 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
341 "coverageStatus": "covered",
342 "coveredConditions": 2,
346 "scmAuthor": "simon.brandhof@sonarsource.com",
347 "scmDate": "2018-12-11T10:48:39+0100",
348 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
355 "analysisDate": "2018-01-01",
357 "branch": "feature/foo/bar",
360 "title": "Foo Bar feature",
363 displayLocationMarkers={false}
364 issueLocations={Array []}
369 "component": "main.js",
370 "componentLongName": "main.js",
371 "componentQualifier": "FIL",
372 "componentUuid": "foo1234",
373 "creationDate": "2017-03-01T09:36:01+0100",
375 "fromHotspot": false,
376 "key": "AVsae-CQS-9G3txfbFN2",
378 "message": "Reduce the number of conditional operators (4) used in the expression",
379 "organization": "myorg",
380 "project": "myproject",
382 "projectName": "Foo",
383 "projectOrganization": "org",
384 "rule": "javascript:S1067",
386 "secondaryLocations": Array [],
389 "textRange": Object {
395 "transitions": Array [],
400 "component": "main.js",
401 "componentLongName": "main.js",
402 "componentQualifier": "FIL",
403 "componentUuid": "foo1234",
404 "creationDate": "2017-03-01T09:36:01+0100",
406 "fromHotspot": false,
407 "key": "AVsae-CQS-9G3txfbFN2",
409 "message": "Reduce the number of conditional operators (4) used in the expression",
410 "organization": "myorg",
411 "project": "myproject",
413 "projectName": "Foo",
414 "projectOrganization": "org",
415 "rule": "javascript:S1067",
417 "secondaryLocations": Array [],
420 "textRange": Object {
426 "transitions": Array [],
427 "type": "VULNERABILITY",
433 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
434 "coverageStatus": "covered",
435 "coveredConditions": 2,
439 "scmAuthor": "simon.brandhof@sonarsource.com",
440 "scmDate": "2018-12-11T10:48:39+0100",
441 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
444 onIssueChange={[MockFunction]}
445 onIssuePopupToggle={[MockFunction]}
446 onIssueSelect={[MockFunction]}
447 onLocationSelect={[MockFunction]}
448 onSymbolClick={[MockFunction]}
449 scroll={[MockFunction]}
450 secondaryIssueLocations={Array []}
456 exports[`should render correctly with duplication information 1`] = `
458 className="source-line source-line-filtered"
459 data-line-number={16}
464 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
465 "coverageStatus": "covered",
466 "coveredConditions": 2,
470 "scmAuthor": "simon.brandhof@sonarsource.com",
471 "scmDate": "2018-12-11T10:48:39+0100",
472 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
475 onPopupToggle={[MockFunction]}
481 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
482 "coverageStatus": "covered",
483 "coveredConditions": 2,
487 "scmAuthor": "simon.brandhof@sonarsource.com",
488 "scmDate": "2018-12-11T10:48:39+0100",
489 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
492 onPopupToggle={[MockFunction]}
496 className="source-meta source-line-issues"
501 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
502 "coverageStatus": "covered",
503 "coveredConditions": 2,
507 "scmAuthor": "simon.brandhof@sonarsource.com",
508 "scmDate": "2018-12-11T10:48:39+0100",
509 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
512 onClick={[MockFunction]}
514 <LineDuplicationBlock
520 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
521 "coverageStatus": "covered",
522 "coveredConditions": 2,
526 "scmAuthor": "simon.brandhof@sonarsource.com",
527 "scmDate": "2018-12-11T10:48:39+0100",
528 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
531 onPopupToggle={[MockFunction]}
533 renderDuplicationPopup={[MockFunction]}
535 <LineDuplicationBlock
541 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
542 "coverageStatus": "covered",
543 "coveredConditions": 2,
547 "scmAuthor": "simon.brandhof@sonarsource.com",
548 "scmDate": "2018-12-11T10:48:39+0100",
549 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
552 onPopupToggle={[MockFunction]}
554 renderDuplicationPopup={[MockFunction]}
556 <LineDuplicationBlock
562 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
563 "coverageStatus": "covered",
564 "coveredConditions": 2,
568 "scmAuthor": "simon.brandhof@sonarsource.com",
569 "scmDate": "2018-12-11T10:48:39+0100",
570 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
573 onPopupToggle={[MockFunction]}
575 renderDuplicationPopup={[MockFunction]}
580 "analysisDate": "2018-01-01",
582 "branch": "feature/foo/bar",
585 "title": "Foo Bar feature",
588 displayLocationMarkers={false}
589 issueLocations={Array []}
594 "component": "main.js",
595 "componentLongName": "main.js",
596 "componentQualifier": "FIL",
597 "componentUuid": "foo1234",
598 "creationDate": "2017-03-01T09:36:01+0100",
600 "fromHotspot": false,
601 "key": "AVsae-CQS-9G3txfbFN2",
603 "message": "Reduce the number of conditional operators (4) used in the expression",
604 "organization": "myorg",
605 "project": "myproject",
607 "projectName": "Foo",
608 "projectOrganization": "org",
609 "rule": "javascript:S1067",
611 "secondaryLocations": Array [],
614 "textRange": Object {
620 "transitions": Array [],
625 "component": "main.js",
626 "componentLongName": "main.js",
627 "componentQualifier": "FIL",
628 "componentUuid": "foo1234",
629 "creationDate": "2017-03-01T09:36:01+0100",
631 "fromHotspot": false,
632 "key": "AVsae-CQS-9G3txfbFN2",
634 "message": "Reduce the number of conditional operators (4) used in the expression",
635 "organization": "myorg",
636 "project": "myproject",
638 "projectName": "Foo",
639 "projectOrganization": "org",
640 "rule": "javascript:S1067",
642 "secondaryLocations": Array [],
645 "textRange": Object {
651 "transitions": Array [],
652 "type": "VULNERABILITY",
658 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
659 "coverageStatus": "covered",
660 "coveredConditions": 2,
664 "scmAuthor": "simon.brandhof@sonarsource.com",
665 "scmDate": "2018-12-11T10:48:39+0100",
666 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
669 onIssueChange={[MockFunction]}
670 onIssuePopupToggle={[MockFunction]}
671 onIssueSelect={[MockFunction]}
672 onLocationSelect={[MockFunction]}
673 onSymbolClick={[MockFunction]}
674 scroll={[MockFunction]}
675 secondaryIssueLocations={Array []}
681 exports[`should render correctly with issues info 1`] = `
683 className="source-line source-line-filtered"
684 data-line-number={16}
689 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
690 "coverageStatus": "covered",
691 "coveredConditions": 2,
695 "scmAuthor": "simon.brandhof@sonarsource.com",
696 "scmDate": "2018-12-11T10:48:39+0100",
697 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
700 onPopupToggle={[MockFunction]}
706 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
707 "coverageStatus": "covered",
708 "coveredConditions": 2,
712 "scmAuthor": "simon.brandhof@sonarsource.com",
713 "scmDate": "2018-12-11T10:48:39+0100",
714 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
717 onPopupToggle={[MockFunction]}
725 "component": "main.js",
726 "componentLongName": "main.js",
727 "componentQualifier": "FIL",
728 "componentUuid": "foo1234",
729 "creationDate": "2017-03-01T09:36:01+0100",
731 "fromHotspot": false,
732 "key": "AVsae-CQS-9G3txfbFN2",
734 "message": "Reduce the number of conditional operators (4) used in the expression",
735 "organization": "myorg",
736 "project": "myproject",
738 "projectName": "Foo",
739 "projectOrganization": "org",
740 "rule": "javascript:S1067",
742 "secondaryLocations": Array [],
745 "textRange": Object {
751 "transitions": Array [],
756 "component": "main.js",
757 "componentLongName": "main.js",
758 "componentQualifier": "FIL",
759 "componentUuid": "foo1234",
760 "creationDate": "2017-03-01T09:36:01+0100",
762 "fromHotspot": false,
763 "key": "AVsae-CQS-9G3txfbFN2",
765 "message": "Reduce the number of conditional operators (4) used in the expression",
766 "organization": "myorg",
767 "project": "myproject",
769 "projectName": "Foo",
770 "projectOrganization": "org",
771 "rule": "javascript:S1067",
773 "secondaryLocations": Array [],
776 "textRange": Object {
782 "transitions": Array [],
783 "type": "VULNERABILITY",
789 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
790 "coverageStatus": "covered",
791 "coveredConditions": 2,
795 "scmAuthor": "simon.brandhof@sonarsource.com",
796 "scmDate": "2018-12-11T10:48:39+0100",
797 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
805 "analysisDate": "2018-01-01",
807 "branch": "feature/foo/bar",
810 "title": "Foo Bar feature",
813 displayLocationMarkers={false}
814 issueLocations={Array []}
819 "component": "main.js",
820 "componentLongName": "main.js",
821 "componentQualifier": "FIL",
822 "componentUuid": "foo1234",
823 "creationDate": "2017-03-01T09:36:01+0100",
825 "fromHotspot": false,
826 "key": "AVsae-CQS-9G3txfbFN2",
828 "message": "Reduce the number of conditional operators (4) used in the expression",
829 "organization": "myorg",
830 "project": "myproject",
832 "projectName": "Foo",
833 "projectOrganization": "org",
834 "rule": "javascript:S1067",
836 "secondaryLocations": Array [],
839 "textRange": Object {
845 "transitions": Array [],
850 "component": "main.js",
851 "componentLongName": "main.js",
852 "componentQualifier": "FIL",
853 "componentUuid": "foo1234",
854 "creationDate": "2017-03-01T09:36:01+0100",
856 "fromHotspot": false,
857 "key": "AVsae-CQS-9G3txfbFN2",
859 "message": "Reduce the number of conditional operators (4) used in the expression",
860 "organization": "myorg",
861 "project": "myproject",
863 "projectName": "Foo",
864 "projectOrganization": "org",
865 "rule": "javascript:S1067",
867 "secondaryLocations": Array [],
870 "textRange": Object {
876 "transitions": Array [],
877 "type": "VULNERABILITY",
883 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
884 "coverageStatus": "covered",
885 "coveredConditions": 2,
889 "scmAuthor": "simon.brandhof@sonarsource.com",
890 "scmDate": "2018-12-11T10:48:39+0100",
891 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
894 onIssueChange={[MockFunction]}
895 onIssuePopupToggle={[MockFunction]}
896 onIssueSelect={[MockFunction]}
897 onLocationSelect={[MockFunction]}
898 onSymbolClick={[MockFunction]}
899 scroll={[MockFunction]}
900 secondaryIssueLocations={Array []}
906 exports[`should render correctly: no SCM 1`] = `
908 className="source-line source-line-filtered"
909 data-line-number={16}
914 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
915 "coverageStatus": "covered",
916 "coveredConditions": 2,
920 "scmAuthor": "simon.brandhof@sonarsource.com",
921 "scmDate": "2018-12-11T10:48:39+0100",
922 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
925 onPopupToggle={[MockFunction]}
929 className="source-meta source-line-issues"
934 "analysisDate": "2018-01-01",
936 "branch": "feature/foo/bar",
939 "title": "Foo Bar feature",
942 displayLocationMarkers={false}
943 issueLocations={Array []}
948 "component": "main.js",
949 "componentLongName": "main.js",
950 "componentQualifier": "FIL",
951 "componentUuid": "foo1234",
952 "creationDate": "2017-03-01T09:36:01+0100",
954 "fromHotspot": false,
955 "key": "AVsae-CQS-9G3txfbFN2",
957 "message": "Reduce the number of conditional operators (4) used in the expression",
958 "organization": "myorg",
959 "project": "myproject",
961 "projectName": "Foo",
962 "projectOrganization": "org",
963 "rule": "javascript:S1067",
965 "secondaryLocations": Array [],
968 "textRange": Object {
974 "transitions": Array [],
979 "component": "main.js",
980 "componentLongName": "main.js",
981 "componentQualifier": "FIL",
982 "componentUuid": "foo1234",
983 "creationDate": "2017-03-01T09:36:01+0100",
985 "fromHotspot": false,
986 "key": "AVsae-CQS-9G3txfbFN2",
988 "message": "Reduce the number of conditional operators (4) used in the expression",
989 "organization": "myorg",
990 "project": "myproject",
992 "projectName": "Foo",
993 "projectOrganization": "org",
994 "rule": "javascript:S1067",
996 "secondaryLocations": Array [],
999 "textRange": Object {
1005 "transitions": Array [],
1006 "type": "VULNERABILITY",
1012 "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
1013 "coverageStatus": "covered",
1014 "coveredConditions": 2,
1015 "duplicated": false,
1018 "scmAuthor": "simon.brandhof@sonarsource.com",
1019 "scmDate": "2018-12-11T10:48:39+0100",
1020 "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
1023 onIssueChange={[MockFunction]}
1024 onIssuePopupToggle={[MockFunction]}
1025 onIssueSelect={[MockFunction]}
1026 onLocationSelect={[MockFunction]}
1027 onSymbolClick={[MockFunction]}
1028 scroll={[MockFunction]}
1029 secondaryIssueLocations={Array []}