1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/test/corpus/diff-summaries/javascript/generator-function.json
2016-11-03 16:02:56 -07:00

348 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-generator-function-insert-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
59
]
}
},
"summary": "Added the 'generateStuff' function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index e69de29..04e8a59 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -0,0 +1 @@",
"+function *generateStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "5cab8720cde055f6d78f5c5deaf8980b89a434e1..8ff6dd40a182ab5500d976f04b8d0e919d045ddc"
}
,{
"testCaseDescription": "javascript-generator-function-replacement-insert-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
62
]
}
},
"summary": "Added the 'generateNewStuff' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
59
]
}
},
"summary": "Added the 'generateStuff' function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index 04e8a59..ed5c037 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1 +1,3 @@",
"+function *generateNewStuff(arg1, arg2) { yield; yield arg2; };",
"+function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "8ff6dd40a182ab5500d976f04b8d0e919d045ddc..e3273bce016747d95cbc043e14d23cda41b65129"
}
,{
"testCaseDescription": "javascript-generator-function-delete-insert-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
11
],
"end": [
1,
27
]
},
{
"start": [
1,
11
],
"end": [
1,
24
]
}
]
},
"summary": "Replaced the 'generateNewStuff' identifier with the 'generateStuff' identifier in the generateStuff function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index ed5c037..0895c3f 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1,3 +1,3 @@",
"-function *generateNewStuff(arg1, arg2) { yield; yield arg2; };",
"+function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "e3273bce016747d95cbc043e14d23cda41b65129..3dd2a62eface3915c946a63ecef0c9134bf5b9be"
}
,{
"testCaseDescription": "javascript-generator-function-replacement-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
11
],
"end": [
1,
24
]
},
{
"start": [
1,
11
],
"end": [
1,
27
]
}
]
},
"summary": "Replaced the 'generateStuff' identifier with the 'generateNewStuff' identifier in the generateNewStuff function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index 0895c3f..ed5c037 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1,3 +1,3 @@",
"-function *generateStuff(arg1, arg2) { yield; yield arg2; };",
"+function *generateNewStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3dd2a62eface3915c946a63ecef0c9134bf5b9be..9a4d77ff9359a6c8fe9ab42d88157282b742e1be"
}
,{
"testCaseDescription": "javascript-generator-function-delete-replacement-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
62
]
}
},
"summary": "Deleted the 'generateNewStuff' function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
59
]
}
},
"summary": "Deleted the 'generateStuff' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
62
]
}
},
"summary": "Added the 'generateNewStuff' function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index ed5c037..1dae105 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1,3 +1,2 @@",
"-function *generateNewStuff(arg1, arg2) { yield; yield arg2; };",
"-function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };",
"+function *generateNewStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9a4d77ff9359a6c8fe9ab42d88157282b742e1be..63a8b6f6c41bdd248590069ba8f59d53a3b0992f"
}
,{
"testCaseDescription": "javascript-generator-function-delete-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
59
]
}
},
"summary": "Deleted the 'generateStuff' function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index 1dae105..5846d1c 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1,2 +1 @@",
"-function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateNewStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "63a8b6f6c41bdd248590069ba8f59d53a3b0992f..2087f684c9ba7fa39876477f2eacf8b9b12949fa"
}
,{
"testCaseDescription": "javascript-generator-function-delete-rest-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
62
]
}
},
"summary": "Deleted the 'generateNewStuff' function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index 5846d1c..e69de29 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1 +0,0 @@",
"-function *generateNewStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2087f684c9ba7fa39876477f2eacf8b9b12949fa..973cce7b94116a9e6e8b399f9f0a50bd107fb9b5"
}]