1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/class.json
2016-10-11 12:52:26 -04:00

429 lines
14 KiB
JSON

[{
"testCaseDescription": "javascript-class-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "class.js",
"end": [
1,
87
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "a77ec4befeb4574a4433a062878d43b231a916bc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "41dc947bf0ee187b5783d62de471d6c74cdf6df2"
}
,{
"testCaseDescription": "javascript-class-replacement-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "class.js",
"end": [
1,
85
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "class.js",
"end": [
2,
87
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "41dc947bf0ee187b5783d62de471d6c74cdf6df2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ad979810f114bac8db323d00a003eff85983f777"
}
,{
"testCaseDescription": "javascript-class-delete-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"filepath": "class.js",
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"filepath": "class.js",
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'one' identifier in the one method of the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
42
],
"filepath": "class.js",
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"filepath": "class.js",
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'two' identifier in the two method of the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
63
],
"filepath": "class.js",
"end": [
1,
66
]
},
{
"start": [
1,
63
],
"filepath": "class.js",
"end": [
1,
68
]
}
]
},
"summary": "Replaced the 'baz' identifier with the 'three' identifier in the three method of the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "ad979810f114bac8db323d00a003eff85983f777",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fcb3d418dbb3440d98664e22a3ce8ed40ccfb8a6"
}
,{
"testCaseDescription": "javascript-class-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"filepath": "class.js",
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"filepath": "class.js",
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'foo' identifier in the foo method of the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
42
],
"filepath": "class.js",
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"filepath": "class.js",
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'bar' identifier in the bar method of the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
63
],
"filepath": "class.js",
"end": [
1,
68
]
},
{
"start": [
1,
63
],
"filepath": "class.js",
"end": [
1,
66
]
}
]
},
"summary": "Replaced the 'three' identifier with the 'baz' identifier in the baz method of the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "fcb3d418dbb3440d98664e22a3ce8ed40ccfb8a6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bb881c2e2459f032b76724998560c185e8282c51"
}
,{
"testCaseDescription": "javascript-class-delete-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "class.js",
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "class.js",
"end": [
2,
87
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "class.js",
"end": [
2,
85
]
}
},
"summary": "Added the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "bb881c2e2459f032b76724998560c185e8282c51",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6b97add2716043508dd60d4ab6d35399d708a603"
}
,{
"testCaseDescription": "javascript-class-delete-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "class.js",
"end": [
1,
87
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "6b97add2716043508dd60d4ab6d35399d708a603",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1508d11e42bb6de8bdabee2f19e7f90bf2b8925c"
}
,{
"testCaseDescription": "javascript-class-delete-rest-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "class.js",
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "1508d11e42bb6de8bdabee2f19e7f90bf2b8925c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a6be8db7f10bd0797e3bcfbbfa28b19f82697dfe"
}]