mirror of
https://github.com/github/semantic.git
synced 2024-12-24 07:25:44 +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": "1b98fc53dd62922900312603c00866cd0981b695",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6e283321f4bc9eb47f7031ccc075b42aa8c13fd9"
|
|
}
|
|
,{
|
|
"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": "6e283321f4bc9eb47f7031ccc075b42aa8c13fd9",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "b279f914576a22bad2b5fb0504fd8c198bac02bb"
|
|
}
|
|
,{
|
|
"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": "b279f914576a22bad2b5fb0504fd8c198bac02bb",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "4ab579c0f038b5dd27f2dd0b9596f3563a668b46"
|
|
}
|
|
,{
|
|
"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": "4ab579c0f038b5dd27f2dd0b9596f3563a668b46",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "4fabcd80f3c94893da6e8580ef502edd2cf991f0"
|
|
}
|
|
,{
|
|
"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": "4fabcd80f3c94893da6e8580ef502edd2cf991f0",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "3249aa5ef88af3ab209b129676a5757e09f9486d"
|
|
}
|
|
,{
|
|
"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": "3249aa5ef88af3ab209b129676a5757e09f9486d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e1ba7de1fff93d9da58e7f7bce31c4634de63d79"
|
|
}
|
|
,{
|
|
"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": "e1ba7de1fff93d9da58e7f7bce31c4634de63d79",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "932ab2e771298de02435e6560b092f44116db759"
|
|
}]
|