1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/anonymous-function.json
2016-10-11 12:52:26 -04:00

489 lines
17 KiB
JSON

[{
"testCaseDescription": "javascript-anonymous-function-insert-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "anonymous-function.js",
"end": [
1,
32
]
}
},
"summary": "Added an anonymous(a, b) function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "458495ca9be4e43e96aed296de34fe136605b436",
"gitDir": "test/corpus/repos/javascript",
"sha2": "027500f42df1cb82966a8eacc5a612e396e4b53d"
}
,{
"testCaseDescription": "javascript-anonymous-function-replacement-insert-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "anonymous-function.js",
"end": [
1,
32
]
}
},
"summary": "Added an anonymous(b, c) function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "anonymous-function.js",
"end": [
2,
32
]
}
},
"summary": "Added an anonymous(a, b) function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "027500f42df1cb82966a8eacc5a612e396e4b53d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fa10f745f2b6e09744a5213a919a5bfd934a4e72"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-insert-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"filepath": "anonymous-function.js",
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"filepath": "anonymous-function.js",
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
12
],
"filepath": "anonymous-function.js",
"end": [
1,
13
]
},
{
"start": [
1,
12
],
"filepath": "anonymous-function.js",
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'b' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
24
],
"filepath": "anonymous-function.js",
"end": [
1,
25
]
},
{
"start": [
1,
24
],
"filepath": "anonymous-function.js",
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
28
],
"filepath": "anonymous-function.js",
"end": [
1,
29
]
},
{
"start": [
1,
28
],
"filepath": "anonymous-function.js",
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'b' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "fa10f745f2b6e09744a5213a919a5bfd934a4e72",
"gitDir": "test/corpus/repos/javascript",
"sha2": "65004040936dd5a6dc031dbc2face4db2d609d48"
}
,{
"testCaseDescription": "javascript-anonymous-function-replacement-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"filepath": "anonymous-function.js",
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"filepath": "anonymous-function.js",
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
12
],
"filepath": "anonymous-function.js",
"end": [
1,
13
]
},
{
"start": [
1,
12
],
"filepath": "anonymous-function.js",
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'c' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
24
],
"filepath": "anonymous-function.js",
"end": [
1,
25
]
},
{
"start": [
1,
24
],
"filepath": "anonymous-function.js",
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
28
],
"filepath": "anonymous-function.js",
"end": [
1,
29
]
},
{
"start": [
1,
28
],
"filepath": "anonymous-function.js",
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'c' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "65004040936dd5a6dc031dbc2face4db2d609d48",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a62e5f87aa64e61cca7ade935b9042969b562257"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-replacement-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "anonymous-function.js",
"end": [
1,
32
]
}
},
"summary": "Deleted an anonymous(b, c) function",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "anonymous-function.js",
"end": [
2,
32
]
}
},
"summary": "Deleted an anonymous(a, b) function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "anonymous-function.js",
"end": [
2,
32
]
}
},
"summary": "Added an anonymous(b, c) function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "a62e5f87aa64e61cca7ade935b9042969b562257",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7e92308c517833b045c6107fc999a8c6d4858551"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "anonymous-function.js",
"end": [
1,
32
]
}
},
"summary": "Deleted an anonymous(a, b) function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "7e92308c517833b045c6107fc999a8c6d4858551",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d74a906e343cf2f938581b92a17863d90f66d7b1"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-rest-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "anonymous-function.js",
"end": [
1,
32
]
}
},
"summary": "Deleted an anonymous(b, c) function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "d74a906e343cf2f938581b92a17863d90f66d7b1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "57e6cad9cbe4a2a75bde2d8757af93d7f6a873ad"
}]