1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +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:14:58 +03:00
"sha1": "b9fb19c9f7adfdc2023fee9a491ce6e2c33dde38",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:14:58 +03:00
"sha2": "e23e57f6bf1632e21b4aa657ed81a4f1a7d7b5f9"
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:14:58 +03:00
"sha1": "e23e57f6bf1632e21b4aa657ed81a4f1a7d7b5f9",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:14:58 +03:00
"sha2": "c676b26bca54ecdb9d1e8862df087ad2fb977f90"
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:14:58 +03:00
"sha1": "c676b26bca54ecdb9d1e8862df087ad2fb977f90",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:14:58 +03:00
"sha2": "38c81bbcb915f72f6aae3e8afbab53f27fe49577"
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:14:58 +03:00
"sha1": "38c81bbcb915f72f6aae3e8afbab53f27fe49577",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:14:58 +03:00
"sha2": "bd4559c193fc9642e6278de3029c8c9efceb7036"
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:14:58 +03:00
"sha1": "bd4559c193fc9642e6278de3029c8c9efceb7036",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:14:58 +03:00
"sha2": "976de5ad38037869037f7f1ab535f202b90e2b3a"
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:14:58 +03:00
"sha1": "976de5ad38037869037f7f1ab535f202b90e2b3a",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:14:58 +03:00
"sha2": "af487c825978ea1f6132e8f5f04295654dedaff2"
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:14:58 +03:00
"sha1": "af487c825978ea1f6132e8f5f04295654dedaff2",
2016-10-27 22:47:27 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-10-31 23:14:58 +03:00
"sha2": "80fee7995802b67eb19be68ba726cac3b03f1457"
2016-10-27 22:47:27 +03:00
}]