1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +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"
],
"sha1": "d2a668a29c80c1aa5a768920c9bc10d1ddf670ef",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "20bad31f72968d8c307a5a3d60602c6b5894114a"
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"
],
"sha1": "20bad31f72968d8c307a5a3d60602c6b5894114a",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "91c97406a54f1ca1e418c32c8666a2539b8a969a"
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"
],
"sha1": "91c97406a54f1ca1e418c32c8666a2539b8a969a",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "4f90adfc3f859a4aad56e8810ae100644e86b57c"
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"
],
"sha1": "4f90adfc3f859a4aad56e8810ae100644e86b57c",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "d4f90635a15441145b273a63596906c13cec7a4d"
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"
],
"sha1": "d4f90635a15441145b273a63596906c13cec7a4d",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "d87de3fb45e666e22c194090822439c9e28cedc1"
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"
],
"sha1": "d87de3fb45e666e22c194090822439c9e28cedc1",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "98960ef0406ed2c901c165dde7e2b4622742b777"
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"
],
"sha1": "98960ef0406ed2c901c165dde7e2b4622742b777",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "3e472fca3fce7adf6d91185ea69bf51b6ace06fe"
2016-10-27 22:47:27 +03:00
}]