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" : [
2016-11-02 22:25:50 +03:00
{
"span" : {
2016-12-02 00:03:52 +03:00
"insert" : {
2016-11-02 22:25:50 +03:00
"start" : [
2016-12-02 00:03:52 +03:00
1 ,
2016-11-02 22:25:50 +03:00
1
] ,
"end" : [
2016-12-02 00:03:52 +03:00
3 ,
2016-11-02 22:25:50 +03:00
1
2016-11-11 00:19:53 +03:00
]
}
} ,
2016-12-02 00:03:52 +03:00
"summary" : "Added the 'main' module"
2016-11-02 23:14:44 +03:00
}
]
} ,
2016-12-02 00:03:52 +03:00
"errors" : { }
} ,
"filePaths" : [
"rune-literals.go"
] ,
"patch" : [
"diff --git a/rune-literals.go b/rune-literals.go" ,
2017-01-12 02:28:58 +03:00
"index e69de29..c9ecbf5 100644" ,
2016-12-02 00:03:52 +03:00
"--- a/rune-literals.go" ,
"+++ b/rune-literals.go" ,
"@@ -0,0 +1,2 @@" ,
"+package main" ,
"+"
] ,
"gitDir" : "test/corpus/repos/go" ,
2017-01-12 02:28:58 +03:00
"shas" : "d5f24adbbe5ff125bd4556844ca38a028a26c1d9..7a6df9c046d4979903eb9508aed8a1a39f958911"
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" : [
2017-01-10 23:09:09 +03:00
3 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
3 ,
8
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Added the 'a' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"insert" : {
"start" : [
2017-01-10 23:09:09 +03:00
4 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
4 ,
9
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Added the 'b' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"insert" : {
"start" : [
2017-01-10 23:09:09 +03:00
8 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
8 ,
13
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Added the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"insert" : {
"start" : [
2017-01-10 23:09:09 +03:00
9 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
9 ,
17
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Added the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
}
]
} ,
"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" ,
2017-01-12 02:28:58 +03:00
"index c9ecbf5..7ecf7d8 100644" ,
2016-12-07 23:41:28 +03:00
"--- 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-12 02:28:58 +03:00
"shas" : "7a6df9c046d4979903eb9508aed8a1a39f958911..1dfef5cb6692306417c3c4b81016588a78d7a5b9"
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
]
}
]
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Replaced the ''0'' rune_literal with the ''1'' rune_literal in the a var assignment of the 'main' module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"insert" : {
"start" : [
2017-01-10 23:09:09 +03:00
6 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
6 ,
13
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Added the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"insert" : {
"start" : [
2017-01-10 23:09:09 +03:00
9 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
9 ,
17
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Added the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"delete" : {
"start" : [
2017-01-10 23:09:09 +03:00
4 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
4 ,
9
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Deleted the 'b' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"delete" : {
"start" : [
2017-01-10 23:09:09 +03:00
8 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
8 ,
13
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Deleted the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"delete" : {
"start" : [
2017-01-10 23:09:09 +03:00
9 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
9 ,
17
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Deleted the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
}
]
} ,
"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" ,
2017-01-12 02:28:58 +03:00
"index 7ecf7d8..cee94e2 100644" ,
2016-12-07 23:41:28 +03:00
"--- 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-12 02:28:58 +03:00
"shas" : "1dfef5cb6692306417c3c4b81016588a78d7a5b9..28d45aed576ddd125666b516869ea1490901296c"
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
]
}
]
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Replaced the ''1'' rune_literal with the ''0'' rune_literal in the a var assignment of the 'main' module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"insert" : {
"start" : [
2017-01-10 23:09:09 +03:00
4 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
4 ,
9
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Added the 'b' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"insert" : {
"start" : [
2017-01-10 23:09:09 +03:00
8 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
8 ,
13
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Added the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"insert" : {
"start" : [
2017-01-10 23:09:09 +03:00
9 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
9 ,
17
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Added the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"delete" : {
"start" : [
2017-01-10 23:09:09 +03:00
6 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
6 ,
13
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Deleted the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"delete" : {
"start" : [
2017-01-10 23:09:09 +03:00
9 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
9 ,
17
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Deleted the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
}
]
} ,
2016-11-02 23:14:44 +03:00
"errors" : {
"rune-literals.go" : [
2016-11-02 22:25:50 +03:00
{
"span" : {
2016-11-11 00:19:53 +03:00
"insert" : {
2016-11-02 22:25:50 +03:00
"start" : [
2016-12-02 00:03:52 +03:00
2 ,
2016-11-02 22:25:50 +03:00
1
] ,
"end" : [
2016-12-02 00:03:52 +03:00
10 ,
2016-11-02 22:25:50 +03:00
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 23:14:44 +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" ,
2017-01-12 02:28:58 +03:00
"index cee94e2..7ecf7d8 100644" ,
2016-12-02 00:03:52 +03:00
"--- 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-12 02:28:58 +03:00
"shas" : "28d45aed576ddd125666b516869ea1490901296c..6c15bd80e744cb8143dbb9704f3161ed66ea723f"
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" : [
2017-01-10 23:09:09 +03:00
3 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
3 ,
8
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Deleted the 'a' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"delete" : {
"start" : [
2017-01-10 23:09:09 +03:00
4 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
4 ,
9
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Deleted the 'b' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"delete" : {
"start" : [
2017-01-10 23:09:09 +03:00
8 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
8 ,
13
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Deleted the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
} ,
{
"span" : {
"delete" : {
"start" : [
2017-01-10 23:09:09 +03:00
9 ,
2016-12-07 23:41:28 +03:00
1
] ,
"end" : [
2017-01-10 23:09:09 +03:00
9 ,
17
2016-12-07 23:41:28 +03:00
]
}
} ,
2017-01-10 23:09:09 +03:00
"summary" : "Deleted the 'c' var assignment in the main module"
2016-12-07 23:41:28 +03:00
}
]
} ,
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 ,
2016-11-02 22:25:50 +03:00
1
] ,
"end" : [
2016-12-02 00:03:52 +03:00
10 ,
2016-11-02 22:25:50 +03:00
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-11-02 23:14:44 +03:00
}
]
2016-12-02 00:03:52 +03:00
}
} ,
"filePaths" : [
"rune-literals.go"
] ,
"patch" : [
"diff --git a/rune-literals.go b/rune-literals.go" ,
2017-01-12 02:28:58 +03:00
"index 7ecf7d8..c9ecbf5 100644" ,
2016-12-02 00:03:52 +03:00
"--- 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-12 02:28:58 +03:00
"shas" : "6c15bd80e744cb8143dbb9704f3161ed66ea723f..a108688385b1639080aef82f4d8019d8fe4230b2"
2016-12-02 00:03:52 +03:00
}
, {
"testCaseDescription" : "go-rune-literals-teardown-test" ,
"expectedResult" : {
"changes" : {
2016-11-02 23:14:44 +03:00
"rune-literals.go" : [
2016-11-02 22:25:50 +03:00
{
"span" : {
"delete" : {
"start" : [
2016-11-11 00:19:53 +03:00
1 ,
2016-11-02 22:25:50 +03:00
1
] ,
"end" : [
2016-12-02 00:03:52 +03:00
3 ,
1
2016-11-02 22:25:50 +03:00
]
}
} ,
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" ,
2017-01-12 02:28:58 +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-12 02:28:58 +03:00
"shas" : "a108688385b1639080aef82f4d8019d8fe4230b2..76f08190bffba036fc899c8b7180778ed761c374"
2016-11-02 18:07:06 +03:00
} ]