From b27bf0e72c057480cc3ec9b75b5b1f4847a2a901 Mon Sep 17 00:00:00 2001 From: joshvera Date: Wed, 2 Nov 2016 11:07:06 -0400 Subject: [PATCH] add string literals --- test/corpus/diff-summaries/go/assignment.json | 28 +- .../go/call-expressions.go.json | 28 +- .../diff-summaries/go/const-declarations.json | 28 +- .../go/const-with-implicit-values.json | 28 +- .../diff-summaries/go/constructors.json | 28 +- .../diff-summaries/go/float-literals.json | 511 +++---------- .../diff-summaries/go/for-statements.json | 28 +- .../go/function-declarations.json | 28 +- .../diff-summaries/go/function-literal.json | 28 +- .../diff-summaries/go/imaginary-literals.json | 448 ++++++++++++ test/corpus/diff-summaries/go/imports.json | 28 +- .../go/indexing expressions.json | 28 +- .../corpus/diff-summaries/go/int-literal.json | 28 +- .../go/method-declarations.json | 28 +- .../diff-summaries/go/rune-literals.json | 685 ++++++++++++++++++ .../go/selector expressions.json | 28 +- .../diff-summaries/go/string-literals.json | 448 ++++++++++++ .../diff-summaries/go/switch-statements.json | 28 +- .../go/type-assertion-expression.json | 28 +- .../go/type-conversion-expression.json | 28 +- .../diff-summaries/go/type-declarations.json | 28 +- .../diff-summaries/go/unary-expressions.json | 28 +- .../diff-summaries/go/var-declarations.json | 28 +- test/corpus/generated/go.json | 5 + test/corpus/repos/go | 2 +- 25 files changed, 1972 insertions(+), 659 deletions(-) create mode 100644 test/corpus/diff-summaries/go/imaginary-literals.json create mode 100644 test/corpus/diff-summaries/go/rune-literals.json create mode 100644 test/corpus/diff-summaries/go/string-literals.json diff --git a/test/corpus/diff-summaries/go/assignment.json b/test/corpus/diff-summaries/go/assignment.json index 711a62b06..b06bd0b2b 100644 --- a/test/corpus/diff-summaries/go/assignment.json +++ b/test/corpus/diff-summaries/go/assignment.json @@ -25,9 +25,9 @@ "filePaths": [ "assignment.go" ], - "sha1": "40d1102e3a530342a160c83a3e1da3023eec6e98", + "sha1": "8f13696c49fad55aab85d6533dd781bf28a01fc7", "gitDir": "test/corpus/repos/go", - "sha2": "de41d20f75754203e4b157c737947217a3a2072b" + "sha2": "c5baea93a151dec938049d8f2c8fac40f245cfe0" } ,{ "testCaseDescription": "go-assignment-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "assignment.go" ], - "sha1": "de41d20f75754203e4b157c737947217a3a2072b", + "sha1": "c5baea93a151dec938049d8f2c8fac40f245cfe0", "gitDir": "test/corpus/repos/go", - "sha2": "ca474a6e616aa7f1a2b891d296c4c89a21b416c3" + "sha2": "264820627046276847b9c2a1929fb304e36b502a" } ,{ "testCaseDescription": "go-assignment-delete-insert-test", @@ -144,9 +144,9 @@ "filePaths": [ "assignment.go" ], - "sha1": "ca474a6e616aa7f1a2b891d296c4c89a21b416c3", + "sha1": "264820627046276847b9c2a1929fb304e36b502a", "gitDir": "test/corpus/repos/go", - "sha2": "bdb49c6287ac5b7ec792490edc7d9a3327e5fb87" + "sha2": "48d84b2947d60457ced4e1365cd5b89ca1cbd28c" } ,{ "testCaseDescription": "go-assignment-replacement-test", @@ -217,9 +217,9 @@ "filePaths": [ "assignment.go" ], - "sha1": "bdb49c6287ac5b7ec792490edc7d9a3327e5fb87", + "sha1": "48d84b2947d60457ced4e1365cd5b89ca1cbd28c", "gitDir": "test/corpus/repos/go", - "sha2": "f789b9cc423aa8d0c088490dfd83099c3d9bba00" + "sha2": "b577caf19aec29d5c0e80932856d018416fb0ec3" } ,{ "testCaseDescription": "go-assignment-delete-replacement-test", @@ -278,9 +278,9 @@ "filePaths": [ "assignment.go" ], - "sha1": "f789b9cc423aa8d0c088490dfd83099c3d9bba00", + "sha1": "b577caf19aec29d5c0e80932856d018416fb0ec3", "gitDir": "test/corpus/repos/go", - "sha2": "67480dafd044a992a1e1ab030740707eaab08338" + "sha2": "654375255efee9bf179cae84625b89bb8cf7b7a5" } ,{ "testCaseDescription": "go-assignment-delete-test", @@ -309,9 +309,9 @@ "filePaths": [ "assignment.go" ], - "sha1": "67480dafd044a992a1e1ab030740707eaab08338", + "sha1": "654375255efee9bf179cae84625b89bb8cf7b7a5", "gitDir": "test/corpus/repos/go", - "sha2": "7e684bfb56bcbf95b0f4992ca4c58f5d116c244b" + "sha2": "ef8633887476546d2a9a539dd1611b4c49accc36" } ,{ "testCaseDescription": "go-assignment-delete-rest-test", @@ -340,7 +340,7 @@ "filePaths": [ "assignment.go" ], - "sha1": "7e684bfb56bcbf95b0f4992ca4c58f5d116c244b", + "sha1": "ef8633887476546d2a9a539dd1611b4c49accc36", "gitDir": "test/corpus/repos/go", - "sha2": "0e2de7a46804918ba28978690342612a40e2ad24" + "sha2": "d24fbce25cc7b4c29a23412a643f825dd967a7c5" }] diff --git a/test/corpus/diff-summaries/go/call-expressions.go.json b/test/corpus/diff-summaries/go/call-expressions.go.json index 7330196e2..9ca7345f0 100644 --- a/test/corpus/diff-summaries/go/call-expressions.go.json +++ b/test/corpus/diff-summaries/go/call-expressions.go.json @@ -25,9 +25,9 @@ "filePaths": [ "call-expressions.go.go" ], - "sha1": "0e2de7a46804918ba28978690342612a40e2ad24", + "sha1": "d24fbce25cc7b4c29a23412a643f825dd967a7c5", "gitDir": "test/corpus/repos/go", - "sha2": "025bd4b2e2a2087a8c2dcfdb95b9f37ec868a6b5" + "sha2": "8d8438c9836d5955e005cffe28af47fb4342051d" } ,{ "testCaseDescription": "go-call-expressions.go-replacement-insert-test", @@ -68,9 +68,9 @@ "filePaths": [ "call-expressions.go.go" ], - "sha1": "025bd4b2e2a2087a8c2dcfdb95b9f37ec868a6b5", + "sha1": "8d8438c9836d5955e005cffe28af47fb4342051d", "gitDir": "test/corpus/repos/go", - "sha2": "364b6ad894167e85d8474e44e35968f932fc2556" + "sha2": "228471d5f566cf0b3c87b99e704a12fa1be60ab0" } ,{ "testCaseDescription": "go-call-expressions.go-delete-insert-test", @@ -111,9 +111,9 @@ "filePaths": [ "call-expressions.go.go" ], - "sha1": "364b6ad894167e85d8474e44e35968f932fc2556", + "sha1": "228471d5f566cf0b3c87b99e704a12fa1be60ab0", "gitDir": "test/corpus/repos/go", - "sha2": "f31e322eea43734a39f074fec78ac6a2acaacb5a" + "sha2": "004815c2d262bdaf54f95b7c32b6fc16da8b5c7f" } ,{ "testCaseDescription": "go-call-expressions.go-replacement-test", @@ -154,9 +154,9 @@ "filePaths": [ "call-expressions.go.go" ], - "sha1": "f31e322eea43734a39f074fec78ac6a2acaacb5a", + "sha1": "004815c2d262bdaf54f95b7c32b6fc16da8b5c7f", "gitDir": "test/corpus/repos/go", - "sha2": "541f4e7528d49f86458abaa9acd20004bbddc17d" + "sha2": "950471de976105c278d4ac384b5bd63be8939f01" } ,{ "testCaseDescription": "go-call-expressions.go-delete-replacement-test", @@ -215,9 +215,9 @@ "filePaths": [ "call-expressions.go.go" ], - "sha1": "541f4e7528d49f86458abaa9acd20004bbddc17d", + "sha1": "950471de976105c278d4ac384b5bd63be8939f01", "gitDir": "test/corpus/repos/go", - "sha2": "56ba420c1372c5b60dc51221b9d3b9da1a9bef22" + "sha2": "a1f8575adf9449112b24367568072bb7983f182c" } ,{ "testCaseDescription": "go-call-expressions.go-delete-test", @@ -258,9 +258,9 @@ "filePaths": [ "call-expressions.go.go" ], - "sha1": "56ba420c1372c5b60dc51221b9d3b9da1a9bef22", + "sha1": "a1f8575adf9449112b24367568072bb7983f182c", "gitDir": "test/corpus/repos/go", - "sha2": "8a9b862024f928895dab2a3fc5048ceda8c9da3f" + "sha2": "59264d47e6988d7bb16057d07a8e7a68ed833b74" } ,{ "testCaseDescription": "go-call-expressions.go-delete-rest-test", @@ -289,7 +289,7 @@ "filePaths": [ "call-expressions.go.go" ], - "sha1": "8a9b862024f928895dab2a3fc5048ceda8c9da3f", + "sha1": "59264d47e6988d7bb16057d07a8e7a68ed833b74", "gitDir": "test/corpus/repos/go", - "sha2": "392da796d4c36bcf9d233abd04e726798db3d073" + "sha2": "b8bae5c65a680232431ad8af160a9344913ff879" }] diff --git a/test/corpus/diff-summaries/go/const-declarations.json b/test/corpus/diff-summaries/go/const-declarations.json index 47b06b466..5c7c83d8e 100644 --- a/test/corpus/diff-summaries/go/const-declarations.json +++ b/test/corpus/diff-summaries/go/const-declarations.json @@ -25,9 +25,9 @@ "filePaths": [ "const-declarations.go" ], - "sha1": "4111df9883fafa83f6c1f6a96a54f6cab935f454", + "sha1": "18f2b685e29d85628a72a3d738da1c5c2cc9b4c2", "gitDir": "test/corpus/repos/go", - "sha2": "7e2c1b7c3084e4bf7bf94d6ea572a7639206695d" + "sha2": "0583b3a89dab67e91ee5bb4a26aae4933e5194ac" } ,{ "testCaseDescription": "go-const-declarations-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "const-declarations.go" ], - "sha1": "7e2c1b7c3084e4bf7bf94d6ea572a7639206695d", + "sha1": "0583b3a89dab67e91ee5bb4a26aae4933e5194ac", "gitDir": "test/corpus/repos/go", - "sha2": "8ec41e60f3860d325b4dff627932f0b7eafc608e" + "sha2": "e7032b55c1f171b2af0801b6ff7a863a4cdb1dd2" } ,{ "testCaseDescription": "go-const-declarations-delete-insert-test", @@ -213,9 +213,9 @@ "filePaths": [ "const-declarations.go" ], - "sha1": "8ec41e60f3860d325b4dff627932f0b7eafc608e", + "sha1": "e7032b55c1f171b2af0801b6ff7a863a4cdb1dd2", "gitDir": "test/corpus/repos/go", - "sha2": "2cdba911b73de07ff80e2640911ec3ef422b3929" + "sha2": "df5ca6308dedaec9cb93a78c740cdb63076747e4" } ,{ "testCaseDescription": "go-const-declarations-replacement-test", @@ -355,9 +355,9 @@ "filePaths": [ "const-declarations.go" ], - "sha1": "2cdba911b73de07ff80e2640911ec3ef422b3929", + "sha1": "df5ca6308dedaec9cb93a78c740cdb63076747e4", "gitDir": "test/corpus/repos/go", - "sha2": "65a40116a21b2379798e1df4ae26a844b58d25d5" + "sha2": "86f39269b39b7114e0d5e3df452978e1ce4e8f69" } ,{ "testCaseDescription": "go-const-declarations-delete-replacement-test", @@ -416,9 +416,9 @@ "filePaths": [ "const-declarations.go" ], - "sha1": "65a40116a21b2379798e1df4ae26a844b58d25d5", + "sha1": "86f39269b39b7114e0d5e3df452978e1ce4e8f69", "gitDir": "test/corpus/repos/go", - "sha2": "5cc684038de877a32e122dd48d8d7a236c6e4825" + "sha2": "00d37262754bf950b9d99c03eeeb264d0e700231" } ,{ "testCaseDescription": "go-const-declarations-delete-test", @@ -447,9 +447,9 @@ "filePaths": [ "const-declarations.go" ], - "sha1": "5cc684038de877a32e122dd48d8d7a236c6e4825", + "sha1": "00d37262754bf950b9d99c03eeeb264d0e700231", "gitDir": "test/corpus/repos/go", - "sha2": "ec1885afa5082f21e63a98723a6da75170bd1e87" + "sha2": "ffd54a25562d992f1152fd9fec5a1b75f49e5ddc" } ,{ "testCaseDescription": "go-const-declarations-delete-rest-test", @@ -478,7 +478,7 @@ "filePaths": [ "const-declarations.go" ], - "sha1": "ec1885afa5082f21e63a98723a6da75170bd1e87", + "sha1": "ffd54a25562d992f1152fd9fec5a1b75f49e5ddc", "gitDir": "test/corpus/repos/go", - "sha2": "ae4465fff2ae51c528e04a9fe9161b27c61a2fd8" + "sha2": "b64942610b3fa99fc90d5b2ffb76705d1ff4dbdd" }] diff --git a/test/corpus/diff-summaries/go/const-with-implicit-values.json b/test/corpus/diff-summaries/go/const-with-implicit-values.json index 661fea474..a39201f45 100644 --- a/test/corpus/diff-summaries/go/const-with-implicit-values.json +++ b/test/corpus/diff-summaries/go/const-with-implicit-values.json @@ -25,9 +25,9 @@ "filePaths": [ "const-with-implicit-values.go" ], - "sha1": "1b0ebbe74424d7c3ca73992c5dc99b3135092f0c", + "sha1": "06a1b7e9d94946d6c0fb7f950c8c19e6d7f7c5a1", "gitDir": "test/corpus/repos/go", - "sha2": "b550f4f2212de2cc77a76090a31b8336bb33e457" + "sha2": "7b3395e265a127d6f48d91cf8e768bfe34831404" } ,{ "testCaseDescription": "go-const-with-implicit-values-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "const-with-implicit-values.go" ], - "sha1": "b550f4f2212de2cc77a76090a31b8336bb33e457", + "sha1": "7b3395e265a127d6f48d91cf8e768bfe34831404", "gitDir": "test/corpus/repos/go", - "sha2": "5829d793f7419c8b7efeae7cba0c538db43a9369" + "sha2": "ec0c38a1ab7fd620167cb1d1da4495ee222a7ddd" } ,{ "testCaseDescription": "go-const-with-implicit-values-delete-insert-test", @@ -168,9 +168,9 @@ "filePaths": [ "const-with-implicit-values.go" ], - "sha1": "5829d793f7419c8b7efeae7cba0c538db43a9369", + "sha1": "ec0c38a1ab7fd620167cb1d1da4495ee222a7ddd", "gitDir": "test/corpus/repos/go", - "sha2": "d1d05a9c5f40b1f32a5f8a86d06d11957c41af27" + "sha2": "729c02e6f2aaa88c6818abe834038c32dea83dd6" } ,{ "testCaseDescription": "go-const-with-implicit-values-replacement-test", @@ -265,9 +265,9 @@ "filePaths": [ "const-with-implicit-values.go" ], - "sha1": "d1d05a9c5f40b1f32a5f8a86d06d11957c41af27", + "sha1": "729c02e6f2aaa88c6818abe834038c32dea83dd6", "gitDir": "test/corpus/repos/go", - "sha2": "79cf9e7940dec378863f50ef3ffd16d8c1cd138c" + "sha2": "cf26c467519a79c7bfc94c63e33fa226dd1b5533" } ,{ "testCaseDescription": "go-const-with-implicit-values-delete-replacement-test", @@ -326,9 +326,9 @@ "filePaths": [ "const-with-implicit-values.go" ], - "sha1": "79cf9e7940dec378863f50ef3ffd16d8c1cd138c", + "sha1": "cf26c467519a79c7bfc94c63e33fa226dd1b5533", "gitDir": "test/corpus/repos/go", - "sha2": "0af4de2150addb2bb852c12f8fa98a1da08774a8" + "sha2": "c83e4cd930c55aa41585a5feccfc3a9fa4bfed70" } ,{ "testCaseDescription": "go-const-with-implicit-values-delete-test", @@ -357,9 +357,9 @@ "filePaths": [ "const-with-implicit-values.go" ], - "sha1": "0af4de2150addb2bb852c12f8fa98a1da08774a8", + "sha1": "c83e4cd930c55aa41585a5feccfc3a9fa4bfed70", "gitDir": "test/corpus/repos/go", - "sha2": "c287f3afe3f18132c92b5f75650d25b9d0895b17" + "sha2": "cea427057ba534391967825a8f0c1e3b025439c5" } ,{ "testCaseDescription": "go-const-with-implicit-values-delete-rest-test", @@ -388,7 +388,7 @@ "filePaths": [ "const-with-implicit-values.go" ], - "sha1": "c287f3afe3f18132c92b5f75650d25b9d0895b17", + "sha1": "cea427057ba534391967825a8f0c1e3b025439c5", "gitDir": "test/corpus/repos/go", - "sha2": "fd23e7c00a55557c26aeeb7977e6230307c37186" + "sha2": "dd5066f2e8a0a5c3972bf21a5ca298aa21946e9f" }] diff --git a/test/corpus/diff-summaries/go/constructors.json b/test/corpus/diff-summaries/go/constructors.json index 2a9664173..3bb357ac7 100644 --- a/test/corpus/diff-summaries/go/constructors.json +++ b/test/corpus/diff-summaries/go/constructors.json @@ -37,9 +37,9 @@ "filePaths": [ "constructors.go" ], - "sha1": "fd23e7c00a55557c26aeeb7977e6230307c37186", + "sha1": "dd5066f2e8a0a5c3972bf21a5ca298aa21946e9f", "gitDir": "test/corpus/repos/go", - "sha2": "5827c20aa3f10e80193fdab4b8989148c80d0853" + "sha2": "e37d3d3ab61d4d5a3d1b110e21fdb84c8140629f" } ,{ "testCaseDescription": "go-constructors-replacement-insert-test", @@ -443,9 +443,9 @@ "filePaths": [ "constructors.go" ], - "sha1": "5827c20aa3f10e80193fdab4b8989148c80d0853", + "sha1": "e37d3d3ab61d4d5a3d1b110e21fdb84c8140629f", "gitDir": "test/corpus/repos/go", - "sha2": "66f0ddd1fa8a981b0102c5974c7e6f97285c3643" + "sha2": "abde4410f54f9c87b0fa6a383bb4d05ec36ab122" } ,{ "testCaseDescription": "go-constructors-delete-insert-test", @@ -648,9 +648,9 @@ "filePaths": [ "constructors.go" ], - "sha1": "66f0ddd1fa8a981b0102c5974c7e6f97285c3643", + "sha1": "abde4410f54f9c87b0fa6a383bb4d05ec36ab122", "gitDir": "test/corpus/repos/go", - "sha2": "9d27e948aafe5085b763d51192c49b427504f607" + "sha2": "c6bacd2809bc32672191d8779cc62afd848af6b6" } ,{ "testCaseDescription": "go-constructors-replacement-test", @@ -853,9 +853,9 @@ "filePaths": [ "constructors.go" ], - "sha1": "9d27e948aafe5085b763d51192c49b427504f607", + "sha1": "c6bacd2809bc32672191d8779cc62afd848af6b6", "gitDir": "test/corpus/repos/go", - "sha2": "cfefcf3daa73017d5cd04576874df15bfa3b9020" + "sha2": "9f629438e1f3719571bde71c408458b7499a6c13" } ,{ "testCaseDescription": "go-constructors-delete-replacement-test", @@ -1454,9 +1454,9 @@ "filePaths": [ "constructors.go" ], - "sha1": "cfefcf3daa73017d5cd04576874df15bfa3b9020", + "sha1": "9f629438e1f3719571bde71c408458b7499a6c13", "gitDir": "test/corpus/repos/go", - "sha2": "37af2f7ad65068c0c5c7773e48727561e39b948f" + "sha2": "f16353ea4ac1ba63f7a6fbf20cebe37b0795a5e3" } ,{ "testCaseDescription": "go-constructors-delete-test", @@ -1665,9 +1665,9 @@ "filePaths": [ "constructors.go" ], - "sha1": "37af2f7ad65068c0c5c7773e48727561e39b948f", + "sha1": "f16353ea4ac1ba63f7a6fbf20cebe37b0795a5e3", "gitDir": "test/corpus/repos/go", - "sha2": "5f1488fe6c0fa13e18490f4df5a70c8f5c4e3aad" + "sha2": "9ae2be3b8c3f28eae790254dfcd5418322a7d29e" } ,{ "testCaseDescription": "go-constructors-delete-rest-test", @@ -1708,7 +1708,7 @@ "filePaths": [ "constructors.go" ], - "sha1": "5f1488fe6c0fa13e18490f4df5a70c8f5c4e3aad", + "sha1": "9ae2be3b8c3f28eae790254dfcd5418322a7d29e", "gitDir": "test/corpus/repos/go", - "sha2": "9228b9ece2bcfaed3a353179363387396ab933ed" + "sha2": "28f9d0d23acbf260bc76bc1872d8f1ade5b63907" }] diff --git a/test/corpus/diff-summaries/go/float-literals.json b/test/corpus/diff-summaries/go/float-literals.json index cfc54a77c..0e157a9a7 100644 --- a/test/corpus/diff-summaries/go/float-literals.json +++ b/test/corpus/diff-summaries/go/float-literals.json @@ -5,153 +5,30 @@ "float-literals.go": [ { "span": { - "insert": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 3 - ] - } + "replace": [ + { + "start": [ + 1, + 1 + ], + "end": [ + 1, + 13 + ] + }, + { + "start": [ + 1, + 1 + ], + "end": [ + 1, + 13 + ] + } + ] }, - "summary": "Added the 'f1' identifier" - }, - { - "span": { - "insert": { - "start": [ - 3, - 6 - ], - "end": [ - 3, - 9 - ] - } - }, - "summary": "Added the '1.5' float_literal" - }, - { - "span": { - "insert": { - "start": [ - 4, - 2 - ], - "end": [ - 4, - 4 - ] - } - }, - "summary": "Added the 'f2' identifier" - }, - { - "span": { - "insert": { - "start": [ - 4, - 7 - ], - "end": [ - 4, - 14 - ] - } - }, - "summary": "Added the '1.5e100' float_literal" - }, - { - "span": { - "insert": { - "start": [ - 5, - 2 - ], - "end": [ - 5, - 4 - ] - } - }, - "summary": "Added the 'f3' identifier" - }, - { - "span": { - "insert": { - "start": [ - 5, - 7 - ], - "end": [ - 5, - 14 - ] - } - }, - "summary": "Added the '1.5e+50' float_literal" - }, - { - "span": { - "insert": { - "start": [ - 6, - 2 - ], - "end": [ - 6, - 4 - ] - } - }, - "summary": "Added the 'f4' identifier" - }, - { - "span": { - "insert": { - "start": [ - 6, - 7 - ], - "end": [ - 6, - 13 - ] - } - }, - "summary": "Added the '1.5e-5' float_literal" - }, - { - "span": { - "insert": { - "start": [ - 7, - 2 - ], - "end": [ - 7, - 4 - ] - } - }, - "summary": "Added the 'f5' identifier" - }, - { - "span": { - "insert": { - "start": [ - 7, - 7 - ], - "end": [ - 7, - 13 - ] - } - }, - "summary": "Added the '.5e-50' float_literal" + "summary": "Replaced the 'main' module statement with the 'main' module statement" } ] }, @@ -160,9 +37,9 @@ "filePaths": [ "float-literals.go" ], - "sha1": "43145773a45c783b422170627a42548a2096bd13", + "sha1": "a2b011eb43cb7387b0c13f0af9c25357f0a815ea", "gitDir": "test/corpus/repos/go", - "sha2": "52d5de93f3b350f6d142cecf183c4db78bf1456d" + "sha2": "503aa15c7164aa0d7ef5bc568222d2303caa0211" } ,{ "testCaseDescription": "go-float-literals-replacement-insert-test", @@ -321,157 +198,7 @@ }, { "span": { - "delete": { - "start": [ - 3, - 1 - ], - "end": [ - 3, - 3 - ] - } - }, - "summary": "Deleted the 'f1' identifier" - }, - { - "span": { - "delete": { - "start": [ - 3, - 6 - ], - "end": [ - 3, - 9 - ] - } - }, - "summary": "Deleted the '1.5' float_literal" - }, - { - "span": { - "delete": { - "start": [ - 4, - 2 - ], - "end": [ - 4, - 4 - ] - } - }, - "summary": "Deleted the 'f2' identifier" - }, - { - "span": { - "delete": { - "start": [ - 4, - 7 - ], - "end": [ - 4, - 14 - ] - } - }, - "summary": "Deleted the '1.5e100' float_literal" - }, - { - "span": { - "delete": { - "start": [ - 5, - 2 - ], - "end": [ - 5, - 4 - ] - } - }, - "summary": "Deleted the 'f3' identifier" - }, - { - "span": { - "delete": { - "start": [ - 5, - 7 - ], - "end": [ - 5, - 14 - ] - } - }, - "summary": "Deleted the '1.5e+50' float_literal" - }, - { - "span": { - "delete": { - "start": [ - 6, - 2 - ], - "end": [ - 6, - 4 - ] - } - }, - "summary": "Deleted the 'f4' identifier" - }, - { - "span": { - "delete": { - "start": [ - 6, - 7 - ], - "end": [ - 6, - 13 - ] - } - }, - "summary": "Deleted the '1.5e-5' float_literal" - }, - { - "span": { - "delete": { - "start": [ - 7, - 2 - ], - "end": [ - 7, - 4 - ] - } - }, - "summary": "Deleted the 'f5' identifier" - }, - { - "span": { - "delete": { - "start": [ - 7, - 7 - ], - "end": [ - 7, - 13 - ] - } - }, - "summary": "Deleted the '.5e-50' float_literal" - }, - { - "span": { - "delete": { + "insert": { "start": [ 8, 1 @@ -482,11 +209,11 @@ ] } }, - "summary": "Deleted the 'f1' identifier" + "summary": "Added the 'f1' identifier" }, { "span": { - "delete": { + "insert": { "start": [ 8, 6 @@ -497,127 +224,127 @@ ] } }, - "summary": "Deleted the '1.5' float_literal" + "summary": "Added the '1.5' float_literal" }, { "span": { - "delete": { + "insert": { "start": [ 9, - 2 + 1 ], "end": [ 9, - 4 + 3 ] } }, - "summary": "Deleted the 'f2' identifier" + "summary": "Added the 'f2' identifier" }, { "span": { - "delete": { + "insert": { "start": [ 9, - 7 + 6 ], "end": [ 9, - 14 - ] - } - }, - "summary": "Deleted the '1.5e100' float_literal" - }, - { - "span": { - "delete": { - "start": [ - 10, - 2 - ], - "end": [ - 10, - 4 - ] - } - }, - "summary": "Deleted the 'f3' identifier" - }, - { - "span": { - "delete": { - "start": [ - 10, - 7 - ], - "end": [ - 10, - 14 - ] - } - }, - "summary": "Deleted the '1.5e+50' float_literal" - }, - { - "span": { - "delete": { - "start": [ - 11, - 2 - ], - "end": [ - 11, - 4 - ] - } - }, - "summary": "Deleted the 'f4' identifier" - }, - { - "span": { - "delete": { - "start": [ - 11, - 7 - ], - "end": [ - 11, 13 ] } }, - "summary": "Deleted the '1.5e-5' float_literal" + "summary": "Added the '1.5e100' float_literal" }, { "span": { - "delete": { + "insert": { "start": [ - 12, - 2 + 10, + 1 ], "end": [ - 12, - 4 + 10, + 3 ] } }, - "summary": "Deleted the 'f5' identifier" + "summary": "Added the 'f3' identifier" }, { "span": { - "delete": { + "insert": { "start": [ - 12, - 7 + 10, + 6 ], "end": [ - 12, + 10, 13 ] } }, - "summary": "Deleted the '.5e-50' float_literal" + "summary": "Added the '1.5e+50' float_literal" + }, + { + "span": { + "insert": { + "start": [ + 11, + 1 + ], + "end": [ + 11, + 3 + ] + } + }, + "summary": "Added the 'f4' identifier" + }, + { + "span": { + "insert": { + "start": [ + 11, + 6 + ], + "end": [ + 11, + 12 + ] + } + }, + "summary": "Added the '1.5e-5' float_literal" + }, + { + "span": { + "insert": { + "start": [ + 12, + 1 + ], + "end": [ + 12, + 3 + ] + } + }, + "summary": "Added the 'f5' identifier" + }, + { + "span": { + "insert": { + "start": [ + 12, + 6 + ], + "end": [ + 12, + 12 + ] + } + }, + "summary": "Added the '.5e-50' float_literal" } ] }, @@ -626,9 +353,9 @@ "filePaths": [ "float-literals.go" ], - "sha1": "52d5de93f3b350f6d142cecf183c4db78bf1456d", + "sha1": "503aa15c7164aa0d7ef5bc568222d2303caa0211", "gitDir": "test/corpus/repos/go", - "sha2": "3694a9b10db76ad75728590fd70466e45d732bce" + "sha2": "e76839e47c49c30419456e46c6f0eb70837489a9" } ,{ "testCaseDescription": "go-float-literals-delete-insert-test", @@ -876,9 +603,9 @@ "filePaths": [ "float-literals.go" ], - "sha1": "3694a9b10db76ad75728590fd70466e45d732bce", + "sha1": "e76839e47c49c30419456e46c6f0eb70837489a9", "gitDir": "test/corpus/repos/go", - "sha2": "97fd92b82a89eeb9305f5330f3a99adcc4389e05" + "sha2": "0efb85b1f00e42ea3948540ce320ffba6e4ec3e4" } ,{ "testCaseDescription": "go-float-literals-replacement-test", @@ -1192,9 +919,9 @@ "filePaths": [ "float-literals.go" ], - "sha1": "97fd92b82a89eeb9305f5330f3a99adcc4389e05", + "sha1": "0efb85b1f00e42ea3948540ce320ffba6e4ec3e4", "gitDir": "test/corpus/repos/go", - "sha2": "7edd385d421e05ba3ed41390e6518ccdc21fd0a4" + "sha2": "bb3546ff8a0afba864e4d46776287c8b4c89f9de" } ,{ "testCaseDescription": "go-float-literals-delete-replacement-test", @@ -1658,9 +1385,9 @@ "filePaths": [ "float-literals.go" ], - "sha1": "7edd385d421e05ba3ed41390e6518ccdc21fd0a4", + "sha1": "bb3546ff8a0afba864e4d46776287c8b4c89f9de", "gitDir": "test/corpus/repos/go", - "sha2": "609c830b41d9e11450da23a8f84e42dd37a4f76a" + "sha2": "911522ed9b43ed72bd114907ea04ea6a821baa45" } ,{ "testCaseDescription": "go-float-literals-delete-test", @@ -1824,9 +1551,9 @@ "filePaths": [ "float-literals.go" ], - "sha1": "609c830b41d9e11450da23a8f84e42dd37a4f76a", + "sha1": "911522ed9b43ed72bd114907ea04ea6a821baa45", "gitDir": "test/corpus/repos/go", - "sha2": "1adcb1f4f4509d3e1a4c35939a654cafe1246894" + "sha2": "2b4209415a7cb7f7979de65d61ba21489751cb06" } ,{ "testCaseDescription": "go-float-literals-delete-rest-test", @@ -1867,7 +1594,7 @@ "filePaths": [ "float-literals.go" ], - "sha1": "1adcb1f4f4509d3e1a4c35939a654cafe1246894", + "sha1": "2b4209415a7cb7f7979de65d61ba21489751cb06", "gitDir": "test/corpus/repos/go", - "sha2": "fca223b7d276d1418cf78d534ca2cb53f7d34531" + "sha2": "e9bbbdb9d5ff21e586ed651f8b750bb05eb77669" }] diff --git a/test/corpus/diff-summaries/go/for-statements.json b/test/corpus/diff-summaries/go/for-statements.json index ced326422..e7c2771ab 100644 --- a/test/corpus/diff-summaries/go/for-statements.json +++ b/test/corpus/diff-summaries/go/for-statements.json @@ -37,9 +37,9 @@ "filePaths": [ "for-statements.go" ], - "sha1": "1ae8ffcd00cd7e1522ab61b870488c94fa0a32ad", + "sha1": "48b6876aec3649bd6c1a5d151bc936a44ae2497c", "gitDir": "test/corpus/repos/go", - "sha2": "b99fe695ed57b7395ed681ccf0fd5b91206aece2" + "sha2": "ed16777a7a1dfa62ab47982a3df10d3d12317b75" } ,{ "testCaseDescription": "go-for-statements-replacement-insert-test", @@ -563,9 +563,9 @@ "filePaths": [ "for-statements.go" ], - "sha1": "b99fe695ed57b7395ed681ccf0fd5b91206aece2", + "sha1": "ed16777a7a1dfa62ab47982a3df10d3d12317b75", "gitDir": "test/corpus/repos/go", - "sha2": "ba6e435929d08f3d4f4284dd75b9ec28791cda37" + "sha2": "acb5e17f695595212f0bb28367b82aed8018eb23" } ,{ "testCaseDescription": "go-for-statements-delete-insert-test", @@ -1389,9 +1389,9 @@ "filePaths": [ "for-statements.go" ], - "sha1": "ba6e435929d08f3d4f4284dd75b9ec28791cda37", + "sha1": "acb5e17f695595212f0bb28367b82aed8018eb23", "gitDir": "test/corpus/repos/go", - "sha2": "0f053fd54cb500c9ae42a76c58216ecfd493c140" + "sha2": "cf718775469724a2665464908c2e20c277397cca" } ,{ "testCaseDescription": "go-for-statements-replacement-test", @@ -2215,9 +2215,9 @@ "filePaths": [ "for-statements.go" ], - "sha1": "0f053fd54cb500c9ae42a76c58216ecfd493c140", + "sha1": "cf718775469724a2665464908c2e20c277397cca", "gitDir": "test/corpus/repos/go", - "sha2": "800884e18280631b0df2dac413e9fb7e3d23de9c" + "sha2": "383c5fd862b14e33b466f81dece184eca5570041" } ,{ "testCaseDescription": "go-for-statements-delete-replacement-test", @@ -3116,9 +3116,9 @@ "filePaths": [ "for-statements.go" ], - "sha1": "800884e18280631b0df2dac413e9fb7e3d23de9c", + "sha1": "383c5fd862b14e33b466f81dece184eca5570041", "gitDir": "test/corpus/repos/go", - "sha2": "413647e12f9d46c03c69fb445ca9a7d9f1e1a4ce" + "sha2": "7cd962c43640800ef25c8d4df587aba7bb7c269e" } ,{ "testCaseDescription": "go-for-statements-delete-test", @@ -3747,9 +3747,9 @@ "filePaths": [ "for-statements.go" ], - "sha1": "413647e12f9d46c03c69fb445ca9a7d9f1e1a4ce", + "sha1": "7cd962c43640800ef25c8d4df587aba7bb7c269e", "gitDir": "test/corpus/repos/go", - "sha2": "c48d05cfec83a9d77507942bda5b8ea42a5acd62" + "sha2": "09dd73e5afa741e2839324b53d49286a8e7dbe51" } ,{ "testCaseDescription": "go-for-statements-delete-rest-test", @@ -3790,7 +3790,7 @@ "filePaths": [ "for-statements.go" ], - "sha1": "c48d05cfec83a9d77507942bda5b8ea42a5acd62", + "sha1": "09dd73e5afa741e2839324b53d49286a8e7dbe51", "gitDir": "test/corpus/repos/go", - "sha2": "73f17833ea6d453d9f97fb2343a5739b08ab4f12" + "sha2": "8c585fa63c2ff92c2632b942d45620d91496d960" }] diff --git a/test/corpus/diff-summaries/go/function-declarations.json b/test/corpus/diff-summaries/go/function-declarations.json index db24fc16b..e2c80015a 100644 --- a/test/corpus/diff-summaries/go/function-declarations.json +++ b/test/corpus/diff-summaries/go/function-declarations.json @@ -340,9 +340,9 @@ "filePaths": [ "function-declarations.go" ], - "sha1": "9d04169f56619b32eedabd0b324fc2a026c795a9", + "sha1": "20e66b2e336f02fedafb15db48921c714b737c43", "gitDir": "test/corpus/repos/go", - "sha2": "3ed0639741774d7815b744c89ea13c24be30108b" + "sha2": "6a92e922c4e513333953c490115da2f638b39043" } ,{ "testCaseDescription": "go-function-declarations-replacement-insert-test", @@ -1016,9 +1016,9 @@ "filePaths": [ "function-declarations.go" ], - "sha1": "3ed0639741774d7815b744c89ea13c24be30108b", + "sha1": "6a92e922c4e513333953c490115da2f638b39043", "gitDir": "test/corpus/repos/go", - "sha2": "b283f73691d122b09501c160972af2f597418485" + "sha2": "162a337cca9ddd6b2fc7f5907187c24d01c0ed75" } ,{ "testCaseDescription": "go-function-declarations-delete-insert-test", @@ -1140,9 +1140,9 @@ "filePaths": [ "function-declarations.go" ], - "sha1": "b283f73691d122b09501c160972af2f597418485", + "sha1": "162a337cca9ddd6b2fc7f5907187c24d01c0ed75", "gitDir": "test/corpus/repos/go", - "sha2": "698ca8cba72b5f270838741ab6ad505c3c23ef16" + "sha2": "e66124c2b5e124b4a7fb4cd91dfc9af4f2319c86" } ,{ "testCaseDescription": "go-function-declarations-replacement-test", @@ -1264,9 +1264,9 @@ "filePaths": [ "function-declarations.go" ], - "sha1": "698ca8cba72b5f270838741ab6ad505c3c23ef16", + "sha1": "e66124c2b5e124b4a7fb4cd91dfc9af4f2319c86", "gitDir": "test/corpus/repos/go", - "sha2": "97851f0d5265b2d14441b04f2ef0558940cef1eb" + "sha2": "c272cd47cd44b25e25b9c78a3c03989d7bc96193" } ,{ "testCaseDescription": "go-function-declarations-delete-replacement-test", @@ -2270,9 +2270,9 @@ "filePaths": [ "function-declarations.go" ], - "sha1": "97851f0d5265b2d14441b04f2ef0558940cef1eb", + "sha1": "c272cd47cd44b25e25b9c78a3c03989d7bc96193", "gitDir": "test/corpus/repos/go", - "sha2": "5feb53ac47ce3a89c07a24cd111bff9a4b1489b7" + "sha2": "25a53febc6543d62d1933c58d6f9f8383de95391" } ,{ "testCaseDescription": "go-function-declarations-delete-test", @@ -2616,9 +2616,9 @@ "filePaths": [ "function-declarations.go" ], - "sha1": "5feb53ac47ce3a89c07a24cd111bff9a4b1489b7", + "sha1": "25a53febc6543d62d1933c58d6f9f8383de95391", "gitDir": "test/corpus/repos/go", - "sha2": "6cf9a072e430185922688bbd9d7ce59b789d241b" + "sha2": "5d83777f9f5d98f7b05f475581271c79e1b9ebcb" } ,{ "testCaseDescription": "go-function-declarations-delete-rest-test", @@ -2962,7 +2962,7 @@ "filePaths": [ "function-declarations.go" ], - "sha1": "6cf9a072e430185922688bbd9d7ce59b789d241b", + "sha1": "5d83777f9f5d98f7b05f475581271c79e1b9ebcb", "gitDir": "test/corpus/repos/go", - "sha2": "82a8b871542ce6b7859c0111c9717fe2c5644092" + "sha2": "0031d7891be1930ec7d0c1e37ea18c12fc53f609" }] diff --git a/test/corpus/diff-summaries/go/function-literal.json b/test/corpus/diff-summaries/go/function-literal.json index faec5bb02..35a2a36e3 100644 --- a/test/corpus/diff-summaries/go/function-literal.json +++ b/test/corpus/diff-summaries/go/function-literal.json @@ -25,9 +25,9 @@ "filePaths": [ "function-literal.go" ], - "sha1": "392da796d4c36bcf9d233abd04e726798db3d073", + "sha1": "b8bae5c65a680232431ad8af160a9344913ff879", "gitDir": "test/corpus/repos/go", - "sha2": "5690d18797612d9fbe8b0ba57dc6b3f9f70a1e85" + "sha2": "ab4502bcbae11318d6d845fd10f5170255a2b0ef" } ,{ "testCaseDescription": "go-function-literal-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "function-literal.go" ], - "sha1": "5690d18797612d9fbe8b0ba57dc6b3f9f70a1e85", + "sha1": "ab4502bcbae11318d6d845fd10f5170255a2b0ef", "gitDir": "test/corpus/repos/go", - "sha2": "a584edfc1c79d8e5cfb7b081be7d8839dec2e930" + "sha2": "a60da85b6bcbbba5e831c6b4766e1350784ed74b" } ,{ "testCaseDescription": "go-function-literal-delete-insert-test", @@ -195,9 +195,9 @@ "filePaths": [ "function-literal.go" ], - "sha1": "a584edfc1c79d8e5cfb7b081be7d8839dec2e930", + "sha1": "a60da85b6bcbbba5e831c6b4766e1350784ed74b", "gitDir": "test/corpus/repos/go", - "sha2": "17ac668a651965b410c75764561320b7ca5680c0" + "sha2": "9d116b312a9e4453ef8f2831ca65bfa64391b015" } ,{ "testCaseDescription": "go-function-literal-replacement-test", @@ -319,9 +319,9 @@ "filePaths": [ "function-literal.go" ], - "sha1": "17ac668a651965b410c75764561320b7ca5680c0", + "sha1": "9d116b312a9e4453ef8f2831ca65bfa64391b015", "gitDir": "test/corpus/repos/go", - "sha2": "9435b5890bfd33ed3584f16b3ffd1c26bdbab82a" + "sha2": "8953c6516ddc59cf21ff7aa306b880ca30f5ae7c" } ,{ "testCaseDescription": "go-function-literal-delete-replacement-test", @@ -380,9 +380,9 @@ "filePaths": [ "function-literal.go" ], - "sha1": "9435b5890bfd33ed3584f16b3ffd1c26bdbab82a", + "sha1": "8953c6516ddc59cf21ff7aa306b880ca30f5ae7c", "gitDir": "test/corpus/repos/go", - "sha2": "bab92b3634cbc6f101a0349be9344aa1ee881e1c" + "sha2": "f1c8413582c416c6d6b94569769eee53d294cd92" } ,{ "testCaseDescription": "go-function-literal-delete-test", @@ -411,9 +411,9 @@ "filePaths": [ "function-literal.go" ], - "sha1": "bab92b3634cbc6f101a0349be9344aa1ee881e1c", + "sha1": "f1c8413582c416c6d6b94569769eee53d294cd92", "gitDir": "test/corpus/repos/go", - "sha2": "824f8d346c5aa946e88fcda618b25effc40a26aa" + "sha2": "19ef69cf23b606fd52a7196e2ad1548d714872c3" } ,{ "testCaseDescription": "go-function-literal-delete-rest-test", @@ -442,7 +442,7 @@ "filePaths": [ "function-literal.go" ], - "sha1": "824f8d346c5aa946e88fcda618b25effc40a26aa", + "sha1": "19ef69cf23b606fd52a7196e2ad1548d714872c3", "gitDir": "test/corpus/repos/go", - "sha2": "4111df9883fafa83f6c1f6a96a54f6cab935f454" + "sha2": "18f2b685e29d85628a72a3d738da1c5c2cc9b4c2" }] diff --git a/test/corpus/diff-summaries/go/imaginary-literals.json b/test/corpus/diff-summaries/go/imaginary-literals.json new file mode 100644 index 000000000..92796cdc1 --- /dev/null +++ b/test/corpus/diff-summaries/go/imaginary-literals.json @@ -0,0 +1,448 @@ +[{ + "testCaseDescription": "go-imaginary-literals-insert-test", + "expectedResult": { + "changes": { + "imaginary-literals.go": [ + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 6, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "imaginary-literals.go" + ], + "sha1": "a77421daec2a2b057cbc6c4600168313f7967363", + "gitDir": "test/corpus/repos/go", + "sha2": "86512f969d13ad48e74788a6666cb382d4d100a8" +} +,{ + "testCaseDescription": "go-imaginary-literals-replacement-insert-test", + "expectedResult": { + "changes": { + "imaginary-literals.go": [ + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 6, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + }, + { + "span": { + "insert": { + "start": [ + 7, + 1 + ], + "end": [ + 10, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "imaginary-literals.go" + ], + "sha1": "86512f969d13ad48e74788a6666cb382d4d100a8", + "gitDir": "test/corpus/repos/go", + "sha2": "452042aace37723f34917396ee4f38d1e9f0df87" +} +,{ + "testCaseDescription": "go-imaginary-literals-delete-insert-test", + "expectedResult": { + "changes": { + "imaginary-literals.go": [ + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + } + ] + }, + "summary": "Replaced the '02i' imaginary_literal with the '01i' imaginary_literal in the const (\na = 01i\nb = 1.e+100i\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + } + ] + }, + "summary": "Replaced the '02i' imaginary_literal with the '01i' imaginary_literal in the const (\na = 01i\nb = 1.e+100i\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 13 + ] + }, + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 13 + ] + } + ] + }, + "summary": "Replaced the '1.e+103i' imaginary_literal with the '1.e+100i' imaginary_literal in the const (\na = 01i\nb = 1.e+100i\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 13 + ] + }, + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 13 + ] + } + ] + }, + "summary": "Replaced the '1.e+103i' imaginary_literal with the '1.e+100i' imaginary_literal in the const (\na = 01i\nb = 1.e+100i\n) variable of the 'main' module statement" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "imaginary-literals.go" + ], + "sha1": "452042aace37723f34917396ee4f38d1e9f0df87", + "gitDir": "test/corpus/repos/go", + "sha2": "046dfbd242abaa9537a400db74cfe6f37add22e1" +} +,{ + "testCaseDescription": "go-imaginary-literals-replacement-test", + "expectedResult": { + "changes": { + "imaginary-literals.go": [ + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + } + ] + }, + "summary": "Replaced the '01i' imaginary_literal with the '02i' imaginary_literal in the const (\na = 02i\nb = 1.e+103i\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + } + ] + }, + "summary": "Replaced the '01i' imaginary_literal with the '02i' imaginary_literal in the const (\na = 02i\nb = 1.e+103i\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 13 + ] + }, + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 13 + ] + } + ] + }, + "summary": "Replaced the '1.e+100i' imaginary_literal with the '1.e+103i' imaginary_literal in the const (\na = 02i\nb = 1.e+103i\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 13 + ] + }, + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 13 + ] + } + ] + }, + "summary": "Replaced the '1.e+100i' imaginary_literal with the '1.e+103i' imaginary_literal in the const (\na = 02i\nb = 1.e+103i\n) variable of the 'main' module statement" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "imaginary-literals.go" + ], + "sha1": "046dfbd242abaa9537a400db74cfe6f37add22e1", + "gitDir": "test/corpus/repos/go", + "sha2": "bb06ccc4c6591acf444a6916f0f98ed207ec90e8" +} +,{ + "testCaseDescription": "go-imaginary-literals-delete-replacement-test", + "expectedResult": { + "changes": { + "imaginary-literals.go": [ + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 6, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + }, + { + "span": { + "delete": { + "start": [ + 7, + 1 + ], + "end": [ + 10, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + }, + { + "span": { + "insert": { + "start": [ + 7, + 1 + ], + "end": [ + 10, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "imaginary-literals.go" + ], + "sha1": "bb06ccc4c6591acf444a6916f0f98ed207ec90e8", + "gitDir": "test/corpus/repos/go", + "sha2": "89eb47193ee859728fc3c4fabea1b7b9912a5f67" +} +,{ + "testCaseDescription": "go-imaginary-literals-delete-test", + "expectedResult": { + "changes": { + "imaginary-literals.go": [ + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 6, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "imaginary-literals.go" + ], + "sha1": "89eb47193ee859728fc3c4fabea1b7b9912a5f67", + "gitDir": "test/corpus/repos/go", + "sha2": "cbb1ce832b2672cf54933256e2dc4271641f52ad" +} +,{ + "testCaseDescription": "go-imaginary-literals-delete-rest-test", + "expectedResult": { + "changes": { + "imaginary-literals.go": [ + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 6, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "imaginary-literals.go" + ], + "sha1": "cbb1ce832b2672cf54933256e2dc4271641f52ad", + "gitDir": "test/corpus/repos/go", + "sha2": "5ded7c6ce2cb364f7b9b0a77fc5631267d11fa2a" +}] diff --git a/test/corpus/diff-summaries/go/imports.json b/test/corpus/diff-summaries/go/imports.json index aa21242bd..6b87aa6e0 100644 --- a/test/corpus/diff-summaries/go/imports.json +++ b/test/corpus/diff-summaries/go/imports.json @@ -58,9 +58,9 @@ "filePaths": [ "imports.go" ], - "sha1": "1616638c700ce3a0ae858634f525a97e66e71ed4", + "sha1": "fca223b7d276d1418cf78d534ca2cb53f7d34531", "gitDir": "test/corpus/repos/go", - "sha2": "baa2cda391496b0524144b7fc53dece3ddd3a833" + "sha2": "2d108efa617317d39c74299137e2f7e1e506a4e4" } ,{ "testCaseDescription": "go-imports-replacement-insert-test", @@ -167,9 +167,9 @@ "filePaths": [ "imports.go" ], - "sha1": "baa2cda391496b0524144b7fc53dece3ddd3a833", + "sha1": "2d108efa617317d39c74299137e2f7e1e506a4e4", "gitDir": "test/corpus/repos/go", - "sha2": "a1881460886d3252a28b7bd43fd59742d9f75973" + "sha2": "7e16b21a7fd894ced28f3b87274002ef5337964f" } ,{ "testCaseDescription": "go-imports-delete-insert-test", @@ -264,9 +264,9 @@ "filePaths": [ "imports.go" ], - "sha1": "a1881460886d3252a28b7bd43fd59742d9f75973", + "sha1": "7e16b21a7fd894ced28f3b87274002ef5337964f", "gitDir": "test/corpus/repos/go", - "sha2": "b0de201506c054731e2d3746f298bfeab0518b0a" + "sha2": "0e32bdc9934dea1a8adfa5dca8c10d27b9f4a4b8" } ,{ "testCaseDescription": "go-imports-replacement-test", @@ -361,9 +361,9 @@ "filePaths": [ "imports.go" ], - "sha1": "b0de201506c054731e2d3746f298bfeab0518b0a", + "sha1": "0e32bdc9934dea1a8adfa5dca8c10d27b9f4a4b8", "gitDir": "test/corpus/repos/go", - "sha2": "af8f8e22385d8ad733e4f340b609153248521952" + "sha2": "3b0233c08a9de971a81b0912c0262fa4cd534f09" } ,{ "testCaseDescription": "go-imports-delete-replacement-test", @@ -515,9 +515,9 @@ "filePaths": [ "imports.go" ], - "sha1": "af8f8e22385d8ad733e4f340b609153248521952", + "sha1": "3b0233c08a9de971a81b0912c0262fa4cd534f09", "gitDir": "test/corpus/repos/go", - "sha2": "49ebf5a75a9727311ce568b3dce1b3beebaf7ea5" + "sha2": "15a082e0004a20660d823c9c90f7535c1ce8ab1e" } ,{ "testCaseDescription": "go-imports-delete-test", @@ -579,9 +579,9 @@ "filePaths": [ "imports.go" ], - "sha1": "49ebf5a75a9727311ce568b3dce1b3beebaf7ea5", + "sha1": "15a082e0004a20660d823c9c90f7535c1ce8ab1e", "gitDir": "test/corpus/repos/go", - "sha2": "dfc1ded284a98dcb7ab35008bed0b8ac5eb3d60f" + "sha2": "a1523caa7685ab5be6d81a60ac427ae6bc6b23b1" } ,{ "testCaseDescription": "go-imports-delete-rest-test", @@ -643,7 +643,7 @@ "filePaths": [ "imports.go" ], - "sha1": "dfc1ded284a98dcb7ab35008bed0b8ac5eb3d60f", + "sha1": "a1523caa7685ab5be6d81a60ac427ae6bc6b23b1", "gitDir": "test/corpus/repos/go", - "sha2": "41010d621c7e9722ed4eb0b9436bde2f80206d80" + "sha2": "c517d0acb98bcbef49c0f5bf480fbb868ee06ae3" }] diff --git a/test/corpus/diff-summaries/go/indexing expressions.json b/test/corpus/diff-summaries/go/indexing expressions.json index d4a5b8abf..90981c7ad 100644 --- a/test/corpus/diff-summaries/go/indexing expressions.json +++ b/test/corpus/diff-summaries/go/indexing expressions.json @@ -7,9 +7,9 @@ "filePaths": [ "indexing expressions.go" ], - "sha1": "d98546b2bc399c6cd577c4f18b856aa10c05aa2c", + "sha1": "db2d6da6c473a3d7fb8039e9cc10f1ecea839f40", "gitDir": "test/corpus/repos/go", - "sha2": "64817927f9f660d5c9423511543d8ac3b5f33fcb" + "sha2": "d6f577c20a5269905619d6536aee605dfe0364f6" } ,{ "testCaseDescription": "go-indexing expressions-replacement-insert-test", @@ -20,9 +20,9 @@ "filePaths": [ "indexing expressions.go" ], - "sha1": "64817927f9f660d5c9423511543d8ac3b5f33fcb", + "sha1": "d6f577c20a5269905619d6536aee605dfe0364f6", "gitDir": "test/corpus/repos/go", - "sha2": "ed7fe524b4b669cfb21866ded5fe46ab91d148c3" + "sha2": "9137197cdea3166af43d1d92382b092f3da33aea" } ,{ "testCaseDescription": "go-indexing expressions-delete-insert-test", @@ -33,9 +33,9 @@ "filePaths": [ "indexing expressions.go" ], - "sha1": "ed7fe524b4b669cfb21866ded5fe46ab91d148c3", + "sha1": "9137197cdea3166af43d1d92382b092f3da33aea", "gitDir": "test/corpus/repos/go", - "sha2": "3fa169b295e9d0bc568c2ae4cf4cfccc6197e880" + "sha2": "2de1b167dd2a054c603d02a72ec0b5e16312173f" } ,{ "testCaseDescription": "go-indexing expressions-replacement-test", @@ -46,9 +46,9 @@ "filePaths": [ "indexing expressions.go" ], - "sha1": "3fa169b295e9d0bc568c2ae4cf4cfccc6197e880", + "sha1": "2de1b167dd2a054c603d02a72ec0b5e16312173f", "gitDir": "test/corpus/repos/go", - "sha2": "c6cf4565c549fd0ac12c77968b3eb8e69956874a" + "sha2": "dcc3865cb0658fa1e55dc87a8187da2e01a98e7d" } ,{ "testCaseDescription": "go-indexing expressions-delete-replacement-test", @@ -59,9 +59,9 @@ "filePaths": [ "indexing expressions.go" ], - "sha1": "c6cf4565c549fd0ac12c77968b3eb8e69956874a", + "sha1": "dcc3865cb0658fa1e55dc87a8187da2e01a98e7d", "gitDir": "test/corpus/repos/go", - "sha2": "8e090556a997a8af9521616208ce7c036c0d3ca6" + "sha2": "5a848d190b7a316ba2d44a64371eec7f67d0c8be" } ,{ "testCaseDescription": "go-indexing expressions-delete-test", @@ -72,9 +72,9 @@ "filePaths": [ "indexing expressions.go" ], - "sha1": "8e090556a997a8af9521616208ce7c036c0d3ca6", + "sha1": "5a848d190b7a316ba2d44a64371eec7f67d0c8be", "gitDir": "test/corpus/repos/go", - "sha2": "8ede29a14a120030bc78fa37dad8c3b225048a59" + "sha2": "d0b87dda59d1fbdf63e6573062e3b2d8f017000d" } ,{ "testCaseDescription": "go-indexing expressions-delete-rest-test", @@ -85,7 +85,7 @@ "filePaths": [ "indexing expressions.go" ], - "sha1": "8ede29a14a120030bc78fa37dad8c3b225048a59", + "sha1": "d0b87dda59d1fbdf63e6573062e3b2d8f017000d", "gitDir": "test/corpus/repos/go", - "sha2": "8fc5b4daf016aef771b5d5f4a4d6f0389fd903fa" + "sha2": "fe04af2ad66201c4f472821797ba453c97a710e6" }] diff --git a/test/corpus/diff-summaries/go/int-literal.json b/test/corpus/diff-summaries/go/int-literal.json index 58bffd7f9..30326e8c6 100644 --- a/test/corpus/diff-summaries/go/int-literal.json +++ b/test/corpus/diff-summaries/go/int-literal.json @@ -25,9 +25,9 @@ "filePaths": [ "int-literal.go" ], - "sha1": "41010d621c7e9722ed4eb0b9436bde2f80206d80", + "sha1": "c517d0acb98bcbef49c0f5bf480fbb868ee06ae3", "gitDir": "test/corpus/repos/go", - "sha2": "bb890f64e1c118bc3cef831f6f77e0094edf64fb" + "sha2": "b1ab0ddb550e59aa69a13090c8251fd602556adc" } ,{ "testCaseDescription": "go-int-literal-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "int-literal.go" ], - "sha1": "bb890f64e1c118bc3cef831f6f77e0094edf64fb", + "sha1": "b1ab0ddb550e59aa69a13090c8251fd602556adc", "gitDir": "test/corpus/repos/go", - "sha2": "bec1afe2208bacbe6367ba93b7242b4faf615525" + "sha2": "1310e8dddb038c25e103bd20478fc6f309cb3e83" } ,{ "testCaseDescription": "go-int-literal-delete-insert-test", @@ -141,9 +141,9 @@ "filePaths": [ "int-literal.go" ], - "sha1": "bec1afe2208bacbe6367ba93b7242b4faf615525", + "sha1": "1310e8dddb038c25e103bd20478fc6f309cb3e83", "gitDir": "test/corpus/repos/go", - "sha2": "3ee0fa10c2854bdbc4f0d46cb84b53ac167b8428" + "sha2": "bc2f43c485e347789faba38ce487203241701051" } ,{ "testCaseDescription": "go-int-literal-replacement-test", @@ -211,9 +211,9 @@ "filePaths": [ "int-literal.go" ], - "sha1": "3ee0fa10c2854bdbc4f0d46cb84b53ac167b8428", + "sha1": "bc2f43c485e347789faba38ce487203241701051", "gitDir": "test/corpus/repos/go", - "sha2": "e87f194e36121d5b6c4bfa5cee34aa4a241402c9" + "sha2": "5d240ff1e1cba4e0ca92438b25b6c5cb806eb08a" } ,{ "testCaseDescription": "go-int-literal-delete-replacement-test", @@ -272,9 +272,9 @@ "filePaths": [ "int-literal.go" ], - "sha1": "e87f194e36121d5b6c4bfa5cee34aa4a241402c9", + "sha1": "5d240ff1e1cba4e0ca92438b25b6c5cb806eb08a", "gitDir": "test/corpus/repos/go", - "sha2": "8deb31840870de630823b48579cedfe40e653996" + "sha2": "1dbfbb5f4aced649905ed0a192447be057d934f0" } ,{ "testCaseDescription": "go-int-literal-delete-test", @@ -303,9 +303,9 @@ "filePaths": [ "int-literal.go" ], - "sha1": "8deb31840870de630823b48579cedfe40e653996", + "sha1": "1dbfbb5f4aced649905ed0a192447be057d934f0", "gitDir": "test/corpus/repos/go", - "sha2": "f2f6816bed557be984dfdf6efa236f19c1845e94" + "sha2": "d692e806304dc58ba02846cc831eef017e6c1e56" } ,{ "testCaseDescription": "go-int-literal-delete-rest-test", @@ -334,7 +334,7 @@ "filePaths": [ "int-literal.go" ], - "sha1": "f2f6816bed557be984dfdf6efa236f19c1845e94", + "sha1": "d692e806304dc58ba02846cc831eef017e6c1e56", "gitDir": "test/corpus/repos/go", - "sha2": "40d1102e3a530342a160c83a3e1da3023eec6e98" + "sha2": "8f13696c49fad55aab85d6533dd781bf28a01fc7" }] diff --git a/test/corpus/diff-summaries/go/method-declarations.json b/test/corpus/diff-summaries/go/method-declarations.json index 74d991a7f..06a3d1e11 100644 --- a/test/corpus/diff-summaries/go/method-declarations.json +++ b/test/corpus/diff-summaries/go/method-declarations.json @@ -115,9 +115,9 @@ "filePaths": [ "method-declarations.go" ], - "sha1": "82a8b871542ce6b7859c0111c9717fe2c5644092", + "sha1": "0031d7891be1930ec7d0c1e37ea18c12fc53f609", "gitDir": "test/corpus/repos/go", - "sha2": "e914d658702d138d04f463ef3d7339885c7bc5a4" + "sha2": "eec16bc58a0088800f036f2e4b9d4f13f199eb93" } ,{ "testCaseDescription": "go-method-declarations-replacement-insert-test", @@ -341,9 +341,9 @@ "filePaths": [ "method-declarations.go" ], - "sha1": "e914d658702d138d04f463ef3d7339885c7bc5a4", + "sha1": "eec16bc58a0088800f036f2e4b9d4f13f199eb93", "gitDir": "test/corpus/repos/go", - "sha2": "4711c79f5bf37603debb9d55fc33caac9f6b109d" + "sha2": "424493963aaba49f06f2ef72c8808ed178a8646f" } ,{ "testCaseDescription": "go-method-declarations-delete-insert-test", @@ -411,9 +411,9 @@ "filePaths": [ "method-declarations.go" ], - "sha1": "4711c79f5bf37603debb9d55fc33caac9f6b109d", + "sha1": "424493963aaba49f06f2ef72c8808ed178a8646f", "gitDir": "test/corpus/repos/go", - "sha2": "f4f0326e46451baf2c97df2dab42fd2299d7c6ad" + "sha2": "47e926c4ff74cd7765be247a52fde42fa5dc099f" } ,{ "testCaseDescription": "go-method-declarations-replacement-test", @@ -481,9 +481,9 @@ "filePaths": [ "method-declarations.go" ], - "sha1": "f4f0326e46451baf2c97df2dab42fd2299d7c6ad", + "sha1": "47e926c4ff74cd7765be247a52fde42fa5dc099f", "gitDir": "test/corpus/repos/go", - "sha2": "8d776d282b32487e2b0a7411f80064f679d63a97" + "sha2": "9380300b374a78e53c0b3881a9cd0c7c5dbebb65" } ,{ "testCaseDescription": "go-method-declarations-delete-replacement-test", @@ -812,9 +812,9 @@ "filePaths": [ "method-declarations.go" ], - "sha1": "8d776d282b32487e2b0a7411f80064f679d63a97", + "sha1": "9380300b374a78e53c0b3881a9cd0c7c5dbebb65", "gitDir": "test/corpus/repos/go", - "sha2": "df8122b93495fd218664c3136bd2f2ad66d43961" + "sha2": "ba4d720e38c037ef5505d083b715bff0f1be1573" } ,{ "testCaseDescription": "go-method-declarations-delete-test", @@ -933,9 +933,9 @@ "filePaths": [ "method-declarations.go" ], - "sha1": "df8122b93495fd218664c3136bd2f2ad66d43961", + "sha1": "ba4d720e38c037ef5505d083b715bff0f1be1573", "gitDir": "test/corpus/repos/go", - "sha2": "ccc73f9868d483b44987f7d26ff2c9db82ed95ba" + "sha2": "5b1fbd48a8e9ccd047ddaf32637574a13119834e" } ,{ "testCaseDescription": "go-method-declarations-delete-rest-test", @@ -1054,7 +1054,7 @@ "filePaths": [ "method-declarations.go" ], - "sha1": "ccc73f9868d483b44987f7d26ff2c9db82ed95ba", + "sha1": "5b1fbd48a8e9ccd047ddaf32637574a13119834e", "gitDir": "test/corpus/repos/go", - "sha2": "cbe29dac94d8f749fe6c9865adde2a6f147ecfb8" + "sha2": "db3818ebee273257e37e5a8d637fa64cbd261d27" }] diff --git a/test/corpus/diff-summaries/go/rune-literals.json b/test/corpus/diff-summaries/go/rune-literals.json new file mode 100644 index 000000000..8c94d1938 --- /dev/null +++ b/test/corpus/diff-summaries/go/rune-literals.json @@ -0,0 +1,685 @@ +[{ + "testCaseDescription": "go-rune-literals-insert-test", + "expectedResult": { + "changes": { + "rune-literals.go": [ + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "rune-literals.go" + ], + "sha1": "69edfee9027a1881ebab28527523326018fa4953", + "gitDir": "test/corpus/repos/go", + "sha2": "25653229651369857a3c7ee329638397b9bae288" +} +,{ + "testCaseDescription": "go-rune-literals-replacement-insert-test", + "expectedResult": { + "changes": { + "rune-literals.go": [ + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + }, + { + "span": { + "insert": { + "start": [ + 12, + 1 + ], + "end": [ + 20, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "rune-literals.go" + ], + "sha1": "25653229651369857a3c7ee329638397b9bae288", + "gitDir": "test/corpus/repos/go", + "sha2": "40cce5549e396facdab6d6ba6ac33a0c67b633df" +} +,{ + "testCaseDescription": "go-rune-literals-delete-insert-test", + "expectedResult": { + "changes": { + "rune-literals.go": [ + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable" + }, + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable" + }, + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 1 + ], + "end": [ + 4, + 2 + ] + }, + { + "start": [ + 9, + 1 + ], + "end": [ + 9, + 2 + ] + } + ] + }, + "summary": "Replaced the 'a' identifier with the 'c' identifier in the const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 9, + 5 + ], + "end": [ + 9, + 13 + ] + } + ] + }, + "summary": "Replaced the ''1'' rune_literal with the ''\\u0000'' rune_literal in the const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 9, + 5 + ], + "end": [ + 9, + 13 + ] + } + ] + }, + "summary": "Replaced the ''1'' rune_literal with the ''\\u0000'' rune_literal in the const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n) variable of the 'main' module statement" + }, + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Deleted the 'b' variable" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "rune-literals.go" + ], + "sha1": "40cce5549e396facdab6d6ba6ac33a0c67b633df", + "gitDir": "test/corpus/repos/go", + "sha2": "4f27a3ceb34020458b2b4cfa501078ffc701b71b" +} +,{ + "testCaseDescription": "go-rune-literals-replacement-test", + "expectedResult": { + "changes": { + "rune-literals.go": [ + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable" + }, + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Added the 'b' variable" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 1 + ], + "end": [ + 4, + 2 + ] + }, + { + "start": [ + 6, + 2 + ], + "end": [ + 7, + 2 + ] + } + ] + }, + "summary": "Replaced the 'a' identifier with the ''\nc' identifier in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 7, + 5 + ], + "end": [ + 7, + 13 + ] + } + ] + }, + "summary": "Replaced the ''0'' rune_literal with the ''\\u0011'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 7, + 5 + ], + "end": [ + 7, + 13 + ] + } + ] + }, + "summary": "Replaced the ''0'' rune_literal with the ''\\u0011'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement" + }, + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 1 + ], + "end": [ + 5, + 2 + ] + }, + { + "start": [ + 10, + 1 + ], + "end": [ + 10, + 2 + ] + } + ] + }, + "summary": "Replaced the 'b' identifier with the 'c' identifier in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 9 + ] + }, + { + "start": [ + 10, + 5 + ], + "end": [ + 10, + 17 + ] + } + ] + }, + "summary": "Replaced the ''\\''' rune_literal with the ''\\U01234568'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 9 + ] + }, + { + "start": [ + 10, + 5 + ], + "end": [ + 10, + 17 + ] + } + ] + }, + "summary": "Replaced the ''\\''' rune_literal with the ''\\U01234568'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable" + }, + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "rune-literals.go" + ], + "sha1": "4f27a3ceb34020458b2b4cfa501078ffc701b71b", + "gitDir": "test/corpus/repos/go", + "sha2": "9d2992d75be448c79f2dccdf9301f3c3b893db3a" +} +,{ + "testCaseDescription": "go-rune-literals-delete-replacement-test", + "expectedResult": { + "changes": { + "rune-literals.go": [ + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + }, + { + "span": { + "delete": { + "start": [ + 12, + 1 + ], + "end": [ + 20, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + }, + { + "span": { + "insert": { + "start": [ + 12, + 1 + ], + "end": [ + 20, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "rune-literals.go" + ], + "sha1": "9d2992d75be448c79f2dccdf9301f3c3b893db3a", + "gitDir": "test/corpus/repos/go", + "sha2": "f358d1ef8634f582948b54df5c49c18c70fc6da6" +} +,{ + "testCaseDescription": "go-rune-literals-delete-test", + "expectedResult": { + "changes": { + "rune-literals.go": [ + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "rune-literals.go" + ], + "sha1": "f358d1ef8634f582948b54df5c49c18c70fc6da6", + "gitDir": "test/corpus/repos/go", + "sha2": "80bbf801377db4d41658f37c2c4d8ecc6aeb135d" +} +,{ + "testCaseDescription": "go-rune-literals-delete-rest-test", + "expectedResult": { + "changes": { + "rune-literals.go": [ + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 11, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "rune-literals.go" + ], + "sha1": "80bbf801377db4d41658f37c2c4d8ecc6aeb135d", + "gitDir": "test/corpus/repos/go", + "sha2": "da9cdd2791960f8ef5a1a9a75bec48eaf970b990" +}] diff --git a/test/corpus/diff-summaries/go/selector expressions.json b/test/corpus/diff-summaries/go/selector expressions.json index 3c1030966..2f9b56909 100644 --- a/test/corpus/diff-summaries/go/selector expressions.json +++ b/test/corpus/diff-summaries/go/selector expressions.json @@ -7,9 +7,9 @@ "filePaths": [ "selector expressions.go" ], - "sha1": "9228b9ece2bcfaed3a353179363387396ab933ed", + "sha1": "28f9d0d23acbf260bc76bc1872d8f1ade5b63907", "gitDir": "test/corpus/repos/go", - "sha2": "249a62a68546221dc5d29833055c68420c4c9aae" + "sha2": "ee0456ea9354505a88032e3ab59b5f2e7827af41" } ,{ "testCaseDescription": "go-selector expressions-replacement-insert-test", @@ -20,9 +20,9 @@ "filePaths": [ "selector expressions.go" ], - "sha1": "249a62a68546221dc5d29833055c68420c4c9aae", + "sha1": "ee0456ea9354505a88032e3ab59b5f2e7827af41", "gitDir": "test/corpus/repos/go", - "sha2": "24d5409dbac55cea9fcf635c599f0adf2cbc985c" + "sha2": "9e0185d2da71c7260b6954c8e0bdb6369db4e3f5" } ,{ "testCaseDescription": "go-selector expressions-delete-insert-test", @@ -33,9 +33,9 @@ "filePaths": [ "selector expressions.go" ], - "sha1": "24d5409dbac55cea9fcf635c599f0adf2cbc985c", + "sha1": "9e0185d2da71c7260b6954c8e0bdb6369db4e3f5", "gitDir": "test/corpus/repos/go", - "sha2": "78ce56cd9fa86f5d624488d231c4552aa213f0b9" + "sha2": "a5b07b365cd5f6701afc96880b2bedeeb6d988f7" } ,{ "testCaseDescription": "go-selector expressions-replacement-test", @@ -46,9 +46,9 @@ "filePaths": [ "selector expressions.go" ], - "sha1": "78ce56cd9fa86f5d624488d231c4552aa213f0b9", + "sha1": "a5b07b365cd5f6701afc96880b2bedeeb6d988f7", "gitDir": "test/corpus/repos/go", - "sha2": "943e03b2cc66d80f59308c1182e90f87f21b3c07" + "sha2": "650ca03ba4ec0915bf5ea05d1fa9eeeffe35065b" } ,{ "testCaseDescription": "go-selector expressions-delete-replacement-test", @@ -59,9 +59,9 @@ "filePaths": [ "selector expressions.go" ], - "sha1": "943e03b2cc66d80f59308c1182e90f87f21b3c07", + "sha1": "650ca03ba4ec0915bf5ea05d1fa9eeeffe35065b", "gitDir": "test/corpus/repos/go", - "sha2": "70af18fd7dac0a990284a7d6ff6a4c6501109460" + "sha2": "e183c4c213c0b6441d7a50af2a7d44476aed209a" } ,{ "testCaseDescription": "go-selector expressions-delete-test", @@ -72,9 +72,9 @@ "filePaths": [ "selector expressions.go" ], - "sha1": "70af18fd7dac0a990284a7d6ff6a4c6501109460", + "sha1": "e183c4c213c0b6441d7a50af2a7d44476aed209a", "gitDir": "test/corpus/repos/go", - "sha2": "dd2d88bdd327b4dfea68e539494e1837228fafbf" + "sha2": "fa3418e1ea9757dde2f38eb157bd1ebcf14bc9c7" } ,{ "testCaseDescription": "go-selector expressions-delete-rest-test", @@ -85,7 +85,7 @@ "filePaths": [ "selector expressions.go" ], - "sha1": "dd2d88bdd327b4dfea68e539494e1837228fafbf", + "sha1": "fa3418e1ea9757dde2f38eb157bd1ebcf14bc9c7", "gitDir": "test/corpus/repos/go", - "sha2": "d98546b2bc399c6cd577c4f18b856aa10c05aa2c" + "sha2": "db2d6da6c473a3d7fb8039e9cc10f1ecea839f40" }] diff --git a/test/corpus/diff-summaries/go/string-literals.json b/test/corpus/diff-summaries/go/string-literals.json new file mode 100644 index 000000000..4d1628045 --- /dev/null +++ b/test/corpus/diff-summaries/go/string-literals.json @@ -0,0 +1,448 @@ +[{ + "testCaseDescription": "go-string-literals-insert-test", + "expectedResult": { + "changes": { + "string-literals.go": [ + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 6, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "string-literals.go" + ], + "sha1": "e82156957bedcd762ee0f550be2cb692c8cfe195", + "gitDir": "test/corpus/repos/go", + "sha2": "264b7fdb718e102df813c94e37d1a6494f841f5e" +} +,{ + "testCaseDescription": "go-string-literals-replacement-insert-test", + "expectedResult": { + "changes": { + "string-literals.go": [ + { + "span": { + "insert": { + "start": [ + 3, + 1 + ], + "end": [ + 6, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + }, + { + "span": { + "insert": { + "start": [ + 7, + 1 + ], + "end": [ + 10, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "string-literals.go" + ], + "sha1": "264b7fdb718e102df813c94e37d1a6494f841f5e", + "gitDir": "test/corpus/repos/go", + "sha2": "111c464fc69ff2b032586b1a43ffce836e8581be" +} +,{ + "testCaseDescription": "go-string-literals-delete-insert-test", + "expectedResult": { + "changes": { + "string-literals.go": [ + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + } + ] + }, + "summary": "Replaced the \"2\" string with the \"0\" string in the const (\na = \"0\"\nb = \"hello world\"\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + } + ] + }, + "summary": "Replaced the \"2\" string with the \"0\" string in the const (\na = \"0\"\nb = \"hello world\"\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 9 + ] + }, + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 18 + ] + } + ] + }, + "summary": "Replaced the \"hi\" string with the \"hello world\" string in the const (\na = \"0\"\nb = \"hello world\"\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 9 + ] + }, + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 18 + ] + } + ] + }, + "summary": "Replaced the \"hi\" string with the \"hello world\" string in the const (\na = \"0\"\nb = \"hello world\"\n) variable of the 'main' module statement" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "string-literals.go" + ], + "sha1": "111c464fc69ff2b032586b1a43ffce836e8581be", + "gitDir": "test/corpus/repos/go", + "sha2": "8ee6d9620b597f728fde95ce4f243480996f2f8a" +} +,{ + "testCaseDescription": "go-string-literals-replacement-test", + "expectedResult": { + "changes": { + "string-literals.go": [ + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + } + ] + }, + "summary": "Replaced the \"0\" string with the \"2\" string in the const (\na = \"2\"\nb = \"hi\"\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + }, + { + "start": [ + 4, + 5 + ], + "end": [ + 4, + 8 + ] + } + ] + }, + "summary": "Replaced the \"0\" string with the \"2\" string in the const (\na = \"2\"\nb = \"hi\"\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 18 + ] + }, + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 9 + ] + } + ] + }, + "summary": "Replaced the \"hello world\" string with the \"hi\" string in the const (\na = \"2\"\nb = \"hi\"\n) variable of the 'main' module statement" + }, + { + "span": { + "replace": [ + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 18 + ] + }, + { + "start": [ + 5, + 5 + ], + "end": [ + 5, + 9 + ] + } + ] + }, + "summary": "Replaced the \"hello world\" string with the \"hi\" string in the const (\na = \"2\"\nb = \"hi\"\n) variable of the 'main' module statement" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "string-literals.go" + ], + "sha1": "8ee6d9620b597f728fde95ce4f243480996f2f8a", + "gitDir": "test/corpus/repos/go", + "sha2": "1440e905cbe8446911909fb14761372b8f01c91e" +} +,{ + "testCaseDescription": "go-string-literals-delete-replacement-test", + "expectedResult": { + "changes": { + "string-literals.go": [ + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 6, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + }, + { + "span": { + "delete": { + "start": [ + 7, + 1 + ], + "end": [ + 10, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + }, + { + "span": { + "insert": { + "start": [ + 7, + 1 + ], + "end": [ + 10, + 2 + ] + } + }, + "summary": "Added the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "string-literals.go" + ], + "sha1": "1440e905cbe8446911909fb14761372b8f01c91e", + "gitDir": "test/corpus/repos/go", + "sha2": "6a90535f6a3c434f93d4ef097bebc733045f2393" +} +,{ + "testCaseDescription": "go-string-literals-delete-test", + "expectedResult": { + "changes": { + "string-literals.go": [ + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 6, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "string-literals.go" + ], + "sha1": "6a90535f6a3c434f93d4ef097bebc733045f2393", + "gitDir": "test/corpus/repos/go", + "sha2": "bbb95085c906a4fbba0783fe6d268a64d145e051" +} +,{ + "testCaseDescription": "go-string-literals-delete-rest-test", + "expectedResult": { + "changes": { + "string-literals.go": [ + { + "span": { + "delete": { + "start": [ + 3, + 1 + ], + "end": [ + 6, + 2 + ] + } + }, + "summary": "Deleted the 'variable' variable" + } + ] + }, + "errors": {} + }, + "filePaths": [ + "string-literals.go" + ], + "sha1": "bbb95085c906a4fbba0783fe6d268a64d145e051", + "gitDir": "test/corpus/repos/go", + "sha2": "da6ba76c0e36f88a7c6255a43bfccca89a6e85ea" +}] diff --git a/test/corpus/diff-summaries/go/switch-statements.json b/test/corpus/diff-summaries/go/switch-statements.json index 404e5e57e..64b6dc461 100644 --- a/test/corpus/diff-summaries/go/switch-statements.json +++ b/test/corpus/diff-summaries/go/switch-statements.json @@ -145,9 +145,9 @@ "filePaths": [ "switch-statements.go" ], - "sha1": "7c59f6ab63a331804d246ea0e5c5e44b82b96d4d", + "sha1": "567ea1f4317f1c40f6132f429590c78238313778", "gitDir": "test/corpus/repos/go", - "sha2": "01b042f731d266b37912d104d3ac6a55f87cb39e" + "sha2": "162708d5ed1a15aa3b73a45694d03caa8ff64600" } ,{ "testCaseDescription": "go-switch-statements-replacement-insert-test", @@ -188,9 +188,9 @@ "filePaths": [ "switch-statements.go" ], - "sha1": "01b042f731d266b37912d104d3ac6a55f87cb39e", + "sha1": "162708d5ed1a15aa3b73a45694d03caa8ff64600", "gitDir": "test/corpus/repos/go", - "sha2": "8bc7cf3146d33344f0227f508ad0dabf7855a16a" + "sha2": "aa251d2911ca68348719363e2aa8f828b93e2d55" } ,{ "testCaseDescription": "go-switch-statements-delete-insert-test", @@ -366,9 +366,9 @@ "filePaths": [ "switch-statements.go" ], - "sha1": "8bc7cf3146d33344f0227f508ad0dabf7855a16a", + "sha1": "aa251d2911ca68348719363e2aa8f828b93e2d55", "gitDir": "test/corpus/repos/go", - "sha2": "56a2b06c2a02295f6c7570d4b4bcbddc38386517" + "sha2": "936422d732d43522ae10af4055d8d6382e210f39" } ,{ "testCaseDescription": "go-switch-statements-replacement-test", @@ -544,9 +544,9 @@ "filePaths": [ "switch-statements.go" ], - "sha1": "56a2b06c2a02295f6c7570d4b4bcbddc38386517", + "sha1": "936422d732d43522ae10af4055d8d6382e210f39", "gitDir": "test/corpus/repos/go", - "sha2": "3274d32db35e86e8f5abee621fd9b392da85793b" + "sha2": "503efebbdb6c6e4df282ade7e83c558d1ad9c96d" } ,{ "testCaseDescription": "go-switch-statements-delete-replacement-test", @@ -965,9 +965,9 @@ "filePaths": [ "switch-statements.go" ], - "sha1": "3274d32db35e86e8f5abee621fd9b392da85793b", + "sha1": "503efebbdb6c6e4df282ade7e83c558d1ad9c96d", "gitDir": "test/corpus/repos/go", - "sha2": "9a69856646db4d9d0f2773d15ba6ccbbfd6664ea" + "sha2": "dafbac873c7724191039372a76adb7002870a599" } ,{ "testCaseDescription": "go-switch-statements-delete-test", @@ -1008,9 +1008,9 @@ "filePaths": [ "switch-statements.go" ], - "sha1": "9a69856646db4d9d0f2773d15ba6ccbbfd6664ea", + "sha1": "dafbac873c7724191039372a76adb7002870a599", "gitDir": "test/corpus/repos/go", - "sha2": "be89dd02b2132f8e3d948c7c8fac57b99a9d519a" + "sha2": "a380e54d9043d02105b40b04ab6db3f724bb2a3c" } ,{ "testCaseDescription": "go-switch-statements-delete-rest-test", @@ -1159,7 +1159,7 @@ "filePaths": [ "switch-statements.go" ], - "sha1": "be89dd02b2132f8e3d948c7c8fac57b99a9d519a", + "sha1": "a380e54d9043d02105b40b04ab6db3f724bb2a3c", "gitDir": "test/corpus/repos/go", - "sha2": "1ae8ffcd00cd7e1522ab61b870488c94fa0a32ad" + "sha2": "48b6876aec3649bd6c1a5d151bc936a44ae2497c" }] diff --git a/test/corpus/diff-summaries/go/type-assertion-expression.json b/test/corpus/diff-summaries/go/type-assertion-expression.json index 48ae49416..6590553ac 100644 --- a/test/corpus/diff-summaries/go/type-assertion-expression.json +++ b/test/corpus/diff-summaries/go/type-assertion-expression.json @@ -55,9 +55,9 @@ "filePaths": [ "type-assertion-expression.go" ], - "sha1": "8fc5b4daf016aef771b5d5f4a4d6f0389fd903fa", + "sha1": "fe04af2ad66201c4f472821797ba453c97a710e6", "gitDir": "test/corpus/repos/go", - "sha2": "c49fbc8c04489d4b07f27a0c9a252e49dd11d2ec" + "sha2": "25fbda39d90e285cddf9c7cd8c481c909262ba0f" } ,{ "testCaseDescription": "go-type-assertion-expression-replacement-insert-test", @@ -98,9 +98,9 @@ "filePaths": [ "type-assertion-expression.go" ], - "sha1": "c49fbc8c04489d4b07f27a0c9a252e49dd11d2ec", + "sha1": "25fbda39d90e285cddf9c7cd8c481c909262ba0f", "gitDir": "test/corpus/repos/go", - "sha2": "7733efa908f2721fda5c6f9312b7d56cd1daeeb5" + "sha2": "6f63e1717a79c8884d9abb64f4669fd98e71f97f" } ,{ "testCaseDescription": "go-type-assertion-expression-delete-insert-test", @@ -195,9 +195,9 @@ "filePaths": [ "type-assertion-expression.go" ], - "sha1": "7733efa908f2721fda5c6f9312b7d56cd1daeeb5", + "sha1": "6f63e1717a79c8884d9abb64f4669fd98e71f97f", "gitDir": "test/corpus/repos/go", - "sha2": "ec3a2c05305a7b4de37b70f2fed0e73946447e2f" + "sha2": "920b339dc66e0f6c238ab07ff49b85a4074f5883" } ,{ "testCaseDescription": "go-type-assertion-expression-replacement-test", @@ -292,9 +292,9 @@ "filePaths": [ "type-assertion-expression.go" ], - "sha1": "ec3a2c05305a7b4de37b70f2fed0e73946447e2f", + "sha1": "920b339dc66e0f6c238ab07ff49b85a4074f5883", "gitDir": "test/corpus/repos/go", - "sha2": "dabe98b163dcd026696eb238ba9b2f3635ce198b" + "sha2": "ba4bcabdcbe24af9b49a7f404733f7d4adf91865" } ,{ "testCaseDescription": "go-type-assertion-expression-delete-replacement-test", @@ -443,9 +443,9 @@ "filePaths": [ "type-assertion-expression.go" ], - "sha1": "dabe98b163dcd026696eb238ba9b2f3635ce198b", + "sha1": "ba4bcabdcbe24af9b49a7f404733f7d4adf91865", "gitDir": "test/corpus/repos/go", - "sha2": "74fffa0e21feb85adac7fc3d8f12604ecce3a98a" + "sha2": "a31ff34fd6e63e8f1d50e43f4de9b879d64d134f" } ,{ "testCaseDescription": "go-type-assertion-expression-delete-test", @@ -486,9 +486,9 @@ "filePaths": [ "type-assertion-expression.go" ], - "sha1": "74fffa0e21feb85adac7fc3d8f12604ecce3a98a", + "sha1": "a31ff34fd6e63e8f1d50e43f4de9b879d64d134f", "gitDir": "test/corpus/repos/go", - "sha2": "a2e4485e825b474e5d84916fddc56c6d9363e970" + "sha2": "ade8f04c3c3ad76da424f517dc06d67446e4f7f0" } ,{ "testCaseDescription": "go-type-assertion-expression-delete-rest-test", @@ -547,7 +547,7 @@ "filePaths": [ "type-assertion-expression.go" ], - "sha1": "a2e4485e825b474e5d84916fddc56c6d9363e970", + "sha1": "ade8f04c3c3ad76da424f517dc06d67446e4f7f0", "gitDir": "test/corpus/repos/go", - "sha2": "0fb8914402f2b6eb510d5704827369899c7edd4e" + "sha2": "ce9514dd70d7bbc236077d61f3845973b77a682b" }] diff --git a/test/corpus/diff-summaries/go/type-conversion-expression.json b/test/corpus/diff-summaries/go/type-conversion-expression.json index cb399f890..0445b453a 100644 --- a/test/corpus/diff-summaries/go/type-conversion-expression.json +++ b/test/corpus/diff-summaries/go/type-conversion-expression.json @@ -37,9 +37,9 @@ "filePaths": [ "type-conversion-expression.go" ], - "sha1": "0fb8914402f2b6eb510d5704827369899c7edd4e", + "sha1": "ce9514dd70d7bbc236077d61f3845973b77a682b", "gitDir": "test/corpus/repos/go", - "sha2": "ce6aaf207aa38e251004772dd67d893d8d2f58a5" + "sha2": "b08a477e87c61c457907192f88bc0a8774e55766" } ,{ "testCaseDescription": "go-type-conversion-expression-replacement-insert-test", @@ -473,9 +473,9 @@ "filePaths": [ "type-conversion-expression.go" ], - "sha1": "ce6aaf207aa38e251004772dd67d893d8d2f58a5", + "sha1": "b08a477e87c61c457907192f88bc0a8774e55766", "gitDir": "test/corpus/repos/go", - "sha2": "acf4e592f7c3c5fee88efd8b702df4ca9b21f64a" + "sha2": "ced9e7f9c86e43d7fb55d41f885683a8fbb62bf2" } ,{ "testCaseDescription": "go-type-conversion-expression-delete-insert-test", @@ -867,9 +867,9 @@ "filePaths": [ "type-conversion-expression.go" ], - "sha1": "acf4e592f7c3c5fee88efd8b702df4ca9b21f64a", + "sha1": "ced9e7f9c86e43d7fb55d41f885683a8fbb62bf2", "gitDir": "test/corpus/repos/go", - "sha2": "59933dabe5b65514be1a5cbe909032d0de789606" + "sha2": "3b0138d8c50fa78703e4af5bc55cbfc50ab067f4" } ,{ "testCaseDescription": "go-type-conversion-expression-replacement-test", @@ -1261,9 +1261,9 @@ "filePaths": [ "type-conversion-expression.go" ], - "sha1": "59933dabe5b65514be1a5cbe909032d0de789606", + "sha1": "3b0138d8c50fa78703e4af5bc55cbfc50ab067f4", "gitDir": "test/corpus/repos/go", - "sha2": "75f203a7e0f1f6e15601ce040a237b5a044599da" + "sha2": "4cfab68a8fd8aab8b43ff48ab7098f78264e0e53" } ,{ "testCaseDescription": "go-type-conversion-expression-delete-replacement-test", @@ -1907,9 +1907,9 @@ "filePaths": [ "type-conversion-expression.go" ], - "sha1": "75f203a7e0f1f6e15601ce040a237b5a044599da", + "sha1": "4cfab68a8fd8aab8b43ff48ab7098f78264e0e53", "gitDir": "test/corpus/repos/go", - "sha2": "d4d65aa0b871dd2c6800f8b8ac2baae0df934e69" + "sha2": "70d714b2a36dd370bfb8438b7c44a5d6c94d8102" } ,{ "testCaseDescription": "go-type-conversion-expression-delete-test", @@ -2133,9 +2133,9 @@ "filePaths": [ "type-conversion-expression.go" ], - "sha1": "d4d65aa0b871dd2c6800f8b8ac2baae0df934e69", + "sha1": "70d714b2a36dd370bfb8438b7c44a5d6c94d8102", "gitDir": "test/corpus/repos/go", - "sha2": "fa127fdd0757eff7a8cc890ac99cb3f5659fd73c" + "sha2": "08c4be090af4b52eb36fe08b8a65081a45fc2122" } ,{ "testCaseDescription": "go-type-conversion-expression-delete-rest-test", @@ -2176,7 +2176,7 @@ "filePaths": [ "type-conversion-expression.go" ], - "sha1": "fa127fdd0757eff7a8cc890ac99cb3f5659fd73c", + "sha1": "08c4be090af4b52eb36fe08b8a65081a45fc2122", "gitDir": "test/corpus/repos/go", - "sha2": "13f92df845d6392fa1291e3fc084ac13040c08f1" + "sha2": "376daa245a78358736c0dc17d4026fecc4060fee" }] diff --git a/test/corpus/diff-summaries/go/type-declarations.json b/test/corpus/diff-summaries/go/type-declarations.json index 981669b58..92990f5f3 100644 --- a/test/corpus/diff-summaries/go/type-declarations.json +++ b/test/corpus/diff-summaries/go/type-declarations.json @@ -100,9 +100,9 @@ "filePaths": [ "type-declarations.go" ], - "sha1": "f1ee78a5888c6c995d69acb0e5fe402dc04f54a6", + "sha1": "b5fcf0b460b938c84f6b758f163f2e96ed7ee970", "gitDir": "test/corpus/repos/go", - "sha2": "b785199da3bee5e99b7433c1a15b61d59a6e227d" + "sha2": "07cc75a4b2bebd42e7a08f3747d33e772ac371a5" } ,{ "testCaseDescription": "go-type-declarations-replacement-insert-test", @@ -296,9 +296,9 @@ "filePaths": [ "type-declarations.go" ], - "sha1": "b785199da3bee5e99b7433c1a15b61d59a6e227d", + "sha1": "07cc75a4b2bebd42e7a08f3747d33e772ac371a5", "gitDir": "test/corpus/repos/go", - "sha2": "a78dca02c0d4bf6a0b5a04693ddff066812581c2" + "sha2": "d3f7238179c921f04b8c3b79a8756434e5e580b3" } ,{ "testCaseDescription": "go-type-declarations-delete-insert-test", @@ -459,9 +459,9 @@ "filePaths": [ "type-declarations.go" ], - "sha1": "a78dca02c0d4bf6a0b5a04693ddff066812581c2", + "sha1": "d3f7238179c921f04b8c3b79a8756434e5e580b3", "gitDir": "test/corpus/repos/go", - "sha2": "7d627f484954a3feb4d6baa12aa47a406ffa560a" + "sha2": "a40d73a824a4c78069e79c6b57eec71f1d920d5c" } ,{ "testCaseDescription": "go-type-declarations-replacement-test", @@ -622,9 +622,9 @@ "filePaths": [ "type-declarations.go" ], - "sha1": "7d627f484954a3feb4d6baa12aa47a406ffa560a", + "sha1": "a40d73a824a4c78069e79c6b57eec71f1d920d5c", "gitDir": "test/corpus/repos/go", - "sha2": "186fe13ae58034ba002448ba6d4d8d7a26b97946" + "sha2": "0cc4fc14c4268d0f8ba462c3c7323cfe395d9871" } ,{ "testCaseDescription": "go-type-declarations-delete-replacement-test", @@ -908,9 +908,9 @@ "filePaths": [ "type-declarations.go" ], - "sha1": "186fe13ae58034ba002448ba6d4d8d7a26b97946", + "sha1": "0cc4fc14c4268d0f8ba462c3c7323cfe395d9871", "gitDir": "test/corpus/repos/go", - "sha2": "f9e59f37cdd08942ce7acf0d1e37e9dbb3030c30" + "sha2": "892d806ca7dc84c4f54b0b2b086f7574fdd8eba5" } ,{ "testCaseDescription": "go-type-declarations-delete-test", @@ -1014,9 +1014,9 @@ "filePaths": [ "type-declarations.go" ], - "sha1": "f9e59f37cdd08942ce7acf0d1e37e9dbb3030c30", + "sha1": "892d806ca7dc84c4f54b0b2b086f7574fdd8eba5", "gitDir": "test/corpus/repos/go", - "sha2": "79f710e756e210b9fb48c064df567d1ddc066ff7" + "sha2": "34111d14dd5dbe452fdc167590f4348f139b38bd" } ,{ "testCaseDescription": "go-type-declarations-delete-rest-test", @@ -1120,7 +1120,7 @@ "filePaths": [ "type-declarations.go" ], - "sha1": "79f710e756e210b9fb48c064df567d1ddc066ff7", + "sha1": "34111d14dd5dbe452fdc167590f4348f139b38bd", "gitDir": "test/corpus/repos/go", - "sha2": "6bdc29fc5d5f9187e44f61d0a89f6668fc6c7971" + "sha2": "17230bf7eba6f34404f743cccd264ea120bc1e78" }] diff --git a/test/corpus/diff-summaries/go/unary-expressions.json b/test/corpus/diff-summaries/go/unary-expressions.json index bfb81bdd5..398476f6d 100644 --- a/test/corpus/diff-summaries/go/unary-expressions.json +++ b/test/corpus/diff-summaries/go/unary-expressions.json @@ -37,9 +37,9 @@ "filePaths": [ "unary-expressions.go" ], - "sha1": "13f92df845d6392fa1291e3fc084ac13040c08f1", + "sha1": "376daa245a78358736c0dc17d4026fecc4060fee", "gitDir": "test/corpus/repos/go", - "sha2": "c46feeff4630ae5d56fe8357aaeb0fac3655d295" + "sha2": "65c4ee1e8a427a7377a6a9806a05c495aba1c313" } ,{ "testCaseDescription": "go-unary-expressions-replacement-insert-test", @@ -113,9 +113,9 @@ "filePaths": [ "unary-expressions.go" ], - "sha1": "c46feeff4630ae5d56fe8357aaeb0fac3655d295", + "sha1": "65c4ee1e8a427a7377a6a9806a05c495aba1c313", "gitDir": "test/corpus/repos/go", - "sha2": "7c41b287df5040aef5b2d81e126c6e0944ad6abe" + "sha2": "a7a582327dd47797f6918292d50f91b0e65186b5" } ,{ "testCaseDescription": "go-unary-expressions-delete-insert-test", @@ -183,9 +183,9 @@ "filePaths": [ "unary-expressions.go" ], - "sha1": "7c41b287df5040aef5b2d81e126c6e0944ad6abe", + "sha1": "a7a582327dd47797f6918292d50f91b0e65186b5", "gitDir": "test/corpus/repos/go", - "sha2": "0184e979290a2d4740b26f579a56e9a87dcfb48d" + "sha2": "69392907cd272581e047a7f0715ee2a87cfc6fcb" } ,{ "testCaseDescription": "go-unary-expressions-replacement-test", @@ -253,9 +253,9 @@ "filePaths": [ "unary-expressions.go" ], - "sha1": "0184e979290a2d4740b26f579a56e9a87dcfb48d", + "sha1": "69392907cd272581e047a7f0715ee2a87cfc6fcb", "gitDir": "test/corpus/repos/go", - "sha2": "ccee4e8bbd8311d5eb440eeb69e8da988f712fed" + "sha2": "38f0ea80c998a387d101b8116a59ca65328244a3" } ,{ "testCaseDescription": "go-unary-expressions-delete-replacement-test", @@ -359,9 +359,9 @@ "filePaths": [ "unary-expressions.go" ], - "sha1": "ccee4e8bbd8311d5eb440eeb69e8da988f712fed", + "sha1": "38f0ea80c998a387d101b8116a59ca65328244a3", "gitDir": "test/corpus/repos/go", - "sha2": "df3c64c9ba594eda7f523c923897010c4d5c4e51" + "sha2": "fda266f6089bcaa289a02a624e9e434183b383aa" } ,{ "testCaseDescription": "go-unary-expressions-delete-test", @@ -405,9 +405,9 @@ "filePaths": [ "unary-expressions.go" ], - "sha1": "df3c64c9ba594eda7f523c923897010c4d5c4e51", + "sha1": "fda266f6089bcaa289a02a624e9e434183b383aa", "gitDir": "test/corpus/repos/go", - "sha2": "6eb6c01f356e1d1c7db1bd67c76dde80d7122fa5" + "sha2": "c643cb3d5b01025826a5a5b9e16132edeaeea1b1" } ,{ "testCaseDescription": "go-unary-expressions-delete-rest-test", @@ -448,7 +448,7 @@ "filePaths": [ "unary-expressions.go" ], - "sha1": "6eb6c01f356e1d1c7db1bd67c76dde80d7122fa5", + "sha1": "c643cb3d5b01025826a5a5b9e16132edeaeea1b1", "gitDir": "test/corpus/repos/go", - "sha2": "43145773a45c783b422170627a42548a2096bd13" + "sha2": "a2b011eb43cb7387b0c13f0af9c25357f0a815ea" }] diff --git a/test/corpus/diff-summaries/go/var-declarations.json b/test/corpus/diff-summaries/go/var-declarations.json index c515679bc..945b97071 100644 --- a/test/corpus/diff-summaries/go/var-declarations.json +++ b/test/corpus/diff-summaries/go/var-declarations.json @@ -25,9 +25,9 @@ "filePaths": [ "var-declarations.go" ], - "sha1": "2c4f1a7d61b8612d2033cb52d8999fa46516e22f", + "sha1": "19bdc3165d12d0552f650a7de287e8b34d5683f2", "gitDir": "test/corpus/repos/go", - "sha2": "dc4dc60dcda432e485f4d616a9f875fbca0f881d" + "sha2": "8730812ed6347a52c20e5a5089d405a4e577fa1e" } ,{ "testCaseDescription": "go-var-declarations-replacement-insert-test", @@ -71,9 +71,9 @@ "filePaths": [ "var-declarations.go" ], - "sha1": "dc4dc60dcda432e485f4d616a9f875fbca0f881d", + "sha1": "8730812ed6347a52c20e5a5089d405a4e577fa1e", "gitDir": "test/corpus/repos/go", - "sha2": "4b85fc2f57f4bc6a66bb4b8b92966541265bdd67" + "sha2": "f646b63efb077bc647a5e7e8bb321c62bc16ddb2" } ,{ "testCaseDescription": "go-var-declarations-delete-insert-test", @@ -171,9 +171,9 @@ "filePaths": [ "var-declarations.go" ], - "sha1": "4b85fc2f57f4bc6a66bb4b8b92966541265bdd67", + "sha1": "f646b63efb077bc647a5e7e8bb321c62bc16ddb2", "gitDir": "test/corpus/repos/go", - "sha2": "8d4d37d84948444b3bc2b6a7403e47cffd5b94d4" + "sha2": "13a52b0cd36015e0a1e08a25e1563814559351d9" } ,{ "testCaseDescription": "go-var-declarations-replacement-test", @@ -271,9 +271,9 @@ "filePaths": [ "var-declarations.go" ], - "sha1": "8d4d37d84948444b3bc2b6a7403e47cffd5b94d4", + "sha1": "13a52b0cd36015e0a1e08a25e1563814559351d9", "gitDir": "test/corpus/repos/go", - "sha2": "c31c5c608f54fd93b8c0174c5d1d0478f7975dd7" + "sha2": "6dd9800b518fb59ac2e155c649f46b962f0dbbfd" } ,{ "testCaseDescription": "go-var-declarations-delete-replacement-test", @@ -332,9 +332,9 @@ "filePaths": [ "var-declarations.go" ], - "sha1": "c31c5c608f54fd93b8c0174c5d1d0478f7975dd7", + "sha1": "6dd9800b518fb59ac2e155c649f46b962f0dbbfd", "gitDir": "test/corpus/repos/go", - "sha2": "e0841579a9b119018033f6a4d238c4d341ab6ae6" + "sha2": "726f052d1c6b3e896dcd81a8f0d0e094950ed35c" } ,{ "testCaseDescription": "go-var-declarations-delete-test", @@ -363,9 +363,9 @@ "filePaths": [ "var-declarations.go" ], - "sha1": "e0841579a9b119018033f6a4d238c4d341ab6ae6", + "sha1": "726f052d1c6b3e896dcd81a8f0d0e094950ed35c", "gitDir": "test/corpus/repos/go", - "sha2": "4bf6bbec5f935d91962a6424fee9c6987d28605f" + "sha2": "565e1fdc0cc5ee7d44fef03f34bc843a950f3d75" } ,{ "testCaseDescription": "go-var-declarations-delete-rest-test", @@ -394,7 +394,7 @@ "filePaths": [ "var-declarations.go" ], - "sha1": "4bf6bbec5f935d91962a6424fee9c6987d28605f", + "sha1": "565e1fdc0cc5ee7d44fef03f34bc843a950f3d75", "gitDir": "test/corpus/repos/go", - "sha2": "7c59f6ab63a331804d246ea0e5c5e44b82b96d4d" + "sha2": "567ea1f4317f1c40f6132f429590c78238313778" }] diff --git a/test/corpus/generated/go.json b/test/corpus/generated/go.json index 4b2d2ff8e..f67ee379a 100644 --- a/test/corpus/generated/go.json +++ b/test/corpus/generated/go.json @@ -137,6 +137,11 @@ "syntax": "imaginary-literals", "insert": "const (\na = 01i\nb = 1.e+100i\n)", "replacement": "const (\na = 02i\nb = 1.e+103i\n)" + }, + { + "syntax": "string-literals", + "insert": "const (\na = \"0\"\nb = \"hello world\"\n)", + "replacement": "const (\na = \"2\"\nb = \"hi\"\n)" } ] } diff --git a/test/corpus/repos/go b/test/corpus/repos/go index fca223b7d..da6ba76c0 160000 --- a/test/corpus/repos/go +++ b/test/corpus/repos/go @@ -1 +1 @@ -Subproject commit fca223b7d276d1418cf78d534ca2cb53f7d34531 +Subproject commit da6ba76c0e36f88a7c6255a43bfccca89a6e85ea