You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/analysis/conflictingmarkers/testdata/src/a/a.go
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -17,31 +17,31 @@ type TestStruct struct {
17
17
// Conflict: marker1 vs marker3 (both with values)
18
18
// +marker1:=value1
19
19
// +marker3:=value2
20
-
ConflictWithValuesFieldstring`json:"conflictWithValuesField"`// want "field ConflictWithValuesField has conflicting markers: test_conflict: \\{\\[marker1\\], \\[marker3\\]\\}. Test markers conflict with each other"
20
+
ConflictWithValuesFieldstring`json:"conflictWithValuesField"`// want "field TestStruct.ConflictWithValuesField has conflicting markers: test_conflict: \\{\\[marker1\\], \\[marker3\\]\\}. Test markers conflict with each other"
21
21
22
22
// Conflict: marker1 vs marker3 (mixed with and without values)
23
23
// +marker1
24
24
// +marker3:=someValue
25
-
ConflictMixedFieldstring`json:"conflictMixedField"`// want "field ConflictMixedField has conflicting markers: test_conflict: \\{\\[marker1\\], \\[marker3\\]\\}. Test markers conflict with each other"
25
+
ConflictMixedFieldstring`json:"conflictMixedField"`// want "field TestStruct.ConflictMixedField has conflicting markers: test_conflict: \\{\\[marker1\\], \\[marker3\\]\\}. Test markers conflict with each other"
26
26
27
27
// Multiple conflicts with multiple markers in each set:
28
28
// +marker1
29
29
// +marker2
30
30
// +marker3
31
31
// +marker4
32
-
MultipleConflictsFieldstring`json:"multipleConflictsField"`// want "field MultipleConflictsField has conflicting markers: test_conflict: \\{\\[marker1 marker2\\], \\[marker3 marker4\\]\\}. Test markers conflict with each other"
32
+
MultipleConflictsFieldstring`json:"multipleConflictsField"`// want "field TestStruct.MultipleConflictsField has conflicting markers: test_conflict: \\{\\[marker1 marker2\\], \\[marker3 marker4\\]\\}. Test markers conflict with each other"
33
33
34
34
// Three-way conflict: marker5 vs marker7 vs marker9
35
35
// +marker5
36
36
// +marker7
37
37
// +marker9
38
-
ThreeWayConflictFieldstring`json:"threeWayConflictField"`// want "field ThreeWayConflictField has conflicting markers: three_way_conflict: \\{\\[marker5\\], \\[marker7\\], \\[marker9\\]\\}. Three-way conflict between marker sets"
38
+
ThreeWayConflictFieldstring`json:"threeWayConflictField"`// want "field TestStruct.ThreeWayConflictField has conflicting markers: three_way_conflict: \\{\\[marker5\\], \\[marker7\\], \\[marker9\\]\\}. Three-way conflict between marker sets"
39
39
40
40
// Three-way conflict with values
41
41
// +marker6:=value1
42
42
// +marker8:=value2
43
43
// +marker10:=value3
44
-
ThreeWayConflictWithValuesFieldstring`json:"threeWayConflictWithValuesField"`// want "field ThreeWayConflictWithValuesField has conflicting markers: three_way_conflict: \\{\\[marker6\\], \\[marker8\\], \\[marker10\\]\\}. Three-way conflict between marker sets"
44
+
ThreeWayConflictWithValuesFieldstring`json:"threeWayConflictWithValuesField"`// want "field TestStruct.ThreeWayConflictWithValuesField has conflicting markers: three_way_conflict: \\{\\[marker6\\], \\[marker8\\], \\[marker10\\]\\}. Three-way conflict between marker sets"
45
45
46
46
// Valid field with markers from same set in three-way conflict
47
47
// +marker5
@@ -55,10 +55,10 @@ type TestStruct struct {
55
55
// +marker8
56
56
// +marker9
57
57
// +marker10
58
-
ThreeWayMultipleMarkersFieldstring`json:"threeWayMultipleMarkersField"`// want "field ThreeWayMultipleMarkersField has conflicting markers: three_way_conflict: \\{\\[marker5 marker6\\], \\[marker7 marker8\\], \\[marker10 marker9\\]\\}. Three-way conflict between marker sets"
58
+
ThreeWayMultipleMarkersFieldstring`json:"threeWayMultipleMarkersField"`// want "field TestStruct.ThreeWayMultipleMarkersField has conflicting markers: three_way_conflict: \\{\\[marker5 marker6\\], \\[marker7 marker8\\], \\[marker10 marker9\\]\\}. Three-way conflict between marker sets"
59
59
60
60
// Three-way conflict with only subset of sets triggered (sets 1 and 2 only)
61
61
// +marker5
62
62
// +marker7
63
-
SubsetThreeWayConflictFieldstring`json:"subsetThreeWayConflictField"`// want "field SubsetThreeWayConflictField has conflicting markers: three_way_conflict: \\{\\[marker5\\], \\[marker7\\]\\}. Three-way conflict between marker sets"
63
+
SubsetThreeWayConflictFieldstring`json:"subsetThreeWayConflictField"`// want "field TestStruct.SubsetThreeWayConflictField has conflicting markers: three_way_conflict: \\{\\[marker5\\], \\[marker7\\]\\}. Three-way conflict between marker sets"
0 commit comments