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/string-literals.json
2016-11-02 16:46:17 -04:00

461 lines
14 KiB
JSON

[{
"testCaseDescription": "go-string-literals-insert-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'b' variable"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "fdaa80263cd9142e552957807a70acfeeed3610e",
"gitDir": "test/corpus/repos/go",
"sha2": "a9fbc725b7552d3a38579c81523611e363eb58ff"
}
,{
"testCaseDescription": "go-string-literals-replacement-insert-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'b' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'b' variable"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "a9fbc725b7552d3a38579c81523611e363eb58ff",
"gitDir": "test/corpus/repos/go",
"sha2": "3f90a18e4a0db4d1a787abea2999fdf3e3dc861b"
}
,{
"testCaseDescription": "go-string-literals-delete-insert-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
4,
5
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the \"2\" string with the \"0\" string in the a variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
9
]
},
{
"start": [
5,
5
],
"end": [
5,
18
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"hello world\" string in the b variable of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "3f90a18e4a0db4d1a787abea2999fdf3e3dc861b",
"gitDir": "test/corpus/repos/go",
"sha2": "5275a59634a74e1b157d5e6e9232394748a499b3"
}
,{
"testCaseDescription": "go-string-literals-replacement-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
4,
5
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the \"0\" string with the \"2\" string in the a variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
18
]
},
{
"start": [
5,
5
],
"end": [
5,
9
]
}
]
},
"summary": "Replaced the \"hello world\" string with the \"hi\" string in the b variable of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "5275a59634a74e1b157d5e6e9232394748a499b3",
"gitDir": "test/corpus/repos/go",
"sha2": "bf3254d10195898833370d1a5d0e2b1263c1bc7a"
}
,{
"testCaseDescription": "go-string-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'b' variable"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'b' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'b' variable"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "bf3254d10195898833370d1a5d0e2b1263c1bc7a",
"gitDir": "test/corpus/repos/go",
"sha2": "0b066e97c1ec9afffbac39389cac4dcf3e9d2902"
}
,{
"testCaseDescription": "go-string-literals-delete-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'b' variable"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "0b066e97c1ec9afffbac39389cac4dcf3e9d2902",
"gitDir": "test/corpus/repos/go",
"sha2": "8e21e76d554bd2ddd740c515461dec226289ac17"
}
,{
"testCaseDescription": "go-string-literals-delete-rest-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'b' variable"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"sha1": "8e21e76d554bd2ddd740c515461dec226289ac17",
"gitDir": "test/corpus/repos/go",
"sha2": "a31d612d7e54f769340c7a7d8211b6b420eaa80c"
}]