mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
293 lines
8.3 KiB
JSON
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": "ed9247897e16cd69ebad6028847af00df20f0e7d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "cd7f298bed8debb2e94a651edbc644cb36d7c10f"
|
|
}
|
|
,{
|
|
"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": "cd7f298bed8debb2e94a651edbc644cb36d7c10f",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "629c3f6f43fd28dc947987f824387f2603462f3b"
|
|
}
|
|
,{
|
|
"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": "629c3f6f43fd28dc947987f824387f2603462f3b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "11a01102b820c5ea179542dbed5bb40d7a18b08e"
|
|
}
|
|
,{
|
|
"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": "11a01102b820c5ea179542dbed5bb40d7a18b08e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8dfd95ab4140ed713d3f8db3d17c5094c6d53182"
|
|
}
|
|
,{
|
|
"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": "8dfd95ab4140ed713d3f8db3d17c5094c6d53182",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "786d175e7f9b08d2bf48d6adcc60951a51114861"
|
|
}
|
|
,{
|
|
"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": "786d175e7f9b08d2bf48d6adcc60951a51114861",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8dd62513dc964890d300f18b584a928abdd165e7"
|
|
}
|
|
,{
|
|
"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": "8dd62513dc964890d300f18b584a928abdd165e7",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "12e4f5002e49ac9481b44ca93f12499e29fa4d24"
|
|
}]
|