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/anonymous-function.json
2016-10-12 19:44:27 -04:00

449 lines
14 KiB
JSON

[{
"testCaseDescription": "javascript-anonymous-function-insert-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added an anonymous(a, b) function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "d22e2f4f462886be84d2101b2ffefe870463eb5a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e9d10fe5e691c17bdf72023a49e31d6ffcb7c500"
}
,{
"testCaseDescription": "javascript-anonymous-function-replacement-insert-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added an anonymous(b, c) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added an anonymous(a, b) function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "e9d10fe5e691c17bdf72023a49e31d6ffcb7c500",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5edd49dd507455d1b18ac925bfd2b45e3f5ddf06"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-insert-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
12
],
"end": [
1,
13
]
},
{
"start": [
1,
12
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
24
],
"end": [
1,
25
]
},
{
"start": [
1,
24
],
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
28
],
"end": [
1,
29
]
},
{
"start": [
1,
28
],
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'b' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "5edd49dd507455d1b18ac925bfd2b45e3f5ddf06",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cec74fe3e729d3dc922c25a8efb3225a4793aa72"
}
,{
"testCaseDescription": "javascript-anonymous-function-replacement-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
12
],
"end": [
1,
13
]
},
{
"start": [
1,
12
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'c' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
24
],
"end": [
1,
25
]
},
{
"start": [
1,
24
],
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
28
],
"end": [
1,
29
]
},
{
"start": [
1,
28
],
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'c' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "cec74fe3e729d3dc922c25a8efb3225a4793aa72",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c632cf2f85cd9540ab10bd97f4eb3488e26b2658"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-replacement-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted an anonymous(b, c) function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Deleted an anonymous(a, b) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added an anonymous(b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "c632cf2f85cd9540ab10bd97f4eb3488e26b2658",
"gitDir": "test/corpus/repos/javascript",
"sha2": "90e12e0ab9ce55bef3647fd397e3f05f674cf3ff"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted an anonymous(a, b) function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "90e12e0ab9ce55bef3647fd397e3f05f674cf3ff",
"gitDir": "test/corpus/repos/javascript",
"sha2": "64eefd264194709ae0544faa13f763fbfdc5f93d"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-rest-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted an anonymous(b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"sha1": "64eefd264194709ae0544faa13f763fbfdc5f93d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7bf731eb362a6a71c4461ae7915cc0f0d4088c2f"
}]