1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/go/selector-expressions.json

456 lines
15 KiB
JSON
Raw Normal View History

2016-11-02 17:50:05 +03:00
[{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-selector-expressions-insert-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"selector-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Added the 'a[b][c]()' function call"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"selector-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index e69de29..7be43f2 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -0,0 +1 @@",
"+a.b.c()"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 22:39:16 +03:00
"shas": "1b4a35f87087d1718b97eb8e7ea5f49b5ca174ec..2862242e78c02dfa736f3bad5af08f8eefd203ea"
2016-11-02 17:50:05 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-selector-expressions-replacement-insert-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"selector-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
2016-11-11 00:19:53 +03:00
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
2016-11-02 17:50:05 +03:00
},
"summary": "Added the 'x[y][z]()' function call"
2016-11-11 00:19:53 +03:00
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'a[b][c]()' function call"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"selector-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index 7be43f2..4fa8605 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -1 +1,3 @@",
"+x.y.z()",
"+a.b.c()",
" a.b.c()"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 22:39:16 +03:00
"shas": "2862242e78c02dfa736f3bad5af08f8eefd203ea..2a1c45cd4dc92f5e08722706171921b90571d8b8"
2016-11-02 17:50:05 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-selector-expressions-delete-insert-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"selector-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
2
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
2
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the a[b] subscript access"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
3
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
3
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
2016-11-02 17:50:05 +03:00
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the a[b] subscript access"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
6
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
6
2016-11-02 17:50:05 +03:00
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'c' identifier in the a[b][c] subscript access"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"selector-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index 4fa8605..2a586da 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -1,3 +1,3 @@",
"-x.y.z()",
"+a.b.c()",
" a.b.c()",
" a.b.c()"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 22:39:16 +03:00
"shas": "2a1c45cd4dc92f5e08722706171921b90571d8b8..d658eee9ddf5ac443d61d8e64a9c394cd3a5b0d5"
2016-11-02 17:50:05 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-selector-expressions-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"selector-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
2
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the x[y] subscript access"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
3
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
3
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
2016-11-02 17:50:05 +03:00
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the x[y] subscript access"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
6
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
6
2016-11-02 17:50:05 +03:00
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'z' identifier in the x[y][z] subscript access"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"selector-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index 2a586da..4fa8605 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -1,3 +1,3 @@",
"-a.b.c()",
"+x.y.z()",
" a.b.c()",
" a.b.c()"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 22:39:16 +03:00
"shas": "d658eee9ddf5ac443d61d8e64a9c394cd3a5b0d5..4821e2a047cd73bd612881159a5da01f3ac86329"
2016-11-02 17:50:05 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-selector-expressions-delete-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"selector-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Deleted the 'x[y][z]()' function call"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
8
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Deleted the 'a[b][c]()' function call"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
8
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Added the 'x[y][z]()' function call"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"selector-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index 4fa8605..3e2d0bd 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -1,3 +1,2 @@",
"-x.y.z()",
"-a.b.c()",
" a.b.c()",
"+x.y.z()"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 22:39:16 +03:00
"shas": "4821e2a047cd73bd612881159a5da01f3ac86329..db6747174a33ae83142667799ff5f4960ca1d90c"
2016-11-02 17:50:05 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-selector-expressions-delete-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"selector-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
2016-11-11 00:19:53 +03:00
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
2016-11-02 17:50:05 +03:00
},
"summary": "Deleted the 'a[b][c]()' function call"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"selector-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index 3e2d0bd..00b9e7c 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -1,2 +1 @@",
"-a.b.c()",
" x.y.z()"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 22:39:16 +03:00
"shas": "db6747174a33ae83142667799ff5f4960ca1d90c..b02d04ad34bf067ddc65366ca5ffddd90d1b2a25"
2016-11-02 17:50:05 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-selector-expressions-delete-rest-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"selector-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Deleted the 'x[y][z]()' function call"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"selector-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index 00b9e7c..e69de29 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -1 +0,0 @@",
"-x.y.z()"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-21 22:39:16 +03:00
"shas": "b02d04ad34bf067ddc65366ca5ffddd90d1b2a25..5a80afc3c0dcecbaea8d511c091fd805defc43e3"
2016-11-02 17:50:05 +03:00
}]