1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/unary-expressions.json
2016-11-10 15:36:44 -05:00

455 lines
14 KiB
JSON

[{
"testCaseDescription": "go-unary-expressions-insert-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
3,
1
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module with the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"sha1": "423c95c361986c8807246777d0d1f5dd0602c5d7",
"gitDir": "test/corpus/repos/go",
"sha2": "12de993f257bdb9907574b17ef26c69eea4cecaa"
}
,{
"testCaseDescription": "go-unary-expressions-replacement-insert-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"insert": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
7
]
}
},
"summary": "Added the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
5,
4
],
"end": [
5,
5
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
7
]
}
},
"summary": "Added the 'identifier()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"sha1": "12de993f257bdb9907574b17ef26c69eea4cecaa",
"gitDir": "test/corpus/repos/go",
"sha2": "11145f78213cf405aad0a5d1324d6b806d3f472a"
}
,{
"testCaseDescription": "go-unary-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"replace": [
{
"start": [
3,
4
],
"end": [
3,
5
]
},
{
"start": [
3,
4
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
2
],
"end": [
4,
5
]
},
{
"start": [
4,
2
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the identifier() function call"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"sha1": "11145f78213cf405aad0a5d1324d6b806d3f472a",
"gitDir": "test/corpus/repos/go",
"sha2": "fe320d2bd5724dc92c3702ebef1e3be53cf629d9"
}
,{
"testCaseDescription": "go-unary-expressions-replacement-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"replace": [
{
"start": [
3,
4
],
"end": [
3,
5
]
},
{
"start": [
3,
4
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
2
],
"end": [
4,
5
]
},
{
"start": [
4,
2
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the identifier() function call"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"sha1": "fe320d2bd5724dc92c3702ebef1e3be53cf629d9",
"gitDir": "test/corpus/repos/go",
"sha2": "f4b3902991f22998eca4acc15dc987b62176c418"
}
,{
"testCaseDescription": "go-unary-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"delete": {
"start": [
5,
4
],
"end": [
5,
5
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
7
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
5,
4
],
"end": [
5,
5
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
7
]
}
},
"summary": "Added the 'identifier()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"sha1": "f4b3902991f22998eca4acc15dc987b62176c418",
"gitDir": "test/corpus/repos/go",
"sha2": "3df238d0afc9c08d06ebe067685ec879aaab33a8"
}
,{
"testCaseDescription": "go-unary-expressions-delete-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'identifier()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"sha1": "3df238d0afc9c08d06ebe067685ec879aaab33a8",
"gitDir": "test/corpus/repos/go",
"sha2": "8d525b8c16c2b71695c639ccd70ee8a054da5f9f"
}
,{
"testCaseDescription": "go-unary-expressions-delete-rest-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
3,
1
]
}
]
},
"summary": "Replaced the 'main' module with the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"sha1": "8d525b8c16c2b71695c639ccd70ee8a054da5f9f",
"gitDir": "test/corpus/repos/go",
"sha2": "c084d45f7de68c3a9328f11b1ff483ad5260f06e"
}]