1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/constructors.json

1077 lines
36 KiB
JSON

[{
"testCaseDescription": "go-constructors-insert-test",
"expectedResult": {
"changes": {},
"errors": {
"constructors.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
17
]
}
},
"summary": "Added the 'make(chan<- int)' at line 1, column 1 - line 1, column 17"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
30
]
}
},
"summary": "Added the 'make(chan<- int, (new - old))' at line 2, column 1 - line 2, column 30"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
24
]
}
},
"summary": "Added the 'make(chan<- int, 5, 10)' at line 3, column 1 - line 3, column 24"
},
{
"span": {
"insert": {
"start": [
4,
2
],
"end": [
4,
24
]
}
},
"summary": "Added the 'new(map[string]string)' at line 4, column 2 - line 4, column 24"
}
]
}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index e69de29..51ab923 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -0,0 +1,4 @@",
"+make(chan<- int)",
"+make(chan<- int, (new - old))",
"+make(chan<- int, 5, 10)",
"+ new(map[string]string)"
],
"gitDir": "test/corpus/repos/go",
"shas": "966bee07072f36b83494af4ac7d3c83673e1f3f8..c7bdb07eb72049fd69abdcc143aec04d926f21ce"
}
,{
"testCaseDescription": "go-constructors-replacement-insert-test",
"expectedResult": {
"changes": {},
"errors": {
"constructors.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Added the 'make(chan<- string)' at line 1, column 1 - line 1, column 20"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
33
]
}
},
"summary": "Added the 'make(chan<- string, (new - old))' at line 2, column 1 - line 2, column 33"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
27
]
}
},
"summary": "Added the 'make(chan<- string, 7, 11)' at line 3, column 1 - line 3, column 27"
},
{
"span": {
"insert": {
"start": [
4,
2
],
"end": [
4,
18
]
}
},
"summary": "Added the 'new(map[int]int)' at line 4, column 2 - line 4, column 18"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
17
]
}
},
"summary": "Added the 'make(chan<- int)' at line 5, column 1 - line 5, column 17"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
30
]
}
},
"summary": "Added the 'make(chan<- int, (new - old))' at line 6, column 1 - line 6, column 30"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
24
]
}
},
"summary": "Added the 'make(chan<- int, 5, 10)' at line 7, column 1 - line 7, column 24"
},
{
"span": {
"insert": {
"start": [
8,
2
],
"end": [
8,
24
]
}
},
"summary": "Added the 'new(map[string]string)' at line 8, column 2 - line 8, column 24"
}
]
}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index 51ab923..76b35ec 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -1,3 +1,11 @@",
"+make(chan<- string)",
"+make(chan<- string, (new - old))",
"+make(chan<- string, 7, 11)",
"+ new(map[int]int)",
"+make(chan<- int)",
"+make(chan<- int, (new - old))",
"+make(chan<- int, 5, 10)",
"+ new(map[string]string)",
" make(chan<- int)",
" make(chan<- int, (new - old))",
" make(chan<- int, 5, 10)"
],
"gitDir": "test/corpus/repos/go",
"shas": "c7bdb07eb72049fd69abdcc143aec04d926f21ce..68ef8db50537542788d5ddc486ef718468df5d09"
}
,{
"testCaseDescription": "go-constructors-delete-insert-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"replace": [
{
"start": [
1,
13
],
"end": [
1,
19
]
},
{
"start": [
1,
13
],
"end": [
1,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
},
{
"span": {
"replace": [
{
"start": [
2,
13
],
"end": [
2,
19
]
},
{
"start": [
2,
13
],
"end": [
2,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
13
],
"end": [
3,
19
]
},
{
"start": [
3,
13
],
"end": [
3,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
21
],
"end": [
3,
22
]
},
{
"start": [
3,
18
],
"end": [
3,
19
]
}
]
},
"summary": "Replaced '7' with '5'"
},
{
"span": {
"replace": [
{
"start": [
3,
24
],
"end": [
3,
26
]
},
{
"start": [
3,
21
],
"end": [
3,
23
]
}
]
},
"summary": "Replaced '11' with '10'"
},
{
"span": {
"replace": [
{
"start": [
4,
10
],
"end": [
4,
13
]
},
{
"start": [
4,
10
],
"end": [
4,
16
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
14
],
"end": [
4,
17
]
},
{
"start": [
4,
17
],
"end": [
4,
23
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index 76b35ec..b8e9fef 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -1,7 +1,7 @@",
"-make(chan<- string)",
"-make(chan<- string, (new - old))",
"-make(chan<- string, 7, 11)",
"- new(map[int]int)",
"+make(chan<- int)",
"+make(chan<- int, (new - old))",
"+make(chan<- int, 5, 10)",
"+ new(map[string]string)",
" make(chan<- int)",
" make(chan<- int, (new - old))",
" make(chan<- int, 5, 10)"
],
"gitDir": "test/corpus/repos/go",
"shas": "68ef8db50537542788d5ddc486ef718468df5d09..20ffdb2472a383a950316cc2db621c93f16d4cb9"
}
,{
"testCaseDescription": "go-constructors-replacement-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"replace": [
{
"start": [
1,
13
],
"end": [
1,
16
]
},
{
"start": [
1,
13
],
"end": [
1,
19
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
},
{
"span": {
"replace": [
{
"start": [
2,
13
],
"end": [
2,
16
]
},
{
"start": [
2,
13
],
"end": [
2,
19
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
13
],
"end": [
3,
16
]
},
{
"start": [
3,
13
],
"end": [
3,
19
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
18
],
"end": [
3,
19
]
},
{
"start": [
3,
21
],
"end": [
3,
22
]
}
]
},
"summary": "Replaced '5' with '7'"
},
{
"span": {
"replace": [
{
"start": [
3,
21
],
"end": [
3,
23
]
},
{
"start": [
3,
24
],
"end": [
3,
26
]
}
]
},
"summary": "Replaced '10' with '11'"
},
{
"span": {
"replace": [
{
"start": [
4,
10
],
"end": [
4,
16
]
},
{
"start": [
4,
10
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
17
],
"end": [
4,
23
]
},
{
"start": [
4,
14
],
"end": [
4,
17
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index b8e9fef..76b35ec 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -1,7 +1,7 @@",
"-make(chan<- int)",
"-make(chan<- int, (new - old))",
"-make(chan<- int, 5, 10)",
"- new(map[string]string)",
"+make(chan<- string)",
"+make(chan<- string, (new - old))",
"+make(chan<- string, 7, 11)",
"+ new(map[int]int)",
" make(chan<- int)",
" make(chan<- int, (new - old))",
" make(chan<- int, 5, 10)"
],
"gitDir": "test/corpus/repos/go",
"shas": "20ffdb2472a383a950316cc2db621c93f16d4cb9..6e664ada44333ddd3d6d3ecb7763941c96ad59d7"
}
,{
"testCaseDescription": "go-constructors-delete-replacement-test",
"expectedResult": {
"changes": {},
"errors": {
"constructors.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'make(chan<- string)' at line 1, column 1 - line 1, column 20"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
33
]
}
},
"summary": "Deleted the 'make(chan<- string, (new - old))' at line 2, column 1 - line 2, column 33"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
27
]
}
},
"summary": "Deleted the 'make(chan<- string, 7, 11)' at line 3, column 1 - line 3, column 27"
},
{
"span": {
"delete": {
"start": [
4,
2
],
"end": [
4,
18
]
}
},
"summary": "Deleted the 'new(map[int]int)' at line 4, column 2 - line 4, column 18"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
17
]
}
},
"summary": "Deleted the 'make(chan<- int)' at line 5, column 1 - line 5, column 17"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
30
]
}
},
"summary": "Deleted the 'make(chan<- int, (new - old))' at line 6, column 1 - line 6, column 30"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
24
]
}
},
"summary": "Deleted the 'make(chan<- int, 5, 10)' at line 7, column 1 - line 7, column 24"
},
{
"span": {
"delete": {
"start": [
8,
2
],
"end": [
8,
24
]
}
},
"summary": "Deleted the 'new(map[string]string)' at line 8, column 2 - line 8, column 24"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
20
]
}
},
"summary": "Added the 'make(chan<- string)' at line 5, column 1 - line 5, column 20"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
33
]
}
},
"summary": "Added the 'make(chan<- string, (new - old))' at line 6, column 1 - line 6, column 33"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
27
]
}
},
"summary": "Added the 'make(chan<- string, 7, 11)' at line 7, column 1 - line 7, column 27"
},
{
"span": {
"insert": {
"start": [
8,
2
],
"end": [
8,
18
]
}
},
"summary": "Added the 'new(map[int]int)' at line 8, column 2 - line 8, column 18"
}
]
}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index 76b35ec..12f44d5 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -1,12 +1,8 @@",
"-make(chan<- string)",
"-make(chan<- string, (new - old))",
"-make(chan<- string, 7, 11)",
"- new(map[int]int)",
"-make(chan<- int)",
"-make(chan<- int, (new - old))",
"-make(chan<- int, 5, 10)",
"- new(map[string]string)",
" make(chan<- int)",
" make(chan<- int, (new - old))",
" make(chan<- int, 5, 10)",
" new(map[string]string)",
"+make(chan<- string)",
"+make(chan<- string, (new - old))",
"+make(chan<- string, 7, 11)",
"+ new(map[int]int)"
],
"gitDir": "test/corpus/repos/go",
"shas": "6e664ada44333ddd3d6d3ecb7763941c96ad59d7..f09151cf0ca950addb02dcd5eb4a5c3175c8d948"
}
,{
"testCaseDescription": "go-constructors-delete-test",
"expectedResult": {
"changes": {},
"errors": {
"constructors.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
17
]
}
},
"summary": "Deleted the 'make(chan<- int)' at line 1, column 1 - line 1, column 17"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
30
]
}
},
"summary": "Deleted the 'make(chan<- int, (new - old))' at line 2, column 1 - line 2, column 30"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
24
]
}
},
"summary": "Deleted the 'make(chan<- int, 5, 10)' at line 3, column 1 - line 3, column 24"
},
{
"span": {
"delete": {
"start": [
4,
2
],
"end": [
4,
24
]
}
},
"summary": "Deleted the 'new(map[string]string)' at line 4, column 2 - line 4, column 24"
}
]
}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index 12f44d5..0720537 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -1,7 +1,3 @@",
"-make(chan<- int)",
"-make(chan<- int, (new - old))",
"-make(chan<- int, 5, 10)",
"- new(map[string]string)",
" make(chan<- string)",
" make(chan<- string, (new - old))",
" make(chan<- string, 7, 11)"
],
"gitDir": "test/corpus/repos/go",
"shas": "f09151cf0ca950addb02dcd5eb4a5c3175c8d948..97793eb040912a5c749583ac0be44dec6763e577"
}
,{
"testCaseDescription": "go-constructors-delete-rest-test",
"expectedResult": {
"changes": {},
"errors": {
"constructors.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'make(chan<- string)' at line 1, column 1 - line 1, column 20"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
33
]
}
},
"summary": "Deleted the 'make(chan<- string, (new - old))' at line 2, column 1 - line 2, column 33"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
27
]
}
},
"summary": "Deleted the 'make(chan<- string, 7, 11)' at line 3, column 1 - line 3, column 27"
},
{
"span": {
"delete": {
"start": [
4,
2
],
"end": [
4,
18
]
}
},
"summary": "Deleted the 'new(map[int]int)' at line 4, column 2 - line 4, column 18"
}
]
}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index 0720537..e69de29 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -1,4 +0,0 @@",
"-make(chan<- string)",
"-make(chan<- string, (new - old))",
"-make(chan<- string, 7, 11)",
"- new(map[int]int)"
],
"gitDir": "test/corpus/repos/go",
"shas": "97793eb040912a5c749583ac0be44dec6763e577..b8520b47d7e23a8b805613ba5e28d123748a7e86"
}]