1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/go/unary-expressions.json

371 lines
11 KiB
JSON
Raw Normal View History

2016-11-02 17:50:05 +03:00
[{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-unary-expressions-setup-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
2016-11-11 00:19:53 +03:00
"insert": {
"start": [
1,
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
1
2016-11-11 00:19:53 +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": [
"unary-expressions.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
2016-12-02 00:03:52 +03:00
"index e69de29..7905807 100644",
2016-11-11 00:19:53 +03:00
"--- a/unary-expressions.go",
"+++ b/unary-expressions.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",
2017-01-11 00:21:35 +03:00
"shas": "950d70a1c5167a670547a732df9ae49b0fa425e6..f0462f56de40543828c76e5600d6c4a25286e831"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-unary-expressions-insert-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
4
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
5
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'a' 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
5,
2
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 17:50:05 +03:00
7
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'foo()' function call in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
2016-12-02 00:03:52 +03:00
"index 7905807..bdf9ccc 100644",
2016-11-11 00:19:53 +03:00
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,6 @@",
" package main",
" ",
" func main() {",
"-",
2016-11-11 00:19:53 +03:00
"+!<-a",
"+*foo()",
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",
2017-01-11 00:21:35 +03:00
"shas": "f0462f56de40543828c76e5600d6c4a25286e831..9d668ac62b4887b04749ec95422d2c82172dc564"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-unary-expressions-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
4
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
5
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
4
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
5
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'a' identifier with the 'b' 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
5,
2016-11-02 17:50:05 +03:00
2
],
"end": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 17:50:05 +03:00
5
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 17:50:05 +03:00
2
],
"end": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 17:50:05 +03:00
5
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the bar() function call of the 'main' function"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
2016-12-02 00:03:52 +03:00
"index bdf9ccc..cf8ed88 100644",
2016-11-11 00:19:53 +03:00
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
2016-12-02 00:03:52 +03:00
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-!<-a",
"-*foo()",
"+!<-b",
"+*bar()",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-11 00:21:35 +03:00
"shas": "9d668ac62b4887b04749ec95422d2c82172dc564..1959c925260baa867d2b7254b25a28b294f2d926"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-unary-expressions-delete-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
4
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
5
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
4
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
5
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'b' identifier with the 'a' 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
5,
2016-11-02 17:50:05 +03:00
2
],
"end": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 17:50:05 +03:00
5
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 17:50:05 +03:00
2
],
"end": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 17:50:05 +03:00
5
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the foo() function call of the 'main' function"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
2016-12-02 00:03:52 +03:00
"index cf8ed88..bdf9ccc 100644",
2016-11-11 00:19:53 +03:00
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
2016-12-02 00:03:52 +03:00
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
"-!<-b",
"-*bar()",
2016-12-02 00:03:52 +03:00
"+!<-a",
"+*foo()",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-11 00:21:35 +03:00
"shas": "1959c925260baa867d2b7254b25a28b294f2d926..4c5848742450fd917f4bb54b45be958b51b94ad8"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-unary-expressions-delete-insert-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"delete": {
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
4
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 17:50:05 +03:00
5
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'a' 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
5,
2
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 17:50:05 +03:00
7
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'foo()' function call in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
2016-12-02 00:03:52 +03:00
"index bdf9ccc..7905807 100644",
2016-11-11 00:19:53 +03:00
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
2016-12-02 00:03:52 +03:00
"@@ -1,6 +1,5 @@",
" package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
"-!<-a",
"-*foo()",
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",
2017-01-11 00:21:35 +03:00
"shas": "4c5848742450fd917f4bb54b45be958b51b94ad8..685b7532bf0b4dd65b49428e5cb74331f18edd41"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-unary-expressions-teardown-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
2016-11-11 00:19:53 +03:00
"delete": {
"start": [
1,
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
1
2016-11-11 00:19:53 +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": [
"unary-expressions.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
2016-12-02 00:03:52 +03:00
"index 7905807..e69de29 100644",
2016-11-11 00:19:53 +03:00
"--- a/unary-expressions.go",
"+++ b/unary-expressions.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",
2017-01-11 00:21:35 +03:00
"shas": "685b7532bf0b4dd65b49428e5cb74331f18edd41..3589635caca4192ad0f5c250ec8f5ea45c22bf4a"
2016-11-02 17:50:05 +03:00
}]