mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
489 lines
17 KiB
JSON
489 lines
17 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-anonymous-function-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"anonymous-function.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(a, b) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"anonymous-function.js"
|
|
],
|
|
"sha1": "2f014a3eddb509376944a4938ace7c0eb952308d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a8fcbf2e63b9096c5fea21b0811bc0017e48a5b5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-anonymous-function-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"anonymous-function.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(b, c) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(a, b) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"anonymous-function.js"
|
|
],
|
|
"sha1": "a8fcbf2e63b9096c5fea21b0811bc0017e48a5b5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9f454c8396c898ded02c426f24bb578fde429fda"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-anonymous-function-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"anonymous-function.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'c' identifier with the 'b' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
28
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
28
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'c' identifier with the 'b' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"anonymous-function.js"
|
|
],
|
|
"sha1": "9f454c8396c898ded02c426f24bb578fde429fda",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "76497977ea3f866b200735314c4cd3d3f869d592"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-anonymous-function-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"anonymous-function.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'c' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
28
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
28
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'c' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"anonymous-function.js"
|
|
],
|
|
"sha1": "76497977ea3f866b200735314c4cd3d3f869d592",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7e5e1a029d13f2b597d893a9238798d2be3fe2e7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-anonymous-function-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"anonymous-function.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(b, c) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(a, b) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(b, c) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"anonymous-function.js"
|
|
],
|
|
"sha1": "7e5e1a029d13f2b597d893a9238798d2be3fe2e7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b45156e4dd71a0fa4fa8593967953f50792c4c4e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-anonymous-function-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"anonymous-function.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(a, b) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"anonymous-function.js"
|
|
],
|
|
"sha1": "b45156e4dd71a0fa4fa8593967953f50792c4c4e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4707e7becd4c216977b13fcc4e1e1118baa7fc0f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-anonymous-function-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"anonymous-function.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "anonymous-function.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(b, c) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"anonymous-function.js"
|
|
],
|
|
"sha1": "4707e7becd4c216977b13fcc4e1e1118baa7fc0f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "243878b6c3b6f74b080ea4f2188dffe5f3ca5517"
|
|
}]
|