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/int-literals.json

515 lines
16 KiB
JSON

[{
"testCaseDescription": "go-int-literals-insert-test",
"expectedResult": {
"changes": {
"int-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'identifier' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'number' variable"
}
]
},
"errors": {}
},
"filePaths": [
"int-literals.go"
],
"sha1": "6424a5908884f4ab121493f496e600171f05b046",
"gitDir": "test/corpus/repos/go",
"sha2": "242fcd2aeedfaf053f32a9fb9f7a6abf4c762d00"
}
,{
"testCaseDescription": "go-int-literals-replacement-insert-test",
"expectedResult": {
"changes": {
"int-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'identifier' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'number' variable"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'identifier' variable"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'number' variable"
}
]
},
"errors": {}
},
"filePaths": [
"int-literals.go"
],
"sha1": "242fcd2aeedfaf053f32a9fb9f7a6abf4c762d00",
"gitDir": "test/corpus/repos/go",
"sha2": "673ad09b40901b7ae9845a5d57ddbf97771c346f"
}
,{
"testCaseDescription": "go-int-literals-delete-insert-test",
"expectedResult": {
"changes": {
"int-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
12
],
"end": [
4,
13
]
},
{
"start": [
4,
12
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced '5' with '2' in the identifier variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
6
]
},
{
"start": [
4,
5
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced '4' with '1' in the number variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
4,
19
],
"end": [
4,
20
]
},
{
"start": [
4,
19
],
"end": [
4,
20
]
}
]
},
"summary": "Replaced '6' with '3' in the number variable of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"int-literals.go"
],
"sha1": "673ad09b40901b7ae9845a5d57ddbf97771c346f",
"gitDir": "test/corpus/repos/go",
"sha2": "821037e8a03c8705944a159818e28720aa60d95f"
}
,{
"testCaseDescription": "go-int-literals-replacement-test",
"expectedResult": {
"changes": {
"int-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
12
],
"end": [
4,
13
]
},
{
"start": [
4,
12
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced '2' with '5' in the identifier variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
6
]
},
{
"start": [
4,
5
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced '1' with '4' in the number variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
4,
19
],
"end": [
4,
20
]
},
{
"start": [
4,
19
],
"end": [
4,
20
]
}
]
},
"summary": "Replaced '3' with '6' in the number variable of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"int-literals.go"
],
"sha1": "821037e8a03c8705944a159818e28720aa60d95f",
"gitDir": "test/corpus/repos/go",
"sha2": "bfb7079c71a8f052dd74abecc55c613f7109e48f"
}
,{
"testCaseDescription": "go-int-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"int-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'identifier' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'number' variable"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'identifier' variable"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'number' variable"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'identifier' variable"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'number' variable"
}
]
},
"errors": {}
},
"filePaths": [
"int-literals.go"
],
"sha1": "bfb7079c71a8f052dd74abecc55c613f7109e48f",
"gitDir": "test/corpus/repos/go",
"sha2": "fc506df761dd2e037acc551a353b81f41a139f69"
}
,{
"testCaseDescription": "go-int-literals-delete-test",
"expectedResult": {
"changes": {
"int-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'identifier' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'number' variable"
}
]
},
"errors": {}
},
"filePaths": [
"int-literals.go"
],
"sha1": "fc506df761dd2e037acc551a353b81f41a139f69",
"gitDir": "test/corpus/repos/go",
"sha2": "e779da1c85cbe503e6c08444c17eca9187cac021"
}
,{
"testCaseDescription": "go-int-literals-delete-rest-test",
"expectedResult": {
"changes": {
"int-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'identifier' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'number' variable"
}
]
},
"errors": {}
},
"filePaths": [
"int-literals.go"
],
"sha1": "e779da1c85cbe503e6c08444c17eca9187cac021",
"gitDir": "test/corpus/repos/go",
"sha2": "85e375f2e2edbb1e4841ac8add5278261a19a8a9"
}]