1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 02:14:20 +03:00
semantic/test/corpus/diff-summaries/javascript/anonymous-function.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05: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": "70801fe02e1669714037fa964db6b89a852a2403",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1f747c53f8f2f79467c0af9a8000e0715a6d0634"
}
,{
"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": "1f747c53f8f2f79467c0af9a8000e0715a6d0634",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d1dbcedb1af571b6d5658a0d8fd0eddcc70de998"
}
,{
"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": "d1dbcedb1af571b6d5658a0d8fd0eddcc70de998",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0ade6170ad94891d6338e4bdf0417edd10f6386e"
}
,{
"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": "0ade6170ad94891d6338e4bdf0417edd10f6386e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "787c09ee5a2231dcb8da14119c84aa4666fde105"
}
,{
"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": "787c09ee5a2231dcb8da14119c84aa4666fde105",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c9beb0b04ab27699191627b5ba480e20ddefe9d9"
}
,{
"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": "c9beb0b04ab27699191627b5ba480e20ddefe9d9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "10d138cd14f41056a0cae752e58f31f120cf823d"
}
,{
"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": "10d138cd14f41056a0cae752e58f31f120cf823d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "45d448bfd33f1ae99cfb456e0406aacf8a062bae"
}]