1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/ruby/module.json

293 lines
8.3 KiB
JSON
Raw Normal View History

2016-10-27 22:47:27 +03:00
[{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "1b98fc53dd62922900312603c00866cd0981b695",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "6e283321f4bc9eb47f7031ccc075b42aa8c13fd9"
2016-10-27 22:47:27 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "6e283321f4bc9eb47f7031ccc075b42aa8c13fd9",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "b279f914576a22bad2b5fb0504fd8c198bac02bb"
2016-10-27 22:47:27 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "b279f914576a22bad2b5fb0504fd8c198bac02bb",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "4ab579c0f038b5dd27f2dd0b9596f3563a668b46"
2016-10-27 22:47:27 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "4ab579c0f038b5dd27f2dd0b9596f3563a668b46",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "4fabcd80f3c94893da6e8580ef502edd2cf991f0"
2016-10-27 22:47:27 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "4fabcd80f3c94893da6e8580ef502edd2cf991f0",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "3249aa5ef88af3ab209b129676a5757e09f9486d"
2016-10-27 22:47:27 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "3249aa5ef88af3ab209b129676a5757e09f9486d",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "e1ba7de1fff93d9da58e7f7bce31c4634de63d79"
2016-10-27 22:47:27 +03:00
}
,{
"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"
],
2016-10-31 23:21:58 +03:00
"sha1": "e1ba7de1fff93d9da58e7f7bce31c4634de63d79",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:21:58 +03:00
"sha2": "932ab2e771298de02435e6560b092f44116db759"
2016-10-27 22:47:27 +03:00
}]