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/unary-expressions.json
2016-12-05 14:52:11 -08:00

599 lines
18 KiB
JSON

[{
"testCaseDescription": "go-unary-expressions-insert-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
2,
2
],
"end": [
2,
7
]
}
},
"summary": "Added the 'foo()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index e69de29..858c09a 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -0,0 +1,2 @@",
"+!<-a",
"+*foo()"
],
"gitDir": "test/corpus/repos/go",
"shas": "0c22b7aa63a02fe2ddea7a2e3531e1bf778729a1..a853d892401554051aac78581481f205834001a0"
}
,{
"testCaseDescription": "go-unary-expressions-replacement-insert-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
2,
2
],
"end": [
2,
7
]
}
},
"summary": "Added the 'bar()' function call"
},
{
"span": {
"insert": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
4,
2
],
"end": [
4,
7
]
}
},
"summary": "Added the 'foo()' function call"
},
{
"span": {
"insert": {
"start": [
5,
4
],
"end": [
5,
5
]
}
},
"summary": "Added the 'a' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index 858c09a..0b42f98 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -1,2 +1,6 @@",
"+!<-b",
"+*bar()",
"+!<-a",
"+*foo()",
" !<-a",
" *foo()"
],
"gitDir": "test/corpus/repos/go",
"shas": "a853d892401554051aac78581481f205834001a0..bad62bb53ba866eebb82de0daba4d2af96bada50"
}
,{
"testCaseDescription": "go-unary-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"replace": [
{
"start": [
1,
4
],
"end": [
1,
5
]
},
{
"start": [
1,
4
],
"end": [
1,
5
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
2,
2
],
"end": [
2,
5
]
},
{
"start": [
2,
2
],
"end": [
2,
5
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the foo() function call"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index 0b42f98..25afb46 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -1,5 +1,5 @@",
"-!<-b",
"-*bar()",
"+!<-a",
"+*foo()",
" !<-a",
" *foo()",
" !<-a"
],
"gitDir": "test/corpus/repos/go",
"shas": "bad62bb53ba866eebb82de0daba4d2af96bada50..b3d8517142703695ff4ae6bbbfdae7a8131d62e3"
}
,{
"testCaseDescription": "go-unary-expressions-replacement-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"replace": [
{
"start": [
1,
4
],
"end": [
1,
5
]
},
{
"start": [
1,
4
],
"end": [
1,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
2,
2
],
"end": [
2,
5
]
},
{
"start": [
2,
2
],
"end": [
2,
5
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the bar() function call"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index 25afb46..0b42f98 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -1,5 +1,5 @@",
"-!<-a",
"-*foo()",
"+!<-b",
"+*bar()",
" !<-a",
" *foo()",
" !<-a"
],
"gitDir": "test/corpus/repos/go",
"shas": "b3d8517142703695ff4ae6bbbfdae7a8131d62e3..851012d113a37b9c98e94b82cd1e32ebdc8be638"
}
,{
"testCaseDescription": "go-unary-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"delete": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
2,
2
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'bar()' function call"
},
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
4,
2
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'foo()' function call"
},
{
"span": {
"insert": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
4,
2
],
"end": [
4,
7
]
}
},
"summary": "Added the 'bar()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index 0b42f98..812fb68 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -1,6 +1,4 @@",
"-!<-b",
"-*bar()",
"-!<-a",
"-*foo()",
" !<-a",
" *foo()",
"+!<-b",
"+*bar()"
],
"gitDir": "test/corpus/repos/go",
"shas": "851012d113a37b9c98e94b82cd1e32ebdc8be638..163450da5968971b4c4d6ee24b6ffc76e87ff860"
}
,{
"testCaseDescription": "go-unary-expressions-delete-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
2,
2
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'foo()' function call"
},
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Deleted the 'b' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index 812fb68..6da661d 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -1,4 +1,2 @@",
"-!<-a",
"-*foo()",
" !<-b",
" *bar()"
],
"gitDir": "test/corpus/repos/go",
"shas": "163450da5968971b4c4d6ee24b6ffc76e87ff860..f47634134cc46cd539cef45bcf6090feb116ebb9"
}
,{
"testCaseDescription": "go-unary-expressions-delete-rest-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"delete": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
2,
2
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'bar()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index 6da661d..e69de29 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -1,2 +0,0 @@",
"-!<-b",
"-*bar()"
],
"gitDir": "test/corpus/repos/go",
"shas": "f47634134cc46cd539cef45bcf6090feb116ebb9..e560ba24e6b3318aeaaa38fbba2567add6762706"
}]