mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
305 lines
9.2 KiB
JSON
305 lines
9.2 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-object-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ \"key1\": … }' object",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "f58cfc7947653db85574d1569f494d8b11791ad1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6f20c6eb26c60838e377075ef27fe3b76b98dd26"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
54
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ \"key1\": … }' object",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "6f20c6eb26c60838e377075ef27fe3b76b98dd26",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "32fccdccdc5ff2d5c4878563744f146e423e812d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"key2\": …' pair",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
39
|
|
],
|
|
"end": [
|
|
1,
|
|
52
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"key3\": …' pair",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "32fccdccdc5ff2d5c4878563744f146e423e812d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "af8db674db1087a5f2953ccfe17ba15b840f6e76"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"key2\": …' pair",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
39
|
|
],
|
|
"end": [
|
|
1,
|
|
52
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"key3\": …' pair",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "af8db674db1087a5f2953ccfe17ba15b840f6e76",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "684501429d36cd64a92cbec1c777560cad857469"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
54
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ \"key1\": … }' object",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
54
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "684501429d36cd64a92cbec1c777560cad857469",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b1a8ced66b7504d887f621ef64db91e3ec0d5674"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ \"key1\": … }' object",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "b1a8ced66b7504d887f621ef64db91e3ec0d5674",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "02afb244f44208b28e12483be548a9b8478bb5ec"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
54
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "02afb244f44208b28e12483be548a9b8478bb5ec",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4f744373cdf308bd96fa3eec09679a7f6461d5aa"
|
|
}]
|