1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/go/send-statements.json

522 lines
16 KiB
JSON
Raw Normal View History

2016-11-02 05:05:43 +03:00
[{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-send-statements-insert-test",
2016-11-02 05:05:43 +03:00
"expectedResult": {
2016-11-02 21:37:30 +03:00
"changes": {
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 05:05:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
2016-11-02 05:05:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added 'foo' identifier"
},
2016-11-02 05:05:43 +03:00
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 05:05:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
9
2016-11-02 05:05:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added '5'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index e69de29..9df974c 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -0,0 +1 @@",
"+foo <- 5"
],
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-15 01:47:04 +03:00
"shas": "57b62c1efdf639f263a9ac8280f86f6fdb89ff4c..d7fef5433295af752cc5df645c56f9c66814ac40"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-send-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
2016-11-11 00:19:53 +03:00
"insert": {
"start": [
1,
1
],
"end": [
1,
4
]
}
2016-11-02 05:05:43 +03:00
},
2016-11-11 00:19:53 +03:00
"summary": "Added 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"end": [
1,
9
]
}
},
"summary": "Added '6'"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Added 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
2,
8
],
"end": [
2,
9
]
}
},
"summary": "Added '5'"
2016-11-02 05:05:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 05:05:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"send-statements.go"
2016-11-02 05:05:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index 9df974c..de76cee 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1 +1,3 @@",
"+bar <- 6",
"+foo <- 5",
" foo <- 5"
],
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-15 01:47:04 +03:00
"shas": "d7fef5433295af752cc5df645c56f9c66814ac40..825c39e5e90905cbb41d2e57f781b3d01153f8b7"
2016-11-02 05:05:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-send-statements-delete-insert-test",
2016-11-02 05:05:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
1
2016-11-02 05:05:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
2016-11-02 05:05:43 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
1
2016-11-02 05:05:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
2016-11-02 05:05:43 +03:00
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced the 'bar' identifier with the 'foo' identifier"
2016-11-02 05:05:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 05:05:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
9
2016-11-02 05:05:43 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 05:05:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
9
2016-11-02 05:05:43 +03:00
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced '6' with '5'"
2016-11-02 05:05:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"send-statements.go"
2016-11-02 05:05:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index de76cee..d487575 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,3 +1,3 @@",
"-bar <- 6",
"+foo <- 5",
" foo <- 5",
" foo <- 5"
],
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-15 01:47:04 +03:00
"shas": "825c39e5e90905cbb41d2e57f781b3d01153f8b7..e3ea750d1c6cd85bf9082b95a841ca5032db7a83"
2016-11-02 05:05:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-send-statements-replacement-test",
2016-11-02 05:05:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
1
2016-11-02 05:05:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
2016-11-02 05:05:43 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
1
2016-11-02 05:05:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
2016-11-02 05:05:43 +03:00
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced the 'foo' identifier with the 'bar' identifier"
2016-11-02 05:05:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 05:05:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
9
2016-11-02 05:05:43 +03:00
]
},
{
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
2016-11-02 05:05:43 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
9
2016-11-02 05:05:43 +03:00
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced '5' with '6'"
2016-11-02 05:05:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"send-statements.go"
2016-11-02 05:05:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index d487575..de76cee 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,3 +1,3 @@",
"-foo <- 5",
"+bar <- 6",
" foo <- 5",
" foo <- 5"
],
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-15 01:47:04 +03:00
"shas": "e3ea750d1c6cd85bf9082b95a841ca5032db7a83..159149194d53d3d5d556d31a683cc900566aeae7"
2016-11-02 05:05:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-send-statements-delete-replacement-test",
2016-11-02 05:05:43 +03:00
"expectedResult": {
2016-11-02 21:37:30 +03:00
"changes": {
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 05:05:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
2016-11-02 05:05:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
9
]
}
},
"summary": "Deleted '6'"
2016-11-02 05:05:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 05:05:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
4
]
}
},
"summary": "Deleted 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
8
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
9
2016-11-02 05:05:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted '5'"
2016-11-02 05:05:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 05:05:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
4
2016-11-02 05:05:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
8
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
9
]
}
},
"summary": "Added '6'"
2016-11-02 05:05:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 05:05:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"send-statements.go"
2016-11-02 05:05:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index de76cee..65a1c23 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,3 +1,2 @@",
"-bar <- 6",
"-foo <- 5",
" foo <- 5",
"+bar <- 6"
],
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-15 01:47:04 +03:00
"shas": "159149194d53d3d5d556d31a683cc900566aeae7..594f8873bfcaed62b2e506030a80774dcea7f9d7"
2016-11-02 05:05:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-send-statements-delete-test",
2016-11-02 05:05:43 +03:00
"expectedResult": {
2016-11-02 21:37:30 +03:00
"changes": {
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
2016-11-11 00:19:53 +03:00
"delete": {
"start": [
1,
1
],
"end": [
1,
4
]
}
2016-11-02 05:05:43 +03:00
},
2016-11-11 00:19:53 +03:00
"summary": "Deleted 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
9
]
}
},
"summary": "Deleted '5'"
2016-11-02 05:05:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 05:05:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"send-statements.go"
2016-11-02 05:05:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index 65a1c23..bab29cb 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,2 +1 @@",
"-foo <- 5",
" bar <- 6"
],
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-15 01:47:04 +03:00
"shas": "594f8873bfcaed62b2e506030a80774dcea7f9d7..a7a65c6a722ca1aa8762502af5afd1f8bbfe0a99"
2016-11-02 05:05:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-send-statements-delete-rest-test",
2016-11-02 05:05:43 +03:00
"expectedResult": {
2016-11-02 21:37:30 +03:00
"changes": {
"send-statements.go": [
2016-11-02 05:05:43 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 05:05:43 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
]
}
},
"summary": "Deleted 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
8
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
9
2016-11-02 05:05:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted '6'"
2016-11-02 05:05:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 05:05:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"send-statements.go"
2016-11-02 05:05:43 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index bab29cb..e69de29 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1 +0,0 @@",
"-bar <- 6"
],
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-15 01:47:04 +03:00
"shas": "a7a65c6a722ca1aa8762502af5afd1f8bbfe0a99..5fa84e4afaeec27b7e31e3760e49e4826835f986"
2016-11-02 05:05:43 +03:00
}]