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/send-statements.json
2017-01-18 13:23:54 -05:00

335 lines
10 KiB
JSON

[{
"testCaseDescription": "go-send-statements-setup-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Added the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index e69de29b..79058077 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "04d62456867a5968c64e22fbc23684980d027819..d2805a4b9295b38d941ee86a2a97d83d9b1f5ee8"
}
,{
"testCaseDescription": "go-send-statements-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Added the 'foo <- 5' send statement in the main function of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index 79058077..5f327d16 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+foo <- 5",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "d2805a4b9295b38d941ee86a2a97d83d9b1f5ee8..1eba2126471324ff6f8b70054d9ddb7c75f0e948"
}
,{
"testCaseDescription": "go-send-statements-replacement-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
4
]
},
{
"start": [
4,
1
],
"end": [
4,
4
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the main function of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
9
]
},
{
"start": [
4,
8
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced '5' with '6' in the main function of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index 5f327d16..3829478b 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-foo <- 5",
"+bar <- 6",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "1eba2126471324ff6f8b70054d9ddb7c75f0e948..5b9af9353675d75a97961cd6f505babc16f8021f"
}
,{
"testCaseDescription": "go-send-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
4
]
},
{
"start": [
4,
1
],
"end": [
4,
4
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the main function of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
9
]
},
{
"start": [
4,
8
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced '6' with '5' in the main function of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index 3829478b..5f327d16 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-bar <- 6",
"+foo <- 5",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "5b9af9353675d75a97961cd6f505babc16f8021f..2519ff896b23a137b3ec5f7236846f036213c23b"
}
,{
"testCaseDescription": "go-send-statements-delete-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'foo <- 5' send statement in the main function of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index 5f327d16..79058077 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-foo <- 5",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "2519ff896b23a137b3ec5f7236846f036213c23b..ee804b1d581863fe0eeabb4aba2402f9d214ca85"
}
,{
"testCaseDescription": "go-send-statements-teardown-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Deleted the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"patch": [
"diff --git a/send-statements.go b/send-statements.go",
"index 79058077..e69de29b 100644",
"--- a/send-statements.go",
"+++ b/send-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "ee804b1d581863fe0eeabb4aba2402f9d214ca85..89ef87840060842ce3868a9e1c80ac3c61511c80"
}]