mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
449 lines
14 KiB
JSON
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": "f0cdd4a1bb8a2f6eedc0e6b0ef94ac2047013a01",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d533a683b7aeac54a564659a758db8eaeef2d71f"
|
|
}
|
|
,{
|
|
"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": "d533a683b7aeac54a564659a758db8eaeef2d71f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "aa9d13e76b7ff4639ba2837f1a26cc41ab00018a"
|
|
}
|
|
,{
|
|
"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": "aa9d13e76b7ff4639ba2837f1a26cc41ab00018a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c6d8bbbcfc272d3b5cb6a7e77a2cfa1c629ea039"
|
|
}
|
|
,{
|
|
"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": "c6d8bbbcfc272d3b5cb6a7e77a2cfa1c629ea039",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "85c3ad13bfa904dae6bed9df201852fa2b46096b"
|
|
}
|
|
,{
|
|
"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": "85c3ad13bfa904dae6bed9df201852fa2b46096b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4a2aceba7c9b5f4cbee2ce85b915e888a855f4fb"
|
|
}
|
|
,{
|
|
"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": "4a2aceba7c9b5f4cbee2ce85b915e888a855f4fb",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a812707dd9bd9b4cb3174beed3be1a7e4bc32aef"
|
|
}
|
|
,{
|
|
"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": "a812707dd9bd9b4cb3174beed3be1a7e4bc32aef",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a008777b0de863298ff4e36e8462d5cb7e9b21e4"
|
|
}]
|