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-10-31 13:14:58 -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": "b9fb19c9f7adfdc2023fee9a491ce6e2c33dde38",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e23e57f6bf1632e21b4aa657ed81a4f1a7d7b5f9"
}
,{
"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": "e23e57f6bf1632e21b4aa657ed81a4f1a7d7b5f9",
"gitDir": "test/corpus/repos/ruby",
"sha2": "c676b26bca54ecdb9d1e8862df087ad2fb977f90"
}
,{
"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": "c676b26bca54ecdb9d1e8862df087ad2fb977f90",
"gitDir": "test/corpus/repos/ruby",
"sha2": "38c81bbcb915f72f6aae3e8afbab53f27fe49577"
}
,{
"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": "38c81bbcb915f72f6aae3e8afbab53f27fe49577",
"gitDir": "test/corpus/repos/ruby",
"sha2": "bd4559c193fc9642e6278de3029c8c9efceb7036"
}
,{
"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": "bd4559c193fc9642e6278de3029c8c9efceb7036",
"gitDir": "test/corpus/repos/ruby",
"sha2": "976de5ad38037869037f7f1ab535f202b90e2b3a"
}
,{
"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": "976de5ad38037869037f7f1ab535f202b90e2b3a",
"gitDir": "test/corpus/repos/ruby",
"sha2": "af487c825978ea1f6132e8f5f04295654dedaff2"
}
,{
"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": "af487c825978ea1f6132e8f5f04295654dedaff2",
"gitDir": "test/corpus/repos/ruby",
"sha2": "80fee7995802b67eb19be68ba726cac3b03f1457"
}]