1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/member-access.json
2016-11-03 15:41:59 -07:00

348 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-member-access-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Added the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index e69de29..3c837c9 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -0,0 +1 @@",
"+x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "0cbc55e481f01ab536c7832c5ebbc21d7f9e9021..9a5f4f1bbfa04d4b229b51802ca72129a31b1953"
}
,{
"testCaseDescription": "javascript-member-access-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Added the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 3c837c9..858131a 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1 +1,3 @@",
"+x.someOtherProperty",
"+x.someProperty;",
" x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9a5f4f1bbfa04d4b229b51802ca72129a31b1953..93677ca22426294b752c658707b4052a3a3220ed"
}
,{
"testCaseDescription": "javascript-member-access-delete-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
20
]
},
{
"start": [
1,
3
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'someOtherProperty' identifier with the 'someProperty' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 858131a..5ed8a8d 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,3 +1,3 @@",
"-x.someOtherProperty",
"+x.someProperty;",
" x.someProperty;",
" x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "93677ca22426294b752c658707b4052a3a3220ed..df73936014819634cde8e6741fef45116b094d93"
}
,{
"testCaseDescription": "javascript-member-access-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
15
]
},
{
"start": [
1,
3
],
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'someProperty' identifier with the 'someOtherProperty' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 5ed8a8d..858131a 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,3 +1,3 @@",
"-x.someProperty;",
"+x.someOtherProperty",
" x.someProperty;",
" x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "df73936014819634cde8e6741fef45116b094d93..94c28d92c27008e7f21ed463e683fdfbda0b8287"
}
,{
"testCaseDescription": "javascript-member-access-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 858131a..81f5f46 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,3 +1,2 @@",
"-x.someOtherProperty",
"-x.someProperty;",
" x.someProperty;",
"+x.someOtherProperty"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "94c28d92c27008e7f21ed463e683fdfbda0b8287..38ee25545f8644cee42edb45ef2f7b29b26892d5"
}
,{
"testCaseDescription": "javascript-member-access-delete-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 81f5f46..8329c77 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,2 +1 @@",
"-x.someProperty;",
" x.someOtherProperty"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "38ee25545f8644cee42edb45ef2f7b29b26892d5..6188b94ce3872e80b40738d01c4853a467d502c2"
}
,{
"testCaseDescription": "javascript-member-access-delete-rest-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 8329c77..e69de29 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1 +0,0 @@",
"-x.someOtherProperty"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "6188b94ce3872e80b40738d01c4853a467d502c2..bcba202e709aea072f614c126e2a5bb356cbf3fe"
}]