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/arrow-function.json
2016-11-03 16:02:56 -07:00

348 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-arrow-function-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index e69de29..9ef167c 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -0,0 +1 @@",
"+(f, g) => { return h; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d700dc51fee7a3dd557906dcdf46d426285d7955..edda3c60ac532d534d84539648fa827ff18a6c59"
}
,{
"testCaseDescription": "javascript-arrow-function-replacement-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index 9ef167c..92dea6f 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1 +1,3 @@",
"+(f, g) => { return g; };",
"+(f, g) => { return h; };",
" (f, g) => { return h; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "edda3c60ac532d534d84539648fa827ff18a6c59..63fd87f8cafc4a46f2927f9825cc20e5f116a093"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'g' identifier with the 'h' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index 92dea6f..8f5bb51 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1,3 +1,3 @@",
"-(f, g) => { return g; };",
"+(f, g) => { return h; };",
" (f, g) => { return h; };",
" (f, g) => { return h; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "63fd87f8cafc4a46f2927f9825cc20e5f116a093..29b18be738dde19aa61343c5f4e54bf83f4b30ea"
}
,{
"testCaseDescription": "javascript-arrow-function-replacement-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'g' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index 8f5bb51..92dea6f 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1,3 +1,3 @@",
"-(f, g) => { return h; };",
"+(f, g) => { return g; };",
" (f, g) => { return h; };",
" (f, g) => { return h; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "29b18be738dde19aa61343c5f4e54bf83f4b30ea..d92f900ef9873f273da632ea9c54adcd7acc7961"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-replacement-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index 92dea6f..acab9a9 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1,3 +1,2 @@",
"-(f, g) => { return g; };",
"-(f, g) => { return h; };",
" (f, g) => { return h; };",
"+(f, g) => { return g; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d92f900ef9873f273da632ea9c54adcd7acc7961..243f2be7291992566bd0ab2c2caef9e7ac13e02d"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index acab9a9..ef1be25 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1,2 +1 @@",
"-(f, g) => { return h; };",
" (f, g) => { return g; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "243f2be7291992566bd0ab2c2caef9e7ac13e02d..3128237c6d11459cf7d3e9add902e7be8d38710b"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-rest-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index ef1be25..e69de29 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1 +0,0 @@",
"-(f, g) => { return g; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3128237c6d11459cf7d3e9add902e7be8d38710b..5cab8720cde055f6d78f5c5deaf8980b89a434e1"
}]