1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/go/method-declarations.json

401 lines
13 KiB
JSON
Raw Normal View History

2016-11-02 17:50:05 +03:00
[{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-method-declarations-setup-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-12-02 00:03:52 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
6,
1
2016-11-02 17:50:05 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"method-declarations.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"index e69de29..7905807 100644",
2016-11-11 00:19:53 +03:00
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-02 00:07:40 +03:00
"shas": "f7314a39c28dfa8d01e76f5cca826d40971d91e3..2c2ed727360a09291c683f58205e9cef4e315217"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-method-declarations-insert-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
4,
41
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
45
2016-11-02 17:50:05 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'bool' identifier in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
4,
46
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
48
2016-11-02 17:50:05 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the '{}' literal_value in the main function of the 'main' module"
}
]
},
"errors": {
"method-declarations.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
4,
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
40
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'func (self Person) Equals(other Person)' at line 4, column 1 - line 4, column 40 in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
2016-12-02 00:03:52 +03:00
}
2016-11-02 17:50:05 +03:00
},
"filePaths": [
"method-declarations.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"index 7905807..5917528 100644",
2016-11-11 00:19:53 +03:00
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
2016-11-11 00:19:53 +03:00
"+func (self Person) Equals(other Person) bool {}",
2016-12-02 00:03:52 +03:00
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-02 00:07:40 +03:00
"shas": "2c2ed727360a09291c683f58205e9cef4e315217..86f37c126d371b10a20f6f1dd37bf5bb55e9aad6"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-method-declarations-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
12
],
"end": [
2016-12-02 00:03:52 +03:00
4,
18
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
12
],
"end": [
2016-12-02 00:03:52 +03:00
4,
15
2016-11-02 17:50:05 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'Person' identifier with the 'Num' identifier in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
33
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
39
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
4,
30
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
33
2016-11-02 17:50:05 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'Person' identifier with the 'Num' identifier in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"method-declarations.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"index 5917528..57f6bd3 100644",
2016-11-11 00:19:53 +03:00
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-func (self Person) Equals(other Person) bool {}",
"+func (self Num) Equals(other Num) bool {}",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-02 00:07:40 +03:00
"shas": "86f37c126d371b10a20f6f1dd37bf5bb55e9aad6..3587fe32cd362e467e00b9663ba376ebe3d47d21"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-method-declarations-delete-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
12
],
"end": [
2016-12-02 00:03:52 +03:00
4,
15
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
12
],
"end": [
2016-12-02 00:03:52 +03:00
4,
18
2016-11-02 17:50:05 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'Num' identifier with the 'Person' identifier in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
30
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
33
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
4,
33
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
39
2016-11-02 17:50:05 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'Num' identifier with the 'Person' identifier in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"method-declarations.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"index 57f6bd3..5917528 100644",
2016-11-11 00:19:53 +03:00
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-func (self Num) Equals(other Num) bool {}",
"+func (self Person) Equals(other Person) bool {}",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-02 00:07:40 +03:00
"shas": "3587fe32cd362e467e00b9663ba376ebe3d47d21..b0c325d1be5d7ec74cd18b46aadb32f19e9aea00"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-method-declarations-delete-insert-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"delete": {
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
41
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
45
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'bool' identifier in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"delete": {
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
46
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
48
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the '{}' literal_value in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
2016-12-02 00:03:52 +03:00
"errors": {
2016-11-02 17:50:05 +03:00
"method-declarations.go": [
{
"span": {
"delete": {
"start": [
2016-12-02 00:03:52 +03:00
4,
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
40
2016-11-02 17:50:05 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'func (self Person) Equals(other Person)' at line 4, column 1 - line 4, column 40 in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
2016-12-02 00:03:52 +03:00
}
2016-11-02 17:50:05 +03:00
},
"filePaths": [
"method-declarations.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"index 5917528..7905807 100644",
2016-11-11 00:19:53 +03:00
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
"-func (self Person) Equals(other Person) bool {}",
2016-12-02 00:03:52 +03:00
"+",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-02 00:07:40 +03:00
"shas": "b0c325d1be5d7ec74cd18b46aadb32f19e9aea00..be583818264bcee80d0715c43ae582b94e41db57"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-method-declarations-teardown-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-12-02 00:03:52 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
6,
1
2016-11-02 17:50:05 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"method-declarations.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"index 7905807..e69de29 100644",
2016-11-11 00:19:53 +03:00
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-02 00:07:40 +03:00
"shas": "be583818264bcee80d0715c43ae582b94e41db57..67a6dc5e7422cb3fedf2a2379ebff5b53592c751"
2016-11-02 17:50:05 +03:00
}]