1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/go/rune-literals.json

917 lines
29 KiB
JSON
Raw Normal View History

2016-11-02 18:07:06 +03:00
[{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-rune-literals-setup-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
2016-12-02 00:03:52 +03:00
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
1,
1
],
"end": [
2016-12-02 00:03:52 +03:00
3,
1
2016-11-11 00:19:53 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'main' module"
}
]
},
2016-12-02 00:03:52 +03:00
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index e69de29..c9ecbf5 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -0,0 +1,2 @@",
"+package main",
"+"
],
"gitDir": "test/corpus/repos/go",
2017-01-10 01:21:36 +03:00
"shas": "747db897a06270aa19ea8682dc582e46677b713a..81887baada94ef3844814f42639348829486d4c2"
2016-12-02 00:03:52 +03:00
}
,{
"testCaseDescription": "go-rune-literals-insert-test",
"expectedResult": {
2016-12-07 23:41:28 +03:00
"changes": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'a' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''0'' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'b' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\''' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\u0000'' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\U01234567'' variable in the main module"
}
]
},
"errors": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
2017-01-06 01:08:28 +03:00
"summary": "Added 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 2, column 1 - line 10, column 2 in the main module"
2016-12-07 23:41:28 +03:00
}
]
}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index c9ecbf5..7ecf7d8 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,2 +1,10 @@",
" package main",
"-",
"+const (",
"+a = '0'",
"+b = '\\''",
"+c = '\\'",
"+c = '",
"+'",
"+c = '\\u0000'",
"+c = '\\U01234567'",
"+)"
],
"gitDir": "test/corpus/repos/go",
2017-01-10 01:21:36 +03:00
"shas": "81887baada94ef3844814f42639348829486d4c2..148f9ffc0bf51efd41f560c93eafe5c7507b1ccf"
2016-12-07 23:41:28 +03:00
}
,{
"testCaseDescription": "go-rune-literals-replacement-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
8
]
},
{
"start": [
3,
5
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the ''0'' rune_literal with the ''1'' rune_literal in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\u0011'' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\U01234568'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'b' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\''' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\u0000'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\U01234567'' variable in the main module"
}
]
},
"errors": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
2017-01-06 01:08:28 +03:00
"summary": "Added 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 2, column 1 - line 10, column 2 in the main module"
2016-12-07 23:41:28 +03:00
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
2017-01-06 01:08:28 +03:00
"summary": "Deleted 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 2, column 1 - line 10, column 2 in the main module"
2016-12-07 23:41:28 +03:00
}
]
}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index 7ecf7d8..cee94e2 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,10 +1,10 @@",
" package main",
" const (",
"-a = '0'",
"-b = '\\''",
"+a = '1'",
"+b = '",
"+''",
"+c = '\\u0011'",
" c = '\\'",
"-c = '",
"-'",
"-c = '\\u0000'",
"-c = '\\U01234567'",
"+c = '\\u0022'",
"+c = '\\U01234568'",
" )"
],
"gitDir": "test/corpus/repos/go",
2017-01-10 01:21:36 +03:00
"shas": "148f9ffc0bf51efd41f560c93eafe5c7507b1ccf..4f3c51b12590caa5727917c59e8d1f278a8caf0b"
2016-12-07 23:41:28 +03:00
}
,{
"testCaseDescription": "go-rune-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
8
]
},
{
"start": [
3,
5
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the ''1'' rune_literal with the ''0'' rune_literal in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'b' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\''' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\u0000'' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'c' variable in the main module"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the ''\\U01234567'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\u0011'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\U01234568'' variable in the main module"
}
]
},
"errors": {
"rune-literals.go": [
{
"span": {
2016-11-11 00:19:53 +03:00
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
2,
1
],
"end": [
2016-12-02 00:03:52 +03:00
10,
2
]
}
},
2017-01-06 01:08:28 +03:00
"summary": "Added 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 2, column 1 - line 10, column 2 in the main module"
2016-12-07 23:41:28 +03:00
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
2017-01-06 01:08:28 +03:00
"summary": "Deleted 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 2, column 1 - line 10, column 2 in the main module"
2016-11-02 18:07:06 +03:00
}
]
}
2016-11-02 18:07:06 +03:00
},
"filePaths": [
"rune-literals.go"
],
2016-12-02 00:03:52 +03:00
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index cee94e2..7ecf7d8 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,10 +1,10 @@",
" package main",
" const (",
"-a = '1'",
"-b = '",
"-''",
"-c = '\\u0011'",
"+a = '0'",
"+b = '\\''",
" c = '\\'",
"-c = '\\u0022'",
"-c = '\\U01234568'",
"+c = '",
"+'",
"+c = '\\u0000'",
"+c = '\\U01234567'",
" )"
],
"gitDir": "test/corpus/repos/go",
2017-01-10 01:21:36 +03:00
"shas": "4f3c51b12590caa5727917c59e8d1f278a8caf0b..4a1101ab82e3deed1b6aa0735ce012cd4256b639"
2016-12-02 00:03:52 +03:00
}
,{
"testCaseDescription": "go-rune-literals-delete-insert-test",
"expectedResult": {
2016-12-07 23:41:28 +03:00
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'a' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''0'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'b' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\''' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\u0000'' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'c' variable in the main module"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the ''\\U01234567'' variable in the main module"
}
]
},
2016-12-02 00:03:52 +03:00
"errors": {
2016-11-02 18:07:06 +03:00
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
2016-12-02 00:03:52 +03:00
2,
1
],
"end": [
2016-12-02 00:03:52 +03:00
10,
2
]
}
},
2017-01-06 01:08:28 +03:00
"summary": "Deleted 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 2, column 1 - line 10, column 2 in the main module"
}
]
2016-12-02 00:03:52 +03:00
}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index 7ecf7d8..c9ecbf5 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,10 +1,2 @@",
" package main",
"-const (",
"-a = '0'",
"-b = '\\''",
"-c = '\\'",
"-c = '",
"-'",
"-c = '\\u0000'",
"-c = '\\U01234567'",
"-)",
"+"
],
"gitDir": "test/corpus/repos/go",
2017-01-10 01:21:36 +03:00
"shas": "4a1101ab82e3deed1b6aa0735ce012cd4256b639..463c133f27ef7d631486a53822db9699c1833cb7"
2016-12-02 00:03:52 +03:00
}
,{
"testCaseDescription": "go-rune-literals-teardown-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
1
],
"end": [
2016-12-02 00:03:52 +03:00
3,
1
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'main' module"
2016-11-02 18:07:06 +03:00
}
]
2016-12-02 00:03:52 +03:00
},
"errors": {}
2016-11-02 18:07:06 +03:00
},
"filePaths": [
"rune-literals.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
2016-12-02 00:03:52 +03:00
"index c9ecbf5..e69de29 100644",
2016-11-11 00:19:53 +03:00
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
2016-12-02 00:03:52 +03:00
"@@ -1,2 +0,0 @@",
"-package main",
"-"
2016-11-11 00:19:53 +03:00
],
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-10 01:21:36 +03:00
"shas": "463c133f27ef7d631486a53822db9699c1833cb7..2141d3d0ce5959ff5dc451eef4b220a59f0ae5e3"
2016-11-02 18:07:06 +03:00
}]