mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
907 lines
30 KiB
JSON
907 lines
30 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 e69de29b..c9ecbf5e 100644",
|
|
"--- a/rune-literals.go",
|
|
"+++ b/rune-literals.go",
|
|
"@@ -0,0 +1,2 @@",
|
|
"+package main",
|
|
"+"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "49a2b39332542588e331bc72b18f8c470ef19499..19e4cc923f71bdcd06aacd68022397a63e939cd7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
3
|
|
],
|
|
"end": [
|
|
3,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' var assignment in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' var assignment in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
3
|
|
],
|
|
"end": [
|
|
5,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' var assignment in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
3
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'd' var assignment in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
3
|
|
],
|
|
"end": [
|
|
7,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'e' var assignment in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
3
|
|
],
|
|
"end": [
|
|
8,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f' identifier in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
7
|
|
],
|
|
"end": [
|
|
8,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the ''⌘' error in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
9
|
|
],
|
|
"end": [
|
|
8,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'jjjj' identifier in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
13
|
|
],
|
|
"end": [
|
|
9,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the ''\n' error in the main module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
|
"index c9ecbf5e..7d2b6610 100644",
|
|
"--- a/rune-literals.go",
|
|
"+++ b/rune-literals.go",
|
|
"@@ -1,2 +1,9 @@",
|
|
" package main",
|
|
"-",
|
|
"+const (",
|
|
"+ a = 'δ'",
|
|
"+ b = '⌘'",
|
|
"+ c = '⌘'",
|
|
"+ d = '⌘'",
|
|
"+ e = '⌘'",
|
|
"+ f = '⌘jjjj'",
|
|
"+)"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "19e4cc923f71bdcd06aacd68022397a63e939cd7..aef60bc1ec1041810cab24090430d36647e8781e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
7
|
|
],
|
|
"end": [
|
|
3,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
7
|
|
],
|
|
"end": [
|
|
3,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''δ'' rune literal with the ''©'' rune literal in the a var assignment of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
7
|
|
],
|
|
"end": [
|
|
4,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
7
|
|
],
|
|
"end": [
|
|
4,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the b var assignment of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
7
|
|
],
|
|
"end": [
|
|
5,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
7
|
|
],
|
|
"end": [
|
|
5,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the c var assignment of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
6,
|
|
7
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
6,
|
|
7
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the d var assignment of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
7,
|
|
7
|
|
],
|
|
"end": [
|
|
7,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
7,
|
|
7
|
|
],
|
|
"end": [
|
|
7,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the e var assignment of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
3
|
|
],
|
|
"end": [
|
|
8,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f' var assignment in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
3
|
|
],
|
|
"end": [
|
|
8,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f' identifier in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
7
|
|
],
|
|
"end": [
|
|
8,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the ''⌘' error in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
9
|
|
],
|
|
"end": [
|
|
8,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'jjjj' identifier in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
13
|
|
],
|
|
"end": [
|
|
9,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the ''\n' error in the main module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
|
"index 7d2b6610..346d5d96 100644",
|
|
"--- a/rune-literals.go",
|
|
"+++ b/rune-literals.go",
|
|
"@@ -1,9 +1,9 @@",
|
|
" package main",
|
|
" const (",
|
|
"- a = 'δ'",
|
|
"- b = '⌘'",
|
|
"- c = '⌘'",
|
|
"- d = '⌘'",
|
|
"- e = '⌘'",
|
|
"- f = '⌘jjjj'",
|
|
"+ a = '©'",
|
|
"+ b = '©'",
|
|
"+ c = '©'",
|
|
"+ d = '©'",
|
|
"+ e = '©'",
|
|
"+ f = '©'",
|
|
" )"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "aef60bc1ec1041810cab24090430d36647e8781e..d6aceced40132d6a1a1b51179236d283bbb9460c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
7
|
|
],
|
|
"end": [
|
|
3,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
7
|
|
],
|
|
"end": [
|
|
3,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''©'' rune literal with the ''δ'' rune literal in the a var assignment of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
7
|
|
],
|
|
"end": [
|
|
4,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
7
|
|
],
|
|
"end": [
|
|
4,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the b var assignment of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
7
|
|
],
|
|
"end": [
|
|
5,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
7
|
|
],
|
|
"end": [
|
|
5,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the c var assignment of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
6,
|
|
7
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
6,
|
|
7
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the d var assignment of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
7,
|
|
7
|
|
],
|
|
"end": [
|
|
7,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
7,
|
|
7
|
|
],
|
|
"end": [
|
|
7,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the e var assignment of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
3
|
|
],
|
|
"end": [
|
|
8,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f' identifier in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
7
|
|
],
|
|
"end": [
|
|
8,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the ''⌘' error in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
9
|
|
],
|
|
"end": [
|
|
8,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'jjjj' identifier in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
13
|
|
],
|
|
"end": [
|
|
9,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the ''\n' error in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
3
|
|
],
|
|
"end": [
|
|
8,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f' var assignment in the main module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
|
"index 346d5d96..7d2b6610 100644",
|
|
"--- a/rune-literals.go",
|
|
"+++ b/rune-literals.go",
|
|
"@@ -1,9 +1,9 @@",
|
|
" package main",
|
|
" const (",
|
|
"- a = '©'",
|
|
"- b = '©'",
|
|
"- c = '©'",
|
|
"- d = '©'",
|
|
"- e = '©'",
|
|
"- f = '©'",
|
|
"+ a = 'δ'",
|
|
"+ b = '⌘'",
|
|
"+ c = '⌘'",
|
|
"+ d = '⌘'",
|
|
"+ e = '⌘'",
|
|
"+ f = '⌘jjjj'",
|
|
" )"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "d6aceced40132d6a1a1b51179236d283bbb9460c..601bd024824d4a0d87355173e1c90ef7ebb612d4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
3
|
|
],
|
|
"end": [
|
|
3,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' var assignment in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' var assignment in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
3
|
|
],
|
|
"end": [
|
|
5,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' var assignment in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
3
|
|
],
|
|
"end": [
|
|
6,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'd' var assignment in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
3
|
|
],
|
|
"end": [
|
|
7,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'e' var assignment in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
3
|
|
],
|
|
"end": [
|
|
8,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f' identifier in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
7
|
|
],
|
|
"end": [
|
|
8,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the ''⌘' error in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
9
|
|
],
|
|
"end": [
|
|
8,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'jjjj' identifier in the main module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
13
|
|
],
|
|
"end": [
|
|
9,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the ''\n' error in the main module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"patch": [
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
|
"index 7d2b6610..c9ecbf5e 100644",
|
|
"--- a/rune-literals.go",
|
|
"+++ b/rune-literals.go",
|
|
"@@ -1,9 +1,2 @@",
|
|
" package main",
|
|
"-const (",
|
|
"- a = 'δ'",
|
|
"- b = '⌘'",
|
|
"- c = '⌘'",
|
|
"- d = '⌘'",
|
|
"- e = '⌘'",
|
|
"- f = '⌘jjjj'",
|
|
"-)",
|
|
"+"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "601bd024824d4a0d87355173e1c90ef7ebb612d4..eddd4dfed353cfe3dbcc128de6ec2cf5261254e4"
|
|
}
|
|
,{
|
|
"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 c9ecbf5e..e69de29b 100644",
|
|
"--- a/rune-literals.go",
|
|
"+++ b/rune-literals.go",
|
|
"@@ -1,2 +0,0 @@",
|
|
"-package main",
|
|
"-"
|
|
],
|
|
"gitDir": "test/corpus/repos/go",
|
|
"shas": "eddd4dfed353cfe3dbcc128de6ec2cf5261254e4..03178122dd15aa885cdb41437e13e912c2b91c96"
|
|
}]
|