1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/module.json
2016-11-02 10:52:40 -07:00

293 lines
8.3 KiB
JSON

[{
"testCaseDescription": "ruby-module-insert-test",
"expectedResult": {
"changes": {
"module.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'Foo' module"
}
]
},
"errors": {}
},
"filePaths": [
"module.rb"
],
"sha1": "bbab8bcbdaf0110874eea67f72672a7c975516c3",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3e3d0047c4d893c9abd544bd7ed512190618da49"
}
,{
"testCaseDescription": "ruby-module-replacement-insert-test",
"expectedResult": {
"changes": {
"module.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Added the 'Bar::' class"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
4
]
}
},
"summary": "Added the 'Foo' module"
}
]
},
"errors": {}
},
"filePaths": [
"module.rb"
],
"sha1": "3e3d0047c4d893c9abd544bd7ed512190618da49",
"gitDir": "test/corpus/repos/ruby",
"sha2": "698c583e6b28ec82defe886a632f52c55573240f"
}
,{
"testCaseDescription": "ruby-module-delete-insert-test",
"expectedResult": {
"changes": {
"module.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'Foo' module"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'Bar::' class"
}
]
},
"errors": {}
},
"filePaths": [
"module.rb"
],
"sha1": "698c583e6b28ec82defe886a632f52c55573240f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a425bf439348c5eaf0f81eb7be10ffe99ebaa096"
}
,{
"testCaseDescription": "ruby-module-replacement-test",
"expectedResult": {
"changes": {
"module.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Added the 'Bar::' class"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'Foo' module"
}
]
},
"errors": {}
},
"filePaths": [
"module.rb"
],
"sha1": "a425bf439348c5eaf0f81eb7be10ffe99ebaa096",
"gitDir": "test/corpus/repos/ruby",
"sha2": "502828506c6f4178a0cd4235caaba8b1ec906b21"
}
,{
"testCaseDescription": "ruby-module-delete-replacement-test",
"expectedResult": {
"changes": {
"module.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'Bar::' class"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
4
]
}
},
"summary": "Deleted the 'Foo' module"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
7,
4
]
}
},
"summary": "Added the 'Bar::' class"
}
]
},
"errors": {}
},
"filePaths": [
"module.rb"
],
"sha1": "502828506c6f4178a0cd4235caaba8b1ec906b21",
"gitDir": "test/corpus/repos/ruby",
"sha2": "522ecc11769f1368a2b7f5dcbb123fd9c0cd7d34"
}
,{
"testCaseDescription": "ruby-module-delete-test",
"expectedResult": {
"changes": {
"module.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'Foo' module"
}
]
},
"errors": {}
},
"filePaths": [
"module.rb"
],
"sha1": "522ecc11769f1368a2b7f5dcbb123fd9c0cd7d34",
"gitDir": "test/corpus/repos/ruby",
"sha2": "4b0958f1b13860898a3df40eb881b326685c3bce"
}
,{
"testCaseDescription": "ruby-module-delete-rest-test",
"expectedResult": {
"changes": {
"module.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'Bar::' class"
}
]
},
"errors": {}
},
"filePaths": [
"module.rb"
],
"sha1": "4b0958f1b13860898a3df40eb881b326685c3bce",
"gitDir": "test/corpus/repos/ruby",
"sha2": "51890fa66037f034f535d9ac524c50a62ceb519e"
}]