1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/class.json
2016-10-14 12:12:38 -04:00

395 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-class-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
87
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "6f94c3c87b8a5aca474985d3fd63638e48db29f2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "927891297ed8fd7f8339a330954f671c315f121c"
}
,{
"testCaseDescription": "javascript-class-replacement-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Added the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
87
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "927891297ed8fd7f8339a330954f671c315f121c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "673f55820ceb549750cf2971df6bf704651950d9"
}
,{
"testCaseDescription": "javascript-class-delete-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'one' identifier in the one method of the 'Foo' class"
},
{
"span": {
"replace": [
{
"start": [
1,
42
],
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'two' identifier in the two method of the 'Foo' class"
},
{
"span": {
"replace": [
{
"start": [
1,
63
],
"end": [
1,
66
]
},
{
"start": [
1,
63
],
"end": [
1,
68
]
}
]
},
"summary": "Replaced the 'baz' identifier with the 'three' identifier in the three method of the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "673f55820ceb549750cf2971df6bf704651950d9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9186c0af54941776deaa02de1164c36f7f605dc0"
}
,{
"testCaseDescription": "javascript-class-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'foo' identifier in the foo method of the 'Foo' class"
},
{
"span": {
"replace": [
{
"start": [
1,
42
],
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'bar' identifier in the bar method of the 'Foo' class"
},
{
"span": {
"replace": [
{
"start": [
1,
63
],
"end": [
1,
68
]
},
{
"start": [
1,
63
],
"end": [
1,
66
]
}
]
},
"summary": "Replaced the 'three' identifier with the 'baz' identifier in the baz method of the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "9186c0af54941776deaa02de1164c36f7f605dc0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d8c53948104b3c8c586f7d2a742fe31b0574823f"
}
,{
"testCaseDescription": "javascript-class-delete-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
87
]
}
},
"summary": "Deleted the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
85
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "d8c53948104b3c8c586f7d2a742fe31b0574823f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5017624b71fc70f2c5a338e42647a8ac55ae9b98"
}
,{
"testCaseDescription": "javascript-class-delete-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
87
]
}
},
"summary": "Deleted the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "5017624b71fc70f2c5a338e42647a8ac55ae9b98",
"gitDir": "test/corpus/repos/javascript",
"sha2": "100ecf0c66b14ecce0726148bf79918b8f6b7423"
}
,{
"testCaseDescription": "javascript-class-delete-rest-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"sha1": "100ecf0c66b14ecce0726148bf79918b8f6b7423",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d0e76415fa7b018af334625ad116636c7334df00"
}]