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/rune-literals.json
2017-01-11 15:28:58 -08:00

647 lines
20 KiB
JSON

[{
"testCaseDescription": "go-rune-literals-setup-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
3,
1
]
}
},
"summary": "Added the 'main' module"
}
]
},
"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",
"shas": "d5f24adbbe5ff125bd4556844ca38a028a26c1d9..7a6df9c046d4979903eb9508aed8a1a39f958911"
}
,{
"testCaseDescription": "go-rune-literals-insert-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
8
]
}
},
"summary": "Added the 'a' var assignment in the main module"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Added the 'b' var assignment in the main module"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
13
]
}
},
"summary": "Added the 'c' var assignment in the main module"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
17
]
}
},
"summary": "Added the 'c' var assignment in the main module"
}
]
},
"errors": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"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"
}
]
}
},
"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",
"shas": "7a6df9c046d4979903eb9508aed8a1a39f958911..1dfef5cb6692306417c3c4b81016588a78d7a5b9"
}
,{
"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 a var assignment of the 'main' module"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
13
]
}
},
"summary": "Added the 'c' var assignment in the main module"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
17
]
}
},
"summary": "Added the 'c' var assignment in the main module"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'b' var assignment in the main module"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
13
]
}
},
"summary": "Deleted the 'c' var assignment in the main module"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
17
]
}
},
"summary": "Deleted the 'c' var assignment in the main module"
}
]
},
"errors": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"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"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"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"
}
]
}
},
"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",
"shas": "1dfef5cb6692306417c3c4b81016588a78d7a5b9..28d45aed576ddd125666b516869ea1490901296c"
}
,{
"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 a var assignment of the 'main' module"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Added the 'b' var assignment in the main module"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
13
]
}
},
"summary": "Added the 'c' var assignment in the main module"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
17
]
}
},
"summary": "Added the 'c' var assignment in the main module"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
13
]
}
},
"summary": "Deleted the 'c' var assignment in the main module"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
17
]
}
},
"summary": "Deleted the 'c' var assignment in the main module"
}
]
},
"errors": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"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"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"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"
}
]
}
},
"filePaths": [
"rune-literals.go"
],
"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",
"shas": "28d45aed576ddd125666b516869ea1490901296c..6c15bd80e744cb8143dbb9704f3161ed66ea723f"
}
,{
"testCaseDescription": "go-rune-literals-delete-insert-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
8
]
}
},
"summary": "Deleted the 'a' var assignment in the main module"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'b' var assignment in the main module"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
13
]
}
},
"summary": "Deleted the 'c' var assignment in the main module"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
17
]
}
},
"summary": "Deleted the 'c' var assignment in the main module"
}
]
},
"errors": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
10,
2
]
}
},
"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"
}
]
}
},
"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",
"shas": "6c15bd80e744cb8143dbb9704f3161ed66ea723f..a108688385b1639080aef82f4d8019d8fe4230b2"
}
,{
"testCaseDescription": "go-rune-literals-teardown-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
1
]
}
},
"summary": "Deleted the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index c9ecbf5..e69de29 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,2 +0,0 @@",
"-package main",
"-"
],
"gitDir": "test/corpus/repos/go",
"shas": "a108688385b1639080aef82f4d8019d8fe4230b2..76f08190bffba036fc899c8b7180778ed761c374"
}]