1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/go/send-statements.json
2016-11-21 15:47:41 -05:00

522 lines
16 KiB
JSON

[{
"testCaseDescription": "go-send-statements-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Added 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"end": [
1,
9
]
}
},
"summary": "Added '5'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"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"
],
"gitDir": "test/corpus/repos/go",
"shas": "da2d344996a3a9571b0679bbe74375a9f1d2f335..808c2d6d3e3511a01f845748af981c8ed4268904"
}
,{
"testCaseDescription": "go-send-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"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'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"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"
],
"gitDir": "test/corpus/repos/go",
"shas": "808c2d6d3e3511a01f845748af981c8ed4268904..4bceb66351b71b8cf825b61be4ac5e657a7a18c0"
}
,{
"testCaseDescription": "go-send-statements-delete-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
4
]
},
{
"start": [
1,
1
],
"end": [
1,
4
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'foo' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
8
],
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced '6' with '5'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"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"
],
"gitDir": "test/corpus/repos/go",
"shas": "4bceb66351b71b8cf825b61be4ac5e657a7a18c0..a728bb3638b7d310f1b36a99e31c75456c8d520a"
}
,{
"testCaseDescription": "go-send-statements-replacement-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
4
]
},
{
"start": [
1,
1
],
"end": [
1,
4
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'bar' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
8
],
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced '5' with '6'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"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"
],
"gitDir": "test/corpus/repos/go",
"shas": "a728bb3638b7d310f1b36a99e31c75456c8d520a..5c272060d3cbb60755aca5903b98258cb1ca9ef4"
}
,{
"testCaseDescription": "go-send-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Deleted 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
9
]
}
},
"summary": "Deleted '6'"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
2,
8
],
"end": [
2,
9
]
}
},
"summary": "Deleted '5'"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
4
]
}
},
"summary": "Added 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
2,
8
],
"end": [
2,
9
]
}
},
"summary": "Added '6'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"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"
],
"gitDir": "test/corpus/repos/go",
"shas": "5c272060d3cbb60755aca5903b98258cb1ca9ef4..e824a17e782bf13897ce68d4c648f609bdb18349"
}
,{
"testCaseDescription": "go-send-statements-delete-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Deleted 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
9
]
}
},
"summary": "Deleted '5'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"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"
],
"gitDir": "test/corpus/repos/go",
"shas": "e824a17e782bf13897ce68d4c648f609bdb18349..50363f7fa4b51159faa753dbb0d7b47e04a7380e"
}
,{
"testCaseDescription": "go-send-statements-delete-rest-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
4
]
}
},
"summary": "Deleted 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
9
]
}
},
"summary": "Deleted '6'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"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"
],
"gitDir": "test/corpus/repos/go",
"shas": "50363f7fa4b51159faa753dbb0d7b47e04a7380e..208df99b9ec72668b08e75bba16fcdfbef5d2645"
}]