1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/go/if-statements.json

1139 lines
36 KiB
JSON
Raw Normal View History

2016-11-02 21:37:30 +03:00
[{
"testCaseDescription": "go-if-statements-insert-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
3,
1
2016-11-02 21:37:30 +03:00
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module with the 'main' module"
2016-11-02 21:37:30 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "07aae88de4bfa6f5dc1cf72e50b7a7ab3a8e826e",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "197035a86336059bb513405976a02b0e37058772"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"insert": {
"start": [
3,
4
],
"end": [
3,
7
]
}
},
"summary": "Added the 'x()' function call"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
4
]
}
},
"summary": "Added the 'b()' function call"
},
{
"span": {
"insert": {
"start": [
6,
4
],
"end": [
6,
5
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
6,
9
],
"end": [
6,
12
]
}
},
"summary": "Added the 'b()' function call"
},
{
"span": {
"insert": {
"start": [
6,
14
],
"end": [
6,
15
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
4
]
}
},
"summary": "Added the 'd()' function call"
},
{
"span": {
"insert": {
"start": [
9,
4
],
"end": [
9,
7
]
}
},
"summary": "Added the 'z()' function call"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
4
]
}
},
"summary": "Added the 'b()' function call"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
12,
4
]
}
},
"summary": "Added the 'c()' function call"
},
{
"span": {
"insert": {
"start": [
14,
4
],
"end": [
14,
7
]
}
},
"summary": "Added the 'a()' function call"
},
{
"span": {
"insert": {
"start": [
15,
1
],
"end": [
15,
4
]
}
},
"summary": "Added the 'b()' function call"
},
{
"span": {
"insert": {
"start": [
17,
4
],
"end": [
17,
5
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
17,
9
],
"end": [
17,
12
]
}
},
"summary": "Added the 'b()' function call"
},
{
"span": {
"insert": {
"start": [
17,
14
],
"end": [
17,
15
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
18,
1
],
"end": [
18,
4
]
}
},
"summary": "Added the 'd()' function call"
},
{
"span": {
"insert": {
"start": [
20,
4
],
"end": [
20,
7
]
}
},
"summary": "Added the 'a()' function call"
},
{
"span": {
"insert": {
"start": [
21,
1
],
"end": [
21,
4
]
}
},
"summary": "Added the 'b()' function call"
},
{
"span": {
"insert": {
"start": [
23,
1
],
"end": [
23,
4
]
}
},
"summary": "Added the 'c()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "197035a86336059bb513405976a02b0e37058772",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "20646c5133170d63be852fef462cd3274da71f32"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-delete-insert-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
4
],
"end": [
3,
5
]
},
{
"start": [
3,
4
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the a() function call"
},
{
"span": {
"replace": [
{
"start": [
6,
4
],
"end": [
6,
5
]
},
{
"start": [
6,
4
],
"end": [
6,
5
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
9,
4
],
"end": [
9,
5
]
},
{
"start": [
9,
4
],
"end": [
9,
5
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'a' identifier in the a() function call"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "20646c5133170d63be852fef462cd3274da71f32",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "5daa2e11c89f6c2bee5210a65b38dead495372a9"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-replacement-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
4
],
"end": [
3,
5
]
},
{
"start": [
3,
4
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the x() function call"
},
{
"span": {
"replace": [
{
"start": [
6,
4
],
"end": [
6,
5
]
},
{
"start": [
6,
4
],
"end": [
6,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'y' identifier"
},
{
"span": {
"replace": [
{
"start": [
9,
4
],
"end": [
9,
5
]
},
{
"start": [
9,
4
],
"end": [
9,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'z' identifier in the z() function call"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "5daa2e11c89f6c2bee5210a65b38dead495372a9",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "7e36f0dcbe01c32b2e447ee115fd83b5b9b58759"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'x()' function call"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
4
]
}
},
"summary": "Deleted the 'b()' function call"
},
{
"span": {
"delete": {
"start": [
6,
4
],
"end": [
6,
5
]
}
},
"summary": "Deleted the 'y' identifier"
},
{
"span": {
"delete": {
"start": [
6,
9
],
"end": [
6,
12
]
}
},
"summary": "Deleted the 'b()' function call"
},
{
"span": {
"delete": {
"start": [
6,
14
],
"end": [
6,
15
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
4
]
}
},
"summary": "Deleted the 'd()' function call"
},
{
"span": {
"delete": {
"start": [
9,
4
],
"end": [
9,
7
]
}
},
"summary": "Deleted the 'z()' function call"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
4
]
}
},
"summary": "Deleted the 'b()' function call"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
12,
4
]
}
},
"summary": "Deleted the 'c()' function call"
},
{
"span": {
"delete": {
"start": [
14,
4
],
"end": [
14,
7
]
}
},
"summary": "Deleted the 'a()' function call"
},
{
"span": {
"delete": {
"start": [
15,
1
],
"end": [
15,
4
]
}
},
"summary": "Deleted the 'b()' function call"
},
{
"span": {
"delete": {
"start": [
17,
4
],
"end": [
17,
5
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
17,
9
],
"end": [
17,
12
]
}
},
"summary": "Deleted the 'b()' function call"
},
{
"span": {
"delete": {
"start": [
17,
14
],
"end": [
17,
15
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
18,
1
],
"end": [
18,
4
]
}
},
"summary": "Deleted the 'd()' function call"
},
{
"span": {
"delete": {
"start": [
20,
4
],
"end": [
20,
7
]
}
},
"summary": "Deleted the 'a()' function call"
},
{
"span": {
"delete": {
"start": [
21,
1
],
"end": [
21,
4
]
}
},
"summary": "Deleted the 'b()' function call"
},
{
"span": {
"delete": {
"start": [
23,
1
],
"end": [
23,
4
]
}
},
"summary": "Deleted the 'c()' function call"
},
{
"span": {
"insert": {
"start": [
14,
4
],
"end": [
14,
7
]
}
},
"summary": "Added the 'x()' function call"
},
{
"span": {
"insert": {
"start": [
15,
1
],
"end": [
15,
4
]
}
},
"summary": "Added the 'b()' function call"
},
{
"span": {
"insert": {
"start": [
17,
4
],
"end": [
17,
5
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
17,
9
],
"end": [
17,
12
]
}
},
"summary": "Added the 'b()' function call"
},
{
"span": {
"insert": {
"start": [
17,
14
],
"end": [
17,
15
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
18,
1
],
"end": [
18,
4
]
}
},
"summary": "Added the 'd()' function call"
},
{
"span": {
"insert": {
"start": [
20,
4
],
"end": [
20,
7
]
}
},
"summary": "Added the 'z()' function call"
},
{
"span": {
"insert": {
"start": [
21,
1
],
"end": [
21,
4
]
}
},
"summary": "Added the 'b()' function call"
},
{
"span": {
"insert": {
"start": [
23,
1
],
"end": [
23,
4
]
}
},
"summary": "Added the 'c()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "7e36f0dcbe01c32b2e447ee115fd83b5b9b58759",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "d34771c376dcea72277e3449c62e1bfae5f3963e"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-delete-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'a()' function call"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
4
]
}
},
"summary": "Deleted the 'b()' function call"
},
{
"span": {
"delete": {
"start": [
6,
4
],
"end": [
6,
5
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
6,
9
],
"end": [
6,
12
]
}
},
"summary": "Deleted the 'b()' function call"
},
{
"span": {
"delete": {
"start": [
6,
14
],
"end": [
6,
15
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
4
]
}
},
"summary": "Deleted the 'd()' function call"
},
{
"span": {
"delete": {
"start": [
9,
4
],
"end": [
9,
7
]
}
},
"summary": "Deleted the 'a()' function call"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
4
]
}
},
"summary": "Deleted the 'b()' function call"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
12,
4
]
}
},
"summary": "Deleted the 'c()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "d34771c376dcea72277e3449c62e1bfae5f3963e",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "d0807970ece6bef4b18afe4ea5cef3291689064d"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-delete-rest-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
3,
1
2016-11-02 21:37:30 +03:00
]
}
]
},
"summary": "Replaced the 'main' module with the 'main' module"
2016-11-02 21:37:30 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "d0807970ece6bef4b18afe4ea5cef3291689064d",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "7986cb447aab8da255aeff9cf756da65e16b122e"
2016-11-02 21:37:30 +03:00
}]