1
1
mirror of https://github.com/github/semantic.git synced 2024-11-23 08:27:56 +03:00

🔥 the integration-tests and generate-test-cases

This commit is contained in:
Timothy Clem 2017-02-27 08:50:54 -08:00
parent 9d28028fc6
commit 763ab482cc
195 changed files with 1 additions and 83846 deletions

View File

@ -5,7 +5,7 @@ env:
PATH: ~/.local/bin:~/Developer/Tools:~/Library/Haskell/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
targets:
test:
cmd: stack build :integration-test
cmd: stack build semantic-diff:test
keymap: cmd-u
errorMatch:
- \n(?<file>/[^:]+):(?<line>\d+):((?<col>\d+):)?

9
.gitmodules vendored
View File

@ -13,18 +13,9 @@
[submodule "test/repos/backbone"]
path = test/repos/backbone
url = https://github.com/jashkenas/backbone
[submodule "test/corpus/repos/javascript"]
path = test/corpus/repos/javascript
url = https://github.com/diff-fixtures/javascript
[submodule "vendor/hspec-expectations-pretty-diff"]
path = vendor/hspec-expectations-pretty-diff
url = https://github.com/rewinfrey/hspec-expectations-pretty-diff
[submodule "test/corpus/repos/go"]
path = test/corpus/repos/go
url = https://github.com/diff-fixtures/go.git
[submodule "test/corpus/repos/ruby"]
path = test/corpus/repos/ruby
url = https://github.com/diff-fixtures/ruby.git
[submodule "vendor/effects"]
path = vendor/effects
url = https://github.com/joshvera/effects.git

View File

@ -177,27 +177,6 @@ test-suite test
default-language: Haskell2010
default-extensions: DeriveFunctor, DeriveGeneric, FlexibleContexts, FlexibleInstances, OverloadedStrings, NoImplicitPrelude, RecordWildCards
test-suite integration-test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: SpecIntegration.hs
other-modules: IntegrationFormatSpec
, JSONTestCase
build-depends: base
, aeson
, bytestring
, containers
, Glob
, hspec >= 2.4.1
, hspec-expectations-pretty-diff
, semantic-diff
, split
, MissingH
, unordered-containers
ghc-options: -threaded -rtsopts -with-rtsopts=-N -j -pgml=script/g++
default-language: Haskell2010
default-extensions: DeriveGeneric, FlexibleInstances, OverloadedStrings, NoImplicitPrelude, RecordWildCards
source-repository head
type: git
location: https://github.com/github/semantic-diff

View File

@ -1,57 +0,0 @@
module IntegrationFormatSpec where
import Arguments
import Data.Aeson
import Data.List.Split
import Control.Exception
import qualified Data.ByteString.Lazy as DL
import JSONTestCase
import Test.Hspec (Spec, describe, it, SpecWith, runIO, parallel)
import Prelude
import Prologue
import Renderer
import SemanticDiff
import System.FilePath.Glob
import Data.Maybe (fromJust)
import Test.Hspec.Expectations.Pretty
catchException :: IO [Text] -> IO [Text]
catchException = handle errorHandler
where errorHandler :: (SomeException -> IO [Text])
errorHandler exception = return [toS . encode $ ["Crashed: " <> Prologue.show exception :: Text]]
assertDiffSummary :: JSONTestCase -> Format -> (Either String ExpectedResult -> Either String ExpectedResult -> Expectation) -> Expectation
assertDiffSummary JSONTestCase {..} format matcher = do
diffs <- fetchDiffs $ args gitDir (Prelude.head shas') (Prelude.last shas') filePaths format
result <- catchException . pure . pure . concatOutputs $ diffs
let actual = eitherDecode . DL.fromStrict . encodeUtf8 . fromJust . listToMaybe $ result
matcher actual (Right expectedResult)
where shas' = splitOn ".." shas
runTestsIn :: [FilePath] -> Format -> (Either String ExpectedResult -> Either String ExpectedResult -> Expectation) -> SpecWith ()
runTestsIn filePaths format matcher = do
contents <- runIO $ traverse DL.readFile filePaths
let filePathContents = zip filePaths contents
let jsonContents = (\(filePath, content) -> (filePath, eitherDecode content)) <$> filePathContents :: [(FilePath, Either String [JSONTestCase])]
traverse_ handleJSONTestCase jsonContents
where handleJSONTestCase :: (FilePath, Either String [JSONTestCase]) -> SpecWith ()
handleJSONTestCase (filePath, eitherJSONTestCase) =
case eitherJSONTestCase of
Left err -> it ("An error occurred " <> err <> " (" <> filePath <> ")") $ True `shouldBe` False
Right testCases -> traverse_ (\testCase -> it (testCaseDescription testCase) $ assertDiffSummary testCase format matcher) testCases
spec :: Maybe String -> Spec
spec maybeLanguage = parallel $ do
summaryFormatFiles <- runIO $ testCaseFiles maybeLanguage "test/corpus/diff-summaries"
summaryFormatToDoFiles <- runIO $ testCaseFiles maybeLanguage "test/corpus/diff-summaries-todo"
summaryFormatCrasherFiles <- runIO $ testCaseFiles maybeLanguage "test/corpus/diff-summary-crashers"
describe "Summary format" $ runTestsIn summaryFormatFiles Summary shouldBe
describe "Summary format todo" $ runTestsIn summaryFormatToDoFiles Summary shouldNotBe
describe "Summary format crashers todo" $ runTestsIn summaryFormatCrasherFiles Summary shouldBe
where
testCaseFiles :: Maybe String -> String -> IO [FilePath]
testCaseFiles maybeLanguage dir = case maybeLanguage of
Just language -> globDir1 (compile (language <> "/*.json")) dir
Nothing -> globDir1 (compile "*/*.json") dir

View File

@ -1,69 +0,0 @@
{-# LANGUAGE DeriveAnyClass, OverloadedStrings #-}
module JSONTestCase where
import Data.Aeson
import Data.Aeson.Types
import Data.Map.Strict as Map
import Data.HashMap.Strict as HM
import Prelude
import Prologue
data JSONMetaRepo = JSONMetaRepo { repoUrl :: !String
, language :: !String
, fileExt :: !String
, syntaxes :: ![JSONMetaSyntax]
, templateText :: !(Maybe String)
} deriving (Show, Generic, FromJSON)
data JSONMetaSyntax = JSONMetaSyntax { template :: !(Maybe String)
, syntax :: !String
, insert :: !String
, replacement :: !String
} deriving (Show, Generic, FromJSON)
data JSONTestCase = JSONTestCase { gitDir :: !String
, testCaseDescription :: !String
, filePaths :: ![String]
, shas :: !String
, patch :: ![String]
, expectedResult :: !ExpectedResult
} deriving (Show, Generic, FromJSON)
data ExpectedResult = SummaryResult (Map Text (Map Text [Value]))
| JSONResult (Map Text Value)
deriving (Show, Generic, Eq)
-- | These replace the defaultOptions normally used by genericToEncoding.
-- | All options are default except for `sumEncoding`, which uses the `UntaggedValue`
-- | option to prevent the sum type `ExpectedResult` from encoding with a `tag` and `contents`
-- | fields when a JSONTestCase is encoded.
jsonTestCaseOptions :: Options
jsonTestCaseOptions = Options { fieldLabelModifier = id
, constructorTagModifier = id
, allNullaryToStringTag = False
, omitNothingFields = True
, sumEncoding = UntaggedValue
, unwrapUnaryRecords = False
}
instance ToJSON JSONTestCase where
toJSON = genericToJSON jsonTestCaseOptions
toEncoding = genericToEncoding jsonTestCaseOptions
instance ToJSON ExpectedResult where
toJSON = genericToJSON jsonTestCaseOptions
toEncoding = genericToEncoding jsonTestCaseOptions
-- | We have to parse the specific formats of the ExpectedResults based on their keys.
-- | This is how we determine which ExpectedResult constructor to use.
instance FromJSON ExpectedResult where
parseJSON = Data.Aeson.withObject "ExpectedResult" $ \o ->
SummaryResult <$> summaryResultValues o <|>
JSONResult <$> jsonResultValues o
where
jsonResultValues :: Object -> Parser (Map Text Value)
jsonResultValues o = Map.fromList <$> (fromKey "oids" <> fromKey "rows" <> fromKey "paths")
where fromKey k = (\a -> [(k, a)]) <$> o .: k
summaryResultValues :: Object -> Parser (Map Text (Map Text [Value]))
summaryResultValues o = Map.fromList <$> (fromKey "changes" <> fromKey "errors")
where fromKey k = (\a -> [(k :: Text, Map.fromList . HM.toList $ a )] ) <$> o .: k

View File

@ -1,24 +0,0 @@
{-# LANGUAGE FlexibleContexts #-}
module Main where
import Prologue
import Prelude (String)
import Data.List
import Data.List.Utils
import qualified IntegrationFormatSpec
import Test.Hspec
import System.Environment (withArgs)
main :: IO ()
main = do
args <- getArgs
let (language, rest) = parseCustomArgs args
withArgs rest . hspec . parallel $ describe "Integration Format Specs" (IntegrationFormatSpec.spec language)
where
parseCustomArgs :: [String] -> (Maybe String, [String])
parseCustomArgs args = case partitioned of
(l:_, rest) -> (toLang l, rest)
_ -> (Nothing, args)
where
partitioned = partition (startswith "--language") args
toLang s = Just $ replace "--language=" "" s

View File

@ -1,418 +0,0 @@
[{
"testCaseDescription": "go-array-types-setup-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"patch": [
"diff --git a/array-types.go b/array-types.go",
"index e69de29b..79058077 100644",
"--- a/array-types.go",
"+++ b/array-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "dd275c4f09cc46a085621fe3f9d293f9e0c3427d..6bdff60b57b35cfcfb1c877f120c146637db874d"
}
,{
"testCaseDescription": "go-array-types-insert-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
14
]
}
},
"summary": "Added the 'a' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"patch": [
"diff --git a/array-types.go b/array-types.go",
"index 79058077..3f73aea0 100644",
"--- a/array-types.go",
"+++ b/array-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+type a [2+2]x",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "6bdff60b57b35cfcfb1c877f120c146637db874d..65b3b04b9eb8c1efb4abed1d1f5cd18b0cf211c7"
}
,{
"testCaseDescription": "go-array-types-replacement-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
9
],
"end": [
4,
10
]
},
{
"start": [
4,
9
],
"end": [
4,
10
]
}
]
},
"summary": "Replaced '2' with '1' in the 'a' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
11
],
"end": [
4,
12
]
},
{
"start": [
4,
11
],
"end": [
4,
12
]
}
]
},
"summary": "Replaced '2' with '1' in the 'a' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
13
],
"end": [
4,
14
]
},
{
"start": [
4,
13
],
"end": [
4,
14
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'y' identifier in the 'a' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"patch": [
"diff --git a/array-types.go b/array-types.go",
"index 3f73aea0..49783126 100644",
"--- a/array-types.go",
"+++ b/array-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-type a [2+2]x",
"+type a [1+1]y",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "65b3b04b9eb8c1efb4abed1d1f5cd18b0cf211c7..e41a22e39e6be090a894ae3ca6727e0c2fb499a8"
}
,{
"testCaseDescription": "go-array-types-delete-replacement-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
9
],
"end": [
4,
10
]
},
{
"start": [
4,
9
],
"end": [
4,
10
]
}
]
},
"summary": "Replaced '1' with '2' in the 'a' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
11
],
"end": [
4,
12
]
},
{
"start": [
4,
11
],
"end": [
4,
12
]
}
]
},
"summary": "Replaced '1' with '2' in the 'a' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
13
],
"end": [
4,
14
]
},
{
"start": [
4,
13
],
"end": [
4,
14
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'x' identifier in the 'a' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"patch": [
"diff --git a/array-types.go b/array-types.go",
"index 49783126..3f73aea0 100644",
"--- a/array-types.go",
"+++ b/array-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-type a [1+1]y",
"+type a [2+2]x",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "e41a22e39e6be090a894ae3ca6727e0c2fb499a8..8526d819400848c08871bbc571369d972db212ce"
}
,{
"testCaseDescription": "go-array-types-delete-insert-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
14
]
}
},
"summary": "Deleted the 'a' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"patch": [
"diff --git a/array-types.go b/array-types.go",
"index 3f73aea0..79058077 100644",
"--- a/array-types.go",
"+++ b/array-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-type a [2+2]x",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "8526d819400848c08871bbc571369d972db212ce..d63b29265993d9c65e5d3d45180e9179c3155919"
}
,{
"testCaseDescription": "go-array-types-teardown-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"patch": [
"diff --git a/array-types.go b/array-types.go",
"index 79058077..e69de29b 100644",
"--- a/array-types.go",
"+++ b/array-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "d63b29265993d9c65e5d3d45180e9179c3155919..9ff6020ed6d316a29f1c88377d7c240617263a9f"
}]

View File

@ -1,430 +0,0 @@
[{
"testCaseDescription": "go-array-with-implicit-length-setup-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index e69de29b..79058077 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "bcd4bf3659a22076c572c879141d7ef13cadf8ba..84303d9cea50b86ab4d8f3477ea0841911d4427c"
}
,{
"testCaseDescription": "go-array-with-implicit-length-insert-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"insert": {
"start": [
4,
7
],
"end": [
4,
29
]
}
},
"summary": "Added the 'a1' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index 79058077..a53dc8c5 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+const a1 = [...]int{1, 2, 3}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "84303d9cea50b86ab4d8f3477ea0841911d4427c..6f23ae5fac8069864b3a5fe8b64198a81b97286e"
}
,{
"testCaseDescription": "go-array-with-implicit-length-replacement-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"insert": {
"start": [
4,
21
],
"end": [
4,
22
]
}
},
"summary": "Added '4' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"insert": {
"start": [
4,
23
],
"end": [
4,
24
]
}
},
"summary": "Added '5' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
21
],
"end": [
4,
22
]
},
{
"start": [
4,
25
],
"end": [
4,
26
]
}
]
},
"summary": "Replaced '1' with '6' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
24
],
"end": [
4,
25
]
}
},
"summary": "Deleted '2' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
27
],
"end": [
4,
28
]
}
},
"summary": "Deleted '3' in the [...]int composite_literal of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index a53dc8c5..e9e3d08f 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const a1 = [...]int{1, 2, 3}",
"+const a1 = [...]int{4,5,6}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "6f23ae5fac8069864b3a5fe8b64198a81b97286e..ee620c3ebf598b4fb0f1aa4d6493bed828059de2"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-replacement-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"insert": {
"start": [
4,
21
],
"end": [
4,
22
]
}
},
"summary": "Added '1' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
21
],
"end": [
4,
22
]
},
{
"start": [
4,
24
],
"end": [
4,
25
]
}
]
},
"summary": "Replaced '4' with '2' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"insert": {
"start": [
4,
27
],
"end": [
4,
28
]
}
},
"summary": "Added '3' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
23
],
"end": [
4,
24
]
}
},
"summary": "Deleted '5' in the [...]int composite_literal of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
25
],
"end": [
4,
26
]
}
},
"summary": "Deleted '6' in the [...]int composite_literal of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index e9e3d08f..a53dc8c5 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const a1 = [...]int{4,5,6}",
"+const a1 = [...]int{1, 2, 3}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "ee620c3ebf598b4fb0f1aa4d6493bed828059de2..61516e3a8c818cb0812c8d4dcccd3e51b51b552c"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-insert-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"delete": {
"start": [
4,
7
],
"end": [
4,
29
]
}
},
"summary": "Deleted the 'a1' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index a53dc8c5..79058077 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const a1 = [...]int{1, 2, 3}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "61516e3a8c818cb0812c8d4dcccd3e51b51b552c..2d0d3b75a1aa4688e2ee1aae6c5388cd39e396a4"
}
,{
"testCaseDescription": "go-array-with-implicit-length-teardown-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index 79058077..e69de29b 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "2d0d3b75a1aa4688e2ee1aae6c5388cd39e396a4..fad96915d832ac6e13a3a067b6bc46fb5150823d"
}]

View File

@ -1,580 +0,0 @@
[{
"testCaseDescription": "go-assignment-statements-setup-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"patch": [
"diff --git a/assignment-statements.go b/assignment-statements.go",
"index e69de29b..79058077 100644",
"--- a/assignment-statements.go",
"+++ b/assignment-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "e2c2101dadc49e784ab17192eba4aad3c2c5d13b..79a597ca63c3f7aba661f01ecaa3ec0c909f019d"
}
,{
"testCaseDescription": "go-assignment-statements-insert-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the 'a' assignment in the main function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
13
]
}
},
"summary": "Added the 'b, c' assignment in the main function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
7
]
}
},
"summary": "Added the 'd' assignment in the main function"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
7
]
}
},
"summary": "Added the 'e' assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"patch": [
"diff --git a/assignment-statements.go b/assignment-statements.go",
"index 79058077..072782b1 100644",
"--- a/assignment-statements.go",
"+++ b/assignment-statements.go",
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
"+a = 1",
"+b, c += 2, 3",
"+d *= 3",
"+e += 1",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "79a597ca63c3f7aba661f01ecaa3ec0c909f019d..7a3bfc9e5f9f145637904b08f975bf89cfc743c6"
}
,{
"testCaseDescription": "go-assignment-statements-replacement-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in an assignment to x of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in an assignment to y, c of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
2
]
},
{
"start": [
6,
1
],
"end": [
6,
2
]
}
]
},
"summary": "Replaced the 'd' identifier with the 'z' identifier in an assignment to z of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
1
],
"end": [
7,
2
]
},
{
"start": [
7,
1
],
"end": [
7,
2
]
}
]
},
"summary": "Replaced the 'e' identifier with the 'h' identifier in an assignment to h of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"patch": [
"diff --git a/assignment-statements.go b/assignment-statements.go",
"index 072782b1..2e6b444c 100644",
"--- a/assignment-statements.go",
"+++ b/assignment-statements.go",
"@@ -1,8 +1,8 @@",
" package main",
" ",
" func main() {",
"-a = 1",
"-b, c += 2, 3",
"-d *= 3",
"-e += 1",
"+x = 1",
"+y, c += 2, 3",
"+z *= 3",
"+h += 1",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "7a3bfc9e5f9f145637904b08f975bf89cfc743c6..55fb8ccd8e99c214fd184281948c01d1fb7ad7d1"
}
,{
"testCaseDescription": "go-assignment-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in an assignment to a of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in an assignment to b, c of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
2
]
},
{
"start": [
6,
1
],
"end": [
6,
2
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'd' identifier in an assignment to d of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
1
],
"end": [
7,
2
]
},
{
"start": [
7,
1
],
"end": [
7,
2
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'e' identifier in an assignment to e of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"patch": [
"diff --git a/assignment-statements.go b/assignment-statements.go",
"index 2e6b444c..072782b1 100644",
"--- a/assignment-statements.go",
"+++ b/assignment-statements.go",
"@@ -1,8 +1,8 @@",
" package main",
" ",
" func main() {",
"-x = 1",
"-y, c += 2, 3",
"-z *= 3",
"-h += 1",
"+a = 1",
"+b, c += 2, 3",
"+d *= 3",
"+e += 1",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "55fb8ccd8e99c214fd184281948c01d1fb7ad7d1..ad10bb2d2952b00ac63e7e3c025cdb8312a931ac"
}
,{
"testCaseDescription": "go-assignment-statements-delete-insert-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Deleted the 'a' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
13
]
}
},
"summary": "Deleted the 'b, c' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
7
]
}
},
"summary": "Deleted the 'd' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
7
]
}
},
"summary": "Deleted the 'e' assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"patch": [
"diff --git a/assignment-statements.go b/assignment-statements.go",
"index 072782b1..79058077 100644",
"--- a/assignment-statements.go",
"+++ b/assignment-statements.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-a = 1",
"-b, c += 2, 3",
"-d *= 3",
"-e += 1",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "ad10bb2d2952b00ac63e7e3c025cdb8312a931ac..bf0fad2433a6cb884471ee65ed32b0797c855306"
}
,{
"testCaseDescription": "go-assignment-statements-teardown-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
"patch": [
"diff --git a/assignment-statements.go b/assignment-statements.go",
"index 79058077..e69de29b 100644",
"--- a/assignment-statements.go",
"+++ b/assignment-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "bf0fad2433a6cb884471ee65ed32b0797c855306..844563260fa09b99d4cf94ec2ba5a65d9a5e6ded"
}]

View File

@ -1,490 +0,0 @@
[{
"testCaseDescription": "go-call-expressions-setup-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"patch": [
"diff --git a/call-expressions.go b/call-expressions.go",
"index e69de29b..79058077 100644",
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "373c46bee0b8179cf5d2f00412173597e503cdd3..3647e58e37fefb500235f7b03c45bf4fdf4fd353"
}
,{
"testCaseDescription": "go-call-expressions-insert-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
11
]
}
},
"summary": "Added the 'x(b, c)' function call in the main function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Added the 'y(b, c)' function call in the main function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
11
]
}
},
"summary": "Added the 'z(b, c)' function call in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"patch": [
"diff --git a/call-expressions.go b/call-expressions.go",
"index 79058077..72918e59 100644",
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
"@@ -1,5 +1,7 @@",
" package main",
" ",
" func main() {",
"-",
"+x(b, c...)",
"+y(b, c,)",
"+z(b,c...,)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "3647e58e37fefb500235f7b03c45bf4fdf4fd353..fdf200e5448db3d0c33a098158f58cc50a96bf92"
}
,{
"testCaseDescription": "go-call-expressions-replacement-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the a(b, c) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the b(b, c) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
2
]
},
{
"start": [
6,
1
],
"end": [
6,
2
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'c' identifier in the c(b, c) function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"patch": [
"diff --git a/call-expressions.go b/call-expressions.go",
"index 72918e59..2d5e765c 100644",
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
"@@ -1,7 +1,7 @@",
" package main",
" ",
" func main() {",
"-x(b, c...)",
"-y(b, c,)",
"-z(b,c...,)",
"+a(b, c...)",
"+b(b, c,)",
"+c(b,c...,)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "fdf200e5448db3d0c33a098158f58cc50a96bf92..fd62f603e7f0fbcd87c5d3e9259b56af869c8df9"
}
,{
"testCaseDescription": "go-call-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the x(b, c) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the y(b, c) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
2
]
},
{
"start": [
6,
1
],
"end": [
6,
2
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'z' identifier in the z(b, c) function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"patch": [
"diff --git a/call-expressions.go b/call-expressions.go",
"index 2d5e765c..72918e59 100644",
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
"@@ -1,7 +1,7 @@",
" package main",
" ",
" func main() {",
"-a(b, c...)",
"-b(b, c,)",
"-c(b,c...,)",
"+x(b, c...)",
"+y(b, c,)",
"+z(b,c...,)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "fd62f603e7f0fbcd87c5d3e9259b56af869c8df9..c0baf110edbc43a5181ed54a0275ec81f704845a"
}
,{
"testCaseDescription": "go-call-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'x(b, c)' function call in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the 'y(b, c)' function call in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
11
]
}
},
"summary": "Deleted the 'z(b, c)' function call in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"patch": [
"diff --git a/call-expressions.go b/call-expressions.go",
"index 72918e59..79058077 100644",
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
"@@ -1,7 +1,5 @@",
" package main",
" ",
" func main() {",
"-x(b, c...)",
"-y(b, c,)",
"-z(b,c...,)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "c0baf110edbc43a5181ed54a0275ec81f704845a..4877e00f14f3b561922b7e0cc5388fee41ed8c13"
}
,{
"testCaseDescription": "go-call-expressions-teardown-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"patch": [
"diff --git a/call-expressions.go b/call-expressions.go",
"index 79058077..e69de29b 100644",
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "4877e00f14f3b561922b7e0cc5388fee41ed8c13..0bd1a3a45c722927b5d7c0c96d296bc01c1b333c"
}]

View File

@ -1,286 +0,0 @@
[{
"testCaseDescription": "go-case-statements-setup-test",
"expectedResult": {
"changes": {
"case-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"case-statements.go"
],
"patch": [
"diff --git a/case-statements.go b/case-statements.go",
"index e69de29b..79058077 100644",
"--- a/case-statements.go",
"+++ b/case-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "084c915d8b993e13da207d668c798c4e3e6f3baa..1617f204e24679f90810da7e6d2d103138a72eb1"
}
,{
"testCaseDescription": "go-case-statements-insert-test",
"expectedResult": {
"changes": {
"case-statements.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
11
]
}
},
"summary": "Added a switch statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"case-statements.go"
],
"patch": [
"diff --git a/case-statements.go b/case-statements.go",
"index 79058077..0b4c9561 100644",
"--- a/case-statements.go",
"+++ b/case-statements.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+switch { }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "1617f204e24679f90810da7e6d2d103138a72eb1..357a5f5d499d2c8a838737609f072a7b1e05d332"
}
,{
"testCaseDescription": "go-case-statements-replacement-test",
"expectedResult": {
"changes": {
"case-statements.go": [
{
"span": {
"insert": {
"start": [
4,
10
],
"end": [
4,
24
]
}
},
"summary": "Added the 'case foo' case statement in a switch statement of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"case-statements.go"
],
"patch": [
"diff --git a/case-statements.go b/case-statements.go",
"index 0b4c9561..27b70908 100644",
"--- a/case-statements.go",
"+++ b/case-statements.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-switch { }",
"+switch { case foo: f1() }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "357a5f5d499d2c8a838737609f072a7b1e05d332..1eb14111e36eb50e0191ad522c47e39f5c117353"
}
,{
"testCaseDescription": "go-case-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"case-statements.go": [
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
24
]
}
},
"summary": "Deleted the 'case foo' case statement in a switch statement of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"case-statements.go"
],
"patch": [
"diff --git a/case-statements.go b/case-statements.go",
"index 27b70908..0b4c9561 100644",
"--- a/case-statements.go",
"+++ b/case-statements.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-switch { case foo: f1() }",
"+switch { }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "1eb14111e36eb50e0191ad522c47e39f5c117353..140b9733bf13312661aa4907e1e1585c185b8300"
}
,{
"testCaseDescription": "go-case-statements-delete-insert-test",
"expectedResult": {
"changes": {
"case-statements.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
11
]
}
},
"summary": "Deleted a switch statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"case-statements.go"
],
"patch": [
"diff --git a/case-statements.go b/case-statements.go",
"index 0b4c9561..79058077 100644",
"--- a/case-statements.go",
"+++ b/case-statements.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-switch { }",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "140b9733bf13312661aa4907e1e1585c185b8300..9141ef00e2e4d9fdd72051f74a4da988a046f9ed"
}
,{
"testCaseDescription": "go-case-statements-teardown-test",
"expectedResult": {
"changes": {
"case-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"case-statements.go"
],
"patch": [
"diff --git a/case-statements.go b/case-statements.go",
"index 79058077..e69de29b 100644",
"--- a/case-statements.go",
"+++ b/case-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "9141ef00e2e4d9fdd72051f74a4da988a046f9ed..d42e8128993c8291af25742eee205e792ec356b4"
}]

View File

@ -1,604 +0,0 @@
[{
"testCaseDescription": "go-channel-types-setup-test",
"expectedResult": {
"changes": {
"channel-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"channel-types.go"
],
"patch": [
"diff --git a/channel-types.go b/channel-types.go",
"index e69de29b..79058077 100644",
"--- a/channel-types.go",
"+++ b/channel-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "a85665c66f8582bcde0abe05f4203f3696378040..d21a5042b8c05cc5e193d6b65680852b4808685c"
}
,{
"testCaseDescription": "go-channel-types-insert-test",
"expectedResult": {
"changes": {
"channel-types.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
19
]
}
},
"summary": "Added the 'c1' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
26
]
}
},
"summary": "Added the 'c2' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
21
]
}
},
"summary": "Added the 'c3' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"channel-types.go"
],
"patch": [
"diff --git a/channel-types.go b/channel-types.go",
"index 79058077..1c10bf6f 100644",
"--- a/channel-types.go",
"+++ b/channel-types.go",
"@@ -1,5 +1,9 @@",
" package main",
" ",
" func main() {",
"-",
"+type (",
"+c1 chan<- chan int",
"+c2 chan<- chan<- struct{}",
"+c3 chan<- <-chan int",
"+)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "d21a5042b8c05cc5e193d6b65680852b4808685c..6580596e5489e682cecab66160c5ed0574514755"
}
,{
"testCaseDescription": "go-channel-types-replacement-test",
"expectedResult": {
"changes": {
"channel-types.go": [
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
3
]
},
{
"start": [
5,
1
],
"end": [
5,
3
]
}
]
},
"summary": "Replaced the 'c1' identifier with the 'c2' identifier in the 'c2' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
16
],
"end": [
5,
19
]
},
{
"start": [
5,
16
],
"end": [
5,
22
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the chan string channel type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
3
]
},
{
"start": [
6,
1
],
"end": [
6,
3
]
}
]
},
"summary": "Replaced the 'c2' identifier with the 'c3' identifier in the 'c3' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
1
],
"end": [
7,
3
]
},
{
"start": [
7,
1
],
"end": [
7,
3
]
}
]
},
"summary": "Replaced the 'c3' identifier with the 'c4' identifier in the 'c4' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
18
],
"end": [
7,
21
]
},
{
"start": [
7,
18
],
"end": [
7,
24
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the <-chan string channel type of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"channel-types.go"
],
"patch": [
"diff --git a/channel-types.go b/channel-types.go",
"index 1c10bf6f..196a7928 100644",
"--- a/channel-types.go",
"+++ b/channel-types.go",
"@@ -2,8 +2,8 @@ package main",
" ",
" func main() {",
" type (",
"-c1 chan<- chan int",
"-c2 chan<- chan<- struct{}",
"-c3 chan<- <-chan int",
"+c2 chan<- chan string",
"+c3 chan<- chan<- struct{}",
"+c4 chan<- <-chan string",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "6580596e5489e682cecab66160c5ed0574514755..a0f3391f2532d0fb429ee42aaa4798f4cf7e5b69"
}
,{
"testCaseDescription": "go-channel-types-delete-replacement-test",
"expectedResult": {
"changes": {
"channel-types.go": [
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
3
]
},
{
"start": [
5,
1
],
"end": [
5,
3
]
}
]
},
"summary": "Replaced the 'c2' identifier with the 'c1' identifier in the 'c1' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
16
],
"end": [
5,
22
]
},
{
"start": [
5,
16
],
"end": [
5,
19
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the chan int channel type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
3
]
},
{
"start": [
6,
1
],
"end": [
6,
3
]
}
]
},
"summary": "Replaced the 'c3' identifier with the 'c2' identifier in the 'c2' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
1
],
"end": [
7,
3
]
},
{
"start": [
7,
1
],
"end": [
7,
3
]
}
]
},
"summary": "Replaced the 'c4' identifier with the 'c3' identifier in the 'c3' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
18
],
"end": [
7,
24
]
},
{
"start": [
7,
18
],
"end": [
7,
21
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the <-chan int channel type of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"channel-types.go"
],
"patch": [
"diff --git a/channel-types.go b/channel-types.go",
"index 196a7928..1c10bf6f 100644",
"--- a/channel-types.go",
"+++ b/channel-types.go",
"@@ -2,8 +2,8 @@ package main",
" ",
" func main() {",
" type (",
"-c2 chan<- chan string",
"-c3 chan<- chan<- struct{}",
"-c4 chan<- <-chan string",
"+c1 chan<- chan int",
"+c2 chan<- chan<- struct{}",
"+c3 chan<- <-chan int",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "a0f3391f2532d0fb429ee42aaa4798f4cf7e5b69..ce282aa3733f82ffebfd127de4095c04fa9b0955"
}
,{
"testCaseDescription": "go-channel-types-delete-insert-test",
"expectedResult": {
"changes": {
"channel-types.go": [
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
19
]
}
},
"summary": "Deleted the 'c1' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
26
]
}
},
"summary": "Deleted the 'c2' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
21
]
}
},
"summary": "Deleted the 'c3' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"channel-types.go"
],
"patch": [
"diff --git a/channel-types.go b/channel-types.go",
"index 1c10bf6f..79058077 100644",
"--- a/channel-types.go",
"+++ b/channel-types.go",
"@@ -1,9 +1,5 @@",
" package main",
" ",
" func main() {",
"-type (",
"-c1 chan<- chan int",
"-c2 chan<- chan<- struct{}",
"-c3 chan<- <-chan int",
"-)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "ce282aa3733f82ffebfd127de4095c04fa9b0955..b364521a12983a0480c9abb672c23e7d2a373e28"
}
,{
"testCaseDescription": "go-channel-types-teardown-test",
"expectedResult": {
"changes": {
"channel-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"channel-types.go"
],
"patch": [
"diff --git a/channel-types.go b/channel-types.go",
"index 79058077..e69de29b 100644",
"--- a/channel-types.go",
"+++ b/channel-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "b364521a12983a0480c9abb672c23e7d2a373e28..4c1430949679a459f5530eccab8efc8046a3abc7"
}]

View File

@ -1,218 +0,0 @@
[{
"testCaseDescription": "go-comment-setup-test",
"expectedResult": {
"changes": {
"comment.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"comment.go"
],
"patch": [
"diff --git a/comment.go b/comment.go",
"index e69de29b..79058077 100644",
"--- a/comment.go",
"+++ b/comment.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "a1fc9648f91cfb841a93722bdf033369a8b2ec1c..141f6c7370b64be19098cf131c64fff22ecfae1a"
}
,{
"testCaseDescription": "go-comment-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"comment.go"
],
"patch": [
"diff --git a/comment.go b/comment.go",
"index 79058077..61c10ca2 100644",
"--- a/comment.go",
"+++ b/comment.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+// this is a comment",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "141f6c7370b64be19098cf131c64fff22ecfae1a..f6115129baf32cdb1e47ba1760e6be298af29b36"
}
,{
"testCaseDescription": "go-comment-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"comment.go"
],
"patch": [
"diff --git a/comment.go b/comment.go",
"index 61c10ca2..8e149b7b 100644",
"--- a/comment.go",
"+++ b/comment.go",
"@@ -1,5 +1,7 @@",
" package main",
" ",
" func main() {",
"-// this is a comment",
"+/*",
"+this is a block comment",
"+*/",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "f6115129baf32cdb1e47ba1760e6be298af29b36..5914d3b3f69f8c27bdc2662d10485bd4d18a2e1b"
}
,{
"testCaseDescription": "go-comment-delete-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"comment.go"
],
"patch": [
"diff --git a/comment.go b/comment.go",
"index 8e149b7b..61c10ca2 100644",
"--- a/comment.go",
"+++ b/comment.go",
"@@ -1,7 +1,5 @@",
" package main",
" ",
" func main() {",
"-/*",
"-this is a block comment",
"-*/",
"+// this is a comment",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "5914d3b3f69f8c27bdc2662d10485bd4d18a2e1b..b35645e04c8084ef015813094178217915053082"
}
,{
"testCaseDescription": "go-comment-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"comment.go"
],
"patch": [
"diff --git a/comment.go b/comment.go",
"index 61c10ca2..79058077 100644",
"--- a/comment.go",
"+++ b/comment.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-// this is a comment",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "b35645e04c8084ef015813094178217915053082..81009a6559400aa0f18f9f8cd63e5d53fdbf02a6"
}
,{
"testCaseDescription": "go-comment-teardown-test",
"expectedResult": {
"changes": {
"comment.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"comment.go"
],
"patch": [
"diff --git a/comment.go b/comment.go",
"index 79058077..e69de29b 100644",
"--- a/comment.go",
"+++ b/comment.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "81009a6559400aa0f18f9f8cd63e5d53fdbf02a6..8566e6b82b82cdb946f31050cd67e81c7a70a4f8"
}]

View File

@ -1,538 +0,0 @@
[{
"testCaseDescription": "go-const-declarations-with-types-setup-test",
"expectedResult": {
"changes": {
"const-declarations-with-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-with-types.go"
],
"patch": [
"diff --git a/const-declarations-with-types.go b/const-declarations-with-types.go",
"index e69de29b..79058077 100644",
"--- a/const-declarations-with-types.go",
"+++ b/const-declarations-with-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "e569ad4f2564b872ede19dff450315ba540c3076..66684e941dfc86595981306872ef4c33a9fce21a"
}
,{
"testCaseDescription": "go-const-declarations-with-types-insert-test",
"expectedResult": {
"changes": {
"const-declarations-with-types.go": [
{
"span": {
"insert": {
"start": [
4,
7
],
"end": [
4,
11
]
}
},
"summary": "Added the 'zero' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
4,
12
],
"end": [
4,
15
]
}
},
"summary": "Added the 'int' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
4,
18
],
"end": [
4,
19
]
}
},
"summary": "Added '0' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-with-types.go"
],
"patch": [
"diff --git a/const-declarations-with-types.go b/const-declarations-with-types.go",
"index 79058077..0adafada 100644",
"--- a/const-declarations-with-types.go",
"+++ b/const-declarations-with-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+const zero int = 0",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "66684e941dfc86595981306872ef4c33a9fce21a..42b30d03e59093b632266908655473fd65f5f2eb"
}
,{
"testCaseDescription": "go-const-declarations-with-types-replacement-test",
"expectedResult": {
"changes": {
"const-declarations-with-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
7
],
"end": [
4,
11
]
},
{
"start": [
4,
7
],
"end": [
4,
10
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'one' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
4,
12
],
"end": [
4,
15
]
}
},
"summary": "Added the 'two' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
12
],
"end": [
4,
15
]
},
{
"start": [
4,
16
],
"end": [
4,
23
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'uiint64' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
18
],
"end": [
4,
19
]
},
{
"start": [
4,
26
],
"end": [
4,
27
]
}
]
},
"summary": "Replaced '0' with '1' in the main function"
},
{
"span": {
"insert": {
"start": [
4,
29
],
"end": [
4,
30
]
}
},
"summary": "Added '2' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-with-types.go"
],
"patch": [
"diff --git a/const-declarations-with-types.go b/const-declarations-with-types.go",
"index 0adafada..901589bf 100644",
"--- a/const-declarations-with-types.go",
"+++ b/const-declarations-with-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const zero int = 0",
"+const one, two uiint64 = 1, 2",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "42b30d03e59093b632266908655473fd65f5f2eb..22edff1148e1572a99d19f30e690a3f64b662f4f"
}
,{
"testCaseDescription": "go-const-declarations-with-types-delete-replacement-test",
"expectedResult": {
"changes": {
"const-declarations-with-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
7
],
"end": [
4,
10
]
},
{
"start": [
4,
7
],
"end": [
4,
11
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'zero' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
15
]
}
},
"summary": "Deleted the 'two' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
16
],
"end": [
4,
23
]
},
{
"start": [
4,
12
],
"end": [
4,
15
]
}
]
},
"summary": "Replaced the 'uiint64' identifier with the 'int' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
26
],
"end": [
4,
27
]
},
{
"start": [
4,
18
],
"end": [
4,
19
]
}
]
},
"summary": "Replaced '1' with '0' in the main function"
},
{
"span": {
"delete": {
"start": [
4,
29
],
"end": [
4,
30
]
}
},
"summary": "Deleted '2' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-with-types.go"
],
"patch": [
"diff --git a/const-declarations-with-types.go b/const-declarations-with-types.go",
"index 901589bf..0adafada 100644",
"--- a/const-declarations-with-types.go",
"+++ b/const-declarations-with-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const one, two uiint64 = 1, 2",
"+const zero int = 0",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "22edff1148e1572a99d19f30e690a3f64b662f4f..fd5e7578b399409eefac5e83a4a5189c0da7c1f0"
}
,{
"testCaseDescription": "go-const-declarations-with-types-delete-insert-test",
"expectedResult": {
"changes": {
"const-declarations-with-types.go": [
{
"span": {
"delete": {
"start": [
4,
7
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'zero' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
15
]
}
},
"summary": "Deleted the 'int' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
4,
18
],
"end": [
4,
19
]
}
},
"summary": "Deleted '0' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-with-types.go"
],
"patch": [
"diff --git a/const-declarations-with-types.go b/const-declarations-with-types.go",
"index 0adafada..79058077 100644",
"--- a/const-declarations-with-types.go",
"+++ b/const-declarations-with-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const zero int = 0",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "fd5e7578b399409eefac5e83a4a5189c0da7c1f0..007d654f99ed0a26e9857d991a181da97005bcb2"
}
,{
"testCaseDescription": "go-const-declarations-with-types-teardown-test",
"expectedResult": {
"changes": {
"const-declarations-with-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-with-types.go"
],
"patch": [
"diff --git a/const-declarations-with-types.go b/const-declarations-with-types.go",
"index 79058077..e69de29b 100644",
"--- a/const-declarations-with-types.go",
"+++ b/const-declarations-with-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "007d654f99ed0a26e9857d991a181da97005bcb2..acb9e5e1c505bf2f3ccd977641fe0084ff8d7d58"
}]

View File

@ -1,424 +0,0 @@
[{
"testCaseDescription": "go-const-declarations-without-types-setup-test",
"expectedResult": {
"changes": {
"const-declarations-without-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-without-types.go"
],
"patch": [
"diff --git a/const-declarations-without-types.go b/const-declarations-without-types.go",
"index e69de29b..79058077 100644",
"--- a/const-declarations-without-types.go",
"+++ b/const-declarations-without-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "d01762bbba4dab11931c77b7e92313b7e8ac8f8d..a944383d6a991e067df8eb52b10f41c69e2432d6"
}
,{
"testCaseDescription": "go-const-declarations-without-types-insert-test",
"expectedResult": {
"changes": {
"const-declarations-without-types.go": [
{
"span": {
"insert": {
"start": [
4,
7
],
"end": [
4,
15
]
}
},
"summary": "Added the 'zero' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-without-types.go"
],
"patch": [
"diff --git a/const-declarations-without-types.go b/const-declarations-without-types.go",
"index 79058077..7ef3805e 100644",
"--- a/const-declarations-without-types.go",
"+++ b/const-declarations-without-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+const zero = 0",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "a944383d6a991e067df8eb52b10f41c69e2432d6..8b92431550b595466e765c5df24f64bf4f4be471"
}
,{
"testCaseDescription": "go-const-declarations-without-types-replacement-test",
"expectedResult": {
"changes": {
"const-declarations-without-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
7
],
"end": [
4,
11
]
},
{
"start": [
4,
7
],
"end": [
4,
10
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'one' identifier in the one, two var assignment of the 'main' function"
},
{
"span": {
"insert": {
"start": [
4,
12
],
"end": [
4,
15
]
}
},
"summary": "Added the 'two' identifier in the one, two var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
14
],
"end": [
4,
15
]
},
{
"start": [
4,
18
],
"end": [
4,
19
]
}
]
},
"summary": "Replaced '0' with '1' in the one, two var assignment of the 'main' function"
},
{
"span": {
"insert": {
"start": [
4,
21
],
"end": [
4,
22
]
}
},
"summary": "Added '2' in the one, two var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-without-types.go"
],
"patch": [
"diff --git a/const-declarations-without-types.go b/const-declarations-without-types.go",
"index 7ef3805e..c4525e24 100644",
"--- a/const-declarations-without-types.go",
"+++ b/const-declarations-without-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const zero = 0",
"+const one, two = 1, 2",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "8b92431550b595466e765c5df24f64bf4f4be471..27ee58022c11f97fc49c46591e48bfd1c5c86735"
}
,{
"testCaseDescription": "go-const-declarations-without-types-delete-replacement-test",
"expectedResult": {
"changes": {
"const-declarations-without-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
7
],
"end": [
4,
10
]
},
{
"start": [
4,
7
],
"end": [
4,
11
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'zero' identifier in the zero var assignment of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
15
]
}
},
"summary": "Deleted the 'two' identifier in the zero var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
18
],
"end": [
4,
19
]
},
{
"start": [
4,
14
],
"end": [
4,
15
]
}
]
},
"summary": "Replaced '1' with '0' in the zero var assignment of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
21
],
"end": [
4,
22
]
}
},
"summary": "Deleted '2' in the zero var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-without-types.go"
],
"patch": [
"diff --git a/const-declarations-without-types.go b/const-declarations-without-types.go",
"index c4525e24..7ef3805e 100644",
"--- a/const-declarations-without-types.go",
"+++ b/const-declarations-without-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const one, two = 1, 2",
"+const zero = 0",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "27ee58022c11f97fc49c46591e48bfd1c5c86735..0d20aa866a60c0921108d2d27f927d8c18fbdb6d"
}
,{
"testCaseDescription": "go-const-declarations-without-types-delete-insert-test",
"expectedResult": {
"changes": {
"const-declarations-without-types.go": [
{
"span": {
"delete": {
"start": [
4,
7
],
"end": [
4,
15
]
}
},
"summary": "Deleted the 'zero' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-without-types.go"
],
"patch": [
"diff --git a/const-declarations-without-types.go b/const-declarations-without-types.go",
"index 7ef3805e..79058077 100644",
"--- a/const-declarations-without-types.go",
"+++ b/const-declarations-without-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const zero = 0",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "0d20aa866a60c0921108d2d27f927d8c18fbdb6d..0eeceba36497436beca93db3731d381fe08b2bfc"
}
,{
"testCaseDescription": "go-const-declarations-without-types-teardown-test",
"expectedResult": {
"changes": {
"const-declarations-without-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations-without-types.go"
],
"patch": [
"diff --git a/const-declarations-without-types.go b/const-declarations-without-types.go",
"index 79058077..e69de29b 100644",
"--- a/const-declarations-without-types.go",
"+++ b/const-declarations-without-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "0eeceba36497436beca93db3731d381fe08b2bfc..e569ad4f2564b872ede19dff450315ba540c3076"
}]

View File

@ -1,496 +0,0 @@
[{
"testCaseDescription": "go-const-with-implicit-values-setup-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index e69de29b..79058077 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "5caeef873494edf9110ed67e273e7c4df49d588e..c207b3578afc46787bbc1fc463c375e65284dbb3"
}
,{
"testCaseDescription": "go-const-with-implicit-values-insert-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"insert": {
"start": [
5,
2
],
"end": [
5,
13
]
}
},
"summary": "Added the 'zero' var assignment in the main function"
},
{
"span": {
"insert": {
"start": [
6,
2
],
"end": [
6,
5
]
}
},
"summary": "Added the 'one' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
7,
2
],
"end": [
7,
5
]
}
},
"summary": "Added the 'two' identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index 79058077..d98ee4cf 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -1,5 +1,9 @@",
" package main",
" ",
" func main() {",
"-",
"+const (",
"+ zero = iota",
"+ one",
"+ two",
"+ )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "c207b3578afc46787bbc1fc463c375e65284dbb3..50cb43c50d503af99684dd1b21a32bd20dabf536"
}
,{
"testCaseDescription": "go-const-with-implicit-values-replacement-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"replace": [
{
"start": [
5,
2
],
"end": [
5,
6
]
},
{
"start": [
5,
2
],
"end": [
5,
3
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the a var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
2
],
"end": [
6,
5
]
},
{
"start": [
6,
2
],
"end": [
6,
3
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'b' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
7,
2
],
"end": [
7,
5
]
},
{
"start": [
7,
2
],
"end": [
7,
3
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'c' identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index d98ee4cf..c4c9127b 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -2,8 +2,8 @@ package main",
" ",
" func main() {",
" const (",
"- zero = iota",
"- one",
"- two",
"+ a = iota",
"+ b",
"+ c",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "50cb43c50d503af99684dd1b21a32bd20dabf536..a9979d0ec9379382e44de670b4f20350ddb595e2"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-replacement-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"replace": [
{
"start": [
5,
2
],
"end": [
5,
3
]
},
{
"start": [
5,
2
],
"end": [
5,
6
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the zero var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
2
],
"end": [
6,
3
]
},
{
"start": [
6,
2
],
"end": [
6,
5
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'one' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
7,
2
],
"end": [
7,
3
]
},
{
"start": [
7,
2
],
"end": [
7,
5
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'two' identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index c4c9127b..d98ee4cf 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -2,8 +2,8 @@ package main",
" ",
" func main() {",
" const (",
"- a = iota",
"- b",
"- c",
"+ zero = iota",
"+ one",
"+ two",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "a9979d0ec9379382e44de670b4f20350ddb595e2..7093865216c3ed298ad93ff34ace3f1679fb22f3"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-insert-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"delete": {
"start": [
5,
2
],
"end": [
5,
13
]
}
},
"summary": "Deleted the 'zero' var assignment in the main function"
},
{
"span": {
"delete": {
"start": [
6,
2
],
"end": [
6,
5
]
}
},
"summary": "Deleted the 'one' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
7,
2
],
"end": [
7,
5
]
}
},
"summary": "Deleted the 'two' identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index d98ee4cf..79058077 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -1,9 +1,5 @@",
" package main",
" ",
" func main() {",
"-const (",
"- zero = iota",
"- one",
"- two",
"- )",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "7093865216c3ed298ad93ff34ace3f1679fb22f3..c549422d0ddad2f5d06f04b223fa72b7c1dfce8d"
}
,{
"testCaseDescription": "go-const-with-implicit-values-teardown-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index 79058077..e69de29b 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "c549422d0ddad2f5d06f04b223fa72b7c1dfce8d..c505aaaa18999293830a998c55e78edfeed5c138"
}]

View File

@ -1,742 +0,0 @@
[{
"testCaseDescription": "go-constructors-setup-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index e69de29b..79058077 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "c505aaaa18999293830a998c55e78edfeed5c138..ea9b5903a29e31e80f43020258003697be5ee291"
}
,{
"testCaseDescription": "go-constructors-insert-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
17
]
}
},
"summary": "Added the 'make(chan<- int)' function call in the main function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
30
]
}
},
"summary": "Added the 'make(chan<- int, …)' function call in the main function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
24
]
}
},
"summary": "Added the 'make(chan<- int, 5, 10)' function call in the main function"
},
{
"span": {
"insert": {
"start": [
7,
2
],
"end": [
7,
24
]
}
},
"summary": "Added the 'new(…)' function call in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index 79058077..082e65fd 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
"+make(chan<- int)",
"+make(chan<- int, (new - old))",
"+make(chan<- int, 5, 10)",
"+ new(map[string]string)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "ea9b5903a29e31e80f43020258003697be5ee291..60388824f20672415714fbae1893d561753be6e3"
}
,{
"testCaseDescription": "go-constructors-replacement-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"replace": [
{
"start": [
4,
13
],
"end": [
4,
16
]
},
{
"start": [
4,
13
],
"end": [
4,
19
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the chan<- string channel type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
13
],
"end": [
5,
16
]
},
{
"start": [
5,
13
],
"end": [
5,
19
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the chan<- string channel type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
13
],
"end": [
6,
16
]
},
{
"start": [
6,
13
],
"end": [
6,
19
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the chan<- string channel type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
18
],
"end": [
6,
19
]
},
{
"start": [
6,
21
],
"end": [
6,
22
]
}
]
},
"summary": "Replaced '5' with '7' in the make(chan<- string, 7, 11) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
21
],
"end": [
6,
23
]
},
{
"start": [
6,
24
],
"end": [
6,
26
]
}
]
},
"summary": "Replaced '10' with '11' in the make(chan<- string, 7, 11) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
10
],
"end": [
7,
16
]
},
{
"start": [
7,
10
],
"end": [
7,
13
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the new(…) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
17
],
"end": [
7,
23
]
},
{
"start": [
7,
14
],
"end": [
7,
17
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the new(…) function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index 082e65fd..e4fdb2e9 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -1,8 +1,8 @@",
" package main",
" ",
" func main() {",
"-make(chan<- int)",
"-make(chan<- int, (new - old))",
"-make(chan<- int, 5, 10)",
"- new(map[string]string)",
"+make(chan<- string)",
"+make(chan<- string, (new - old))",
"+make(chan<- string, 7, 11)",
"+ new(map[int]int)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "60388824f20672415714fbae1893d561753be6e3..3bffdaa19f7ce53c52445a5d1798c3665c57f617"
}
,{
"testCaseDescription": "go-constructors-delete-replacement-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"replace": [
{
"start": [
4,
13
],
"end": [
4,
19
]
},
{
"start": [
4,
13
],
"end": [
4,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the chan<- int channel type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
13
],
"end": [
5,
19
]
},
{
"start": [
5,
13
],
"end": [
5,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the chan<- int channel type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
13
],
"end": [
6,
19
]
},
{
"start": [
6,
13
],
"end": [
6,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the chan<- int channel type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
21
],
"end": [
6,
22
]
},
{
"start": [
6,
18
],
"end": [
6,
19
]
}
]
},
"summary": "Replaced '7' with '5' in the make(chan<- int, 5, 10) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
24
],
"end": [
6,
26
]
},
{
"start": [
6,
21
],
"end": [
6,
23
]
}
]
},
"summary": "Replaced '11' with '10' in the make(chan<- int, 5, 10) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
10
],
"end": [
7,
13
]
},
{
"start": [
7,
10
],
"end": [
7,
16
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the new(…) function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
14
],
"end": [
7,
17
]
},
{
"start": [
7,
17
],
"end": [
7,
23
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the new(…) function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index e4fdb2e9..082e65fd 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -1,8 +1,8 @@",
" package main",
" ",
" func main() {",
"-make(chan<- string)",
"-make(chan<- string, (new - old))",
"-make(chan<- string, 7, 11)",
"- new(map[int]int)",
"+make(chan<- int)",
"+make(chan<- int, (new - old))",
"+make(chan<- int, 5, 10)",
"+ new(map[string]string)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "3bffdaa19f7ce53c52445a5d1798c3665c57f617..f30b9bf146cc89b7e19efbfb747f3045b96a6e58"
}
,{
"testCaseDescription": "go-constructors-delete-insert-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
17
]
}
},
"summary": "Deleted the 'make(chan<- int)' function call in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
30
]
}
},
"summary": "Deleted the 'make(chan<- int, …)' function call in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
24
]
}
},
"summary": "Deleted the 'make(chan<- int, 5, 10)' function call in the main function"
},
{
"span": {
"delete": {
"start": [
7,
2
],
"end": [
7,
24
]
}
},
"summary": "Deleted the 'new(…)' function call in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index 082e65fd..79058077 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-make(chan<- int)",
"-make(chan<- int, (new - old))",
"-make(chan<- int, 5, 10)",
"- new(map[string]string)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "f30b9bf146cc89b7e19efbfb747f3045b96a6e58..b641795c7753970336fc4c7e332de36ad5441011"
}
,{
"testCaseDescription": "go-constructors-teardown-test",
"expectedResult": {
"changes": {
"constructors.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"constructors.go"
],
"patch": [
"diff --git a/constructors.go b/constructors.go",
"index 79058077..e69de29b 100644",
"--- a/constructors.go",
"+++ b/constructors.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "b641795c7753970336fc4c7e332de36ad5441011..39da12378f56efc6f5a7d91aa4cfd6dd9b410d0d"
}]

View File

@ -1,670 +0,0 @@
[{
"testCaseDescription": "go-float-literals-setup-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
"patch": [
"diff --git a/float-literals.go b/float-literals.go",
"index e69de29b..79058077 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "cb535d2811aca85ccc5af6391402ea86b6b7e441..7062e83a312e720b425e314e289fc0b3bbbe6ed3"
}
,{
"testCaseDescription": "go-float-literals-insert-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Added the 'f1' assignment in the main function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
13
]
}
},
"summary": "Added the 'f2' assignment in the main function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
13
]
}
},
"summary": "Added the 'f3' assignment in the main function"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
12
]
}
},
"summary": "Added the 'f4' assignment in the main function"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
12
]
}
},
"summary": "Added the 'f5' assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
"patch": [
"diff --git a/float-literals.go b/float-literals.go",
"index 79058077..772bdb09 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -1,5 +1,9 @@",
" package main",
" ",
" func main() {",
"-",
"+f1 = 1.5",
"+f2 = 1.5e100",
"+f3 = 1.5e+50",
"+f4 = 1.5e-5",
"+f5 = .5e-50",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "7062e83a312e720b425e314e289fc0b3bbbe6ed3..8d110da38175af096c2ccfdfca9dbfad106a9ca2"
}
,{
"testCaseDescription": "go-float-literals-replacement-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
9
]
},
{
"start": [
4,
6
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the '1.5' float with the '2.6' float in an assignment to f1 of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
13
]
},
{
"start": [
5,
6
],
"end": [
5,
13
]
}
]
},
"summary": "Replaced the '1.5e100' float with the '2.6e211' float in an assignment to f2 of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
13
]
},
{
"start": [
6,
6
],
"end": [
6,
13
]
}
]
},
"summary": "Replaced the '1.5e+50' float with the '2.6e+60' float in an assignment to f3 of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
6
],
"end": [
7,
12
]
},
{
"start": [
7,
6
],
"end": [
7,
12
]
}
]
},
"summary": "Replaced the '1.5e-5' float with the '2.6e-7' float in an assignment to f4 of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
8,
6
],
"end": [
8,
12
]
},
{
"start": [
8,
6
],
"end": [
8,
12
]
}
]
},
"summary": "Replaced the '.5e-50' float with the '.6e-60' float in an assignment to f5 of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
"patch": [
"diff --git a/float-literals.go b/float-literals.go",
"index 772bdb09..0818628b 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -1,9 +1,9 @@",
" package main",
" ",
" func main() {",
"-f1 = 1.5",
"-f2 = 1.5e100",
"-f3 = 1.5e+50",
"-f4 = 1.5e-5",
"-f5 = .5e-50",
"+f1 = 2.6",
"+f2 = 2.6e211",
"+f3 = 2.6e+60",
"+f4 = 2.6e-7",
"+f5 = .6e-60",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "8d110da38175af096c2ccfdfca9dbfad106a9ca2..3b363fc0f9540db83dedca604aa883cf5fc816b5"
}
,{
"testCaseDescription": "go-float-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
9
]
},
{
"start": [
4,
6
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the '2.6' float with the '1.5' float in an assignment to f1 of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
13
]
},
{
"start": [
5,
6
],
"end": [
5,
13
]
}
]
},
"summary": "Replaced the '2.6e211' float with the '1.5e100' float in an assignment to f2 of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
13
]
},
{
"start": [
6,
6
],
"end": [
6,
13
]
}
]
},
"summary": "Replaced the '2.6e+60' float with the '1.5e+50' float in an assignment to f3 of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
6
],
"end": [
7,
12
]
},
{
"start": [
7,
6
],
"end": [
7,
12
]
}
]
},
"summary": "Replaced the '2.6e-7' float with the '1.5e-5' float in an assignment to f4 of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
8,
6
],
"end": [
8,
12
]
},
{
"start": [
8,
6
],
"end": [
8,
12
]
}
]
},
"summary": "Replaced the '.6e-60' float with the '.5e-50' float in an assignment to f5 of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
"patch": [
"diff --git a/float-literals.go b/float-literals.go",
"index 0818628b..772bdb09 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -1,9 +1,9 @@",
" package main",
" ",
" func main() {",
"-f1 = 2.6",
"-f2 = 2.6e211",
"-f3 = 2.6e+60",
"-f4 = 2.6e-7",
"-f5 = .6e-60",
"+f1 = 1.5",
"+f2 = 1.5e100",
"+f3 = 1.5e+50",
"+f4 = 1.5e-5",
"+f5 = .5e-50",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "3b363fc0f9540db83dedca604aa883cf5fc816b5..3b766942e9beae9f2f073811d72797e7265e4193"
}
,{
"testCaseDescription": "go-float-literals-delete-insert-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'f1' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
13
]
}
},
"summary": "Deleted the 'f2' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
13
]
}
},
"summary": "Deleted the 'f3' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
12
]
}
},
"summary": "Deleted the 'f4' assignment in the main function"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
12
]
}
},
"summary": "Deleted the 'f5' assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
"patch": [
"diff --git a/float-literals.go b/float-literals.go",
"index 772bdb09..79058077 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -1,9 +1,5 @@",
" package main",
" ",
" func main() {",
"-f1 = 1.5",
"-f2 = 1.5e100",
"-f3 = 1.5e+50",
"-f4 = 1.5e-5",
"-f5 = .5e-50",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "3b766942e9beae9f2f073811d72797e7265e4193..60e553921c8013dfaebd3331f73ffd00cf8d6854"
}
,{
"testCaseDescription": "go-float-literals-teardown-test",
"expectedResult": {
"changes": {
"float-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"float-literals.go"
],
"patch": [
"diff --git a/float-literals.go b/float-literals.go",
"index 79058077..e69de29b 100644",
"--- a/float-literals.go",
"+++ b/float-literals.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "60e553921c8013dfaebd3331f73ffd00cf8d6854..b33ba59ecc38b2543059f17e99013c5f619a0295"
}]

View File

@ -1,830 +0,0 @@
[{
"testCaseDescription": "go-for-statements-setup-test",
"expectedResult": {
"changes": {
"for-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"for-statements.go"
],
"patch": [
"diff --git a/for-statements.go b/for-statements.go",
"index e69de29b..79058077 100644",
"--- a/for-statements.go",
"+++ b/for-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "05733ec654b2b20d054881640e8c5726bbe00f6d..df6add01a946172080998527e2eebaa60f522c3f"
}
,{
"testCaseDescription": "go-for-statements-insert-test",
"expectedResult": {
"changes": {
"for-statements.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'a()' function call in the main function"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
10
]
}
},
"summary": "Added the 'loop' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'i := 0; i < 5; i++' for statement in the main function"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
15,
2
]
}
},
"summary": "Added the 'i < 10; i++' for statement in the main function"
},
{
"span": {
"insert": {
"start": [
16,
1
],
"end": [
19,
2
]
}
},
"summary": "Added the 'for ;; {\na()\ncontinue\n}' for statement in the main function"
},
{
"span": {
"insert": {
"start": [
20,
1
],
"end": [
23,
2
]
}
},
"summary": "Added the 'x := range y' for statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"for-statements.go"
],
"patch": [
"diff --git a/for-statements.go b/for-statements.go",
"index 79058077..66e5f7a4 100644",
"--- a/for-statements.go",
"+++ b/for-statements.go",
"@@ -1,5 +1,24 @@",
" package main",
" ",
" func main() {",
"-",
"+ for {",
"+a()",
"+goto loop",
"+}",
"+for i := 0; i < 5; i++ {",
"+a()",
"+break loop",
"+}",
"+for ; i < 10; i++ {",
"+a()",
"+continue loop2",
"+}",
"+for ;; {",
"+a()",
"+continue",
"+}",
"+for x := range y {",
"+a(x)",
"+break",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "df6add01a946172080998527e2eebaa60f522c3f..5abfa387e21f226e626004f4b0ff9558456bc5db"
}
,{
"testCaseDescription": "go-for-statements-replacement-test",
"expectedResult": {
"changes": {
"for-statements.go": [
{
"span": {
"insert": {
"start": [
4,
2
],
"end": [
7,
2
]
}
},
"summary": "Added the 'for ;; {\na()\ngoto loop\n}' for statement in the main function"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'x := range y' for statement in the main function"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
15,
2
]
}
},
"summary": "Added the 'for ;; {\na()\ncontinue loop2\n}' for statement in the main function"
},
{
"span": {
"insert": {
"start": [
16,
1
],
"end": [
19,
2
]
}
},
"summary": "Added the 'i < 10; i++' for statement in the main function"
},
{
"span": {
"insert": {
"start": [
21,
3
],
"end": [
21,
4
]
}
},
"summary": "Added the 'x' identifier in the a(x) function call of the 'main' function"
},
{
"span": {
"insert": {
"start": [
22,
1
],
"end": [
22,
6
]
}
},
"summary": "Added a break statement in the main function"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
10
]
}
},
"summary": "Deleted the 'loop' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'i := 0; i < 5; i++' for statement in the main function"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
15,
2
]
}
},
"summary": "Deleted the 'i < 10; i++' for statement in the main function"
},
{
"span": {
"delete": {
"start": [
16,
1
],
"end": [
19,
2
]
}
},
"summary": "Deleted the 'for ;; {\na()\ncontinue\n}' for statement in the main function"
},
{
"span": {
"delete": {
"start": [
20,
1
],
"end": [
23,
2
]
}
},
"summary": "Deleted the 'x := range y' for statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"for-statements.go"
],
"patch": [
"diff --git a/for-statements.go b/for-statements.go",
"index 66e5f7a4..4099658c 100644",
"--- a/for-statements.go",
"+++ b/for-statements.go",
"@@ -1,23 +1,23 @@",
" package main",
" ",
" func main() {",
"- for {",
"+ for ;; {",
" a()",
" goto loop",
" }",
"-for i := 0; i < 5; i++ {",
"+for x := range y {",
" a()",
" break loop",
" }",
"-for ; i < 10; i++ {",
"+for ;; {",
" a()",
" continue loop2",
" }",
"-for ;; {",
"+for ; i < 10; i++ {",
" a()",
" continue",
" }",
"-for x := range y {",
"+for {",
" a(x)",
" break",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "5abfa387e21f226e626004f4b0ff9558456bc5db..e16f85f960b0ced7007e35dd0e9bf05a3cd63951"
}
,{
"testCaseDescription": "go-for-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"for-statements.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'a()' function call in the main function"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
10
]
}
},
"summary": "Added the 'loop' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'i := 0; i < 5; i++' for statement in the main function"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
15,
2
]
}
},
"summary": "Added the 'i < 10; i++' for statement in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
2
],
"end": [
7,
2
]
},
{
"start": [
16,
1
],
"end": [
19,
2
]
}
]
},
"summary": "Replaced the 'for ;; {\na()\ngoto loop\n}' for statement with the 'for ;; {\na()\ncontinue\n}' for statement in the main function"
},
{
"span": {
"insert": {
"start": [
21,
3
],
"end": [
21,
4
]
}
},
"summary": "Added the 'x' identifier in the a(x) function call of the 'main' function"
},
{
"span": {
"delete": {
"start": [
10,
7
],
"end": [
10,
11
]
}
},
"summary": "Deleted the 'loop' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
15,
2
]
}
},
"summary": "Deleted the 'for ;; {\na()\ncontinue loop2\n}' for statement in the main function"
},
{
"span": {
"delete": {
"start": [
16,
1
],
"end": [
19,
2
]
}
},
"summary": "Deleted the 'i < 10; i++' for statement in the main function"
},
{
"span": {
"delete": {
"start": [
21,
1
],
"end": [
21,
5
]
}
},
"summary": "Deleted the 'a(x)' function call in the main function"
},
{
"span": {
"delete": {
"start": [
22,
1
],
"end": [
22,
6
]
}
},
"summary": "Deleted a break statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"for-statements.go"
],
"patch": [
"diff --git a/for-statements.go b/for-statements.go",
"index 4099658c..66e5f7a4 100644",
"--- a/for-statements.go",
"+++ b/for-statements.go",
"@@ -1,23 +1,23 @@",
" package main",
" ",
" func main() {",
"- for ;; {",
"+ for {",
" a()",
" goto loop",
" }",
"-for x := range y {",
"+for i := 0; i < 5; i++ {",
" a()",
" break loop",
" }",
"-for ;; {",
"+for ; i < 10; i++ {",
" a()",
" continue loop2",
" }",
"-for ; i < 10; i++ {",
"+for ;; {",
" a()",
" continue",
" }",
"-for {",
"+for x := range y {",
" a(x)",
" break",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "e16f85f960b0ced7007e35dd0e9bf05a3cd63951..684844812a7399654c951e09eb2ebdb9768f4a2a"
}
,{
"testCaseDescription": "go-for-statements-delete-insert-test",
"expectedResult": {
"changes": {
"for-statements.go": [
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'a()' function call in the main function"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
10
]
}
},
"summary": "Deleted the 'loop' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'i := 0; i < 5; i++' for statement in the main function"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
15,
2
]
}
},
"summary": "Deleted the 'i < 10; i++' for statement in the main function"
},
{
"span": {
"delete": {
"start": [
16,
1
],
"end": [
19,
2
]
}
},
"summary": "Deleted the 'for ;; {\na()\ncontinue\n}' for statement in the main function"
},
{
"span": {
"delete": {
"start": [
20,
1
],
"end": [
23,
2
]
}
},
"summary": "Deleted the 'x := range y' for statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"for-statements.go"
],
"patch": [
"diff --git a/for-statements.go b/for-statements.go",
"index 66e5f7a4..79058077 100644",
"--- a/for-statements.go",
"+++ b/for-statements.go",
"@@ -1,24 +1,5 @@",
" package main",
" ",
" func main() {",
"- for {",
"-a()",
"-goto loop",
"-}",
"-for i := 0; i < 5; i++ {",
"-a()",
"-break loop",
"-}",
"-for ; i < 10; i++ {",
"-a()",
"-continue loop2",
"-}",
"-for ;; {",
"-a()",
"-continue",
"-}",
"-for x := range y {",
"-a(x)",
"-break",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "684844812a7399654c951e09eb2ebdb9768f4a2a..19a19906bf854e2f265525156b22f5f511e954c3"
}
,{
"testCaseDescription": "go-for-statements-teardown-test",
"expectedResult": {
"changes": {
"for-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"for-statements.go"
],
"patch": [
"diff --git a/for-statements.go b/for-statements.go",
"index 79058077..e69de29b 100644",
"--- a/for-statements.go",
"+++ b/for-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "19a19906bf854e2f265525156b22f5f511e954c3..f93b93e3865f62d4b7782f4ee60f9029b851186a"
}]

View File

@ -1,514 +0,0 @@
[{
"testCaseDescription": "go-function-declarations-setup-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"patch": [
"diff --git a/function-declarations.go b/function-declarations.go",
"index e69de29b..79058077 100644",
"--- a/function-declarations.go",
"+++ b/function-declarations.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "f93b93e3865f62d4b7782f4ee60f9029b851186a..d7355a26f3f9a780f8a246c80682e9bd61da1590"
}
,{
"testCaseDescription": "go-function-declarations-insert-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
9,
1
]
}
]
},
"summary": "Replaced the 'main' module with 'package main\n\nfunc main() {\nfunc f1() {}\nfunc f2(a int, b, c, d string) int {}\nfunc f2() (int, error) {}\nfunc f2() (result int, err error) {}\n}' at line 1, column 1 - line 9, column 1"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"patch": [
"diff --git a/function-declarations.go b/function-declarations.go",
"index 79058077..2a1e7b86 100644",
"--- a/function-declarations.go",
"+++ b/function-declarations.go",
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
"+func f1() {}",
"+func f2(a int, b, c, d string) int {}",
"+func f2() (int, error) {}",
"+func f2() (result int, err error) {}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "d7355a26f3f9a780f8a246c80682e9bd61da1590..13e067d2cca396e5cd315f8e43f62ba9893540b5"
}
,{
"testCaseDescription": "go-function-declarations-replacement-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
8
]
},
{
"start": [
4,
6
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'f1' identifier with the 'fa' identifier in the fa() function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'f2' identifier with the 'fb' identifier in the fb function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 'f2' identifier with the 'fc' identifier in the fc function"
},
{
"span": {
"replace": [
{
"start": [
7,
6
],
"end": [
7,
8
]
},
{
"start": [
7,
6
],
"end": [
7,
8
]
}
]
},
"summary": "Replaced the 'f2' identifier with the 'fd' identifier in the fd function"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"patch": [
"diff --git a/function-declarations.go b/function-declarations.go",
"index 2a1e7b86..10d0b496 100644",
"--- a/function-declarations.go",
"+++ b/function-declarations.go",
"@@ -1,8 +1,8 @@",
" package main",
" ",
" func main() {",
"-func f1() {}",
"-func f2(a int, b, c, d string) int {}",
"-func f2() (int, error) {}",
"-func f2() (result int, err error) {}",
"+func fa() {}",
"+func fb(a int, b, c, d string) int {}",
"+func fc() (int, error) {}",
"+func fd() (result int, err error) {}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "13e067d2cca396e5cd315f8e43f62ba9893540b5..29c9d800fcfa597bdccf3057bb4827c1ebfe7148"
}
,{
"testCaseDescription": "go-function-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
8
]
},
{
"start": [
4,
6
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'fa' identifier with the 'f1' identifier in the f1() function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'fb' identifier with the 'f2' identifier in the f2 function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 'fc' identifier with the 'f2' identifier in the f2 function"
},
{
"span": {
"replace": [
{
"start": [
7,
6
],
"end": [
7,
8
]
},
{
"start": [
7,
6
],
"end": [
7,
8
]
}
]
},
"summary": "Replaced the 'fd' identifier with the 'f2' identifier in the f2 function"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"patch": [
"diff --git a/function-declarations.go b/function-declarations.go",
"index 10d0b496..2a1e7b86 100644",
"--- a/function-declarations.go",
"+++ b/function-declarations.go",
"@@ -1,8 +1,8 @@",
" package main",
" ",
" func main() {",
"-func fa() {}",
"-func fb(a int, b, c, d string) int {}",
"-func fc() (int, error) {}",
"-func fd() (result int, err error) {}",
"+func f1() {}",
"+func f2(a int, b, c, d string) int {}",
"+func f2() (int, error) {}",
"+func f2() (result int, err error) {}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "29c9d800fcfa597bdccf3057bb4827c1ebfe7148..1e348e167bda850a7b4e0b13d9273364852e6a78"
}
,{
"testCaseDescription": "go-function-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
9,
1
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced 'package main\n\nfunc main() {\nfunc f1() {}\nfunc f2(a int, b, c, d string) int {}\nfunc f2() (int, error) {}\nfunc f2() (result int, err error) {}\n}' at line 1, column 1 - line 9, column 1 with the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"patch": [
"diff --git a/function-declarations.go b/function-declarations.go",
"index 2a1e7b86..79058077 100644",
"--- a/function-declarations.go",
"+++ b/function-declarations.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-func f1() {}",
"-func f2(a int, b, c, d string) int {}",
"-func f2() (int, error) {}",
"-func f2() (result int, err error) {}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "1e348e167bda850a7b4e0b13d9273364852e6a78..0f0e6a61a99794f159dc3dd2b347670d2c2c1fca"
}
,{
"testCaseDescription": "go-function-declarations-teardown-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"patch": [
"diff --git a/function-declarations.go b/function-declarations.go",
"index 79058077..e69de29b 100644",
"--- a/function-declarations.go",
"+++ b/function-declarations.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "0f0e6a61a99794f159dc3dd2b347670d2c2c1fca..a2dfb03fc1f7dc5419ac9aa570a15071f5eeeeea"
}]

View File

@ -1,372 +0,0 @@
[{
"testCaseDescription": "go-function-literals-setup-test",
"expectedResult": {
"changes": {
"function-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"function-literals.go"
],
"patch": [
"diff --git a/function-literals.go b/function-literals.go",
"index e69de29b..79058077 100644",
"--- a/function-literals.go",
"+++ b/function-literals.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "0bd1a3a45c722927b5d7c0c96d296bc01c1b333c..e84e197d4ad2ff9748e305c50db4e72c1c1a3ddc"
}
,{
"testCaseDescription": "go-function-literals-insert-test",
"expectedResult": {
"changes": {
"function-literals.go": [
{
"span": {
"insert": {
"start": [
4,
7
],
"end": [
6,
2
]
}
},
"summary": "Added the 's1' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"function-literals.go"
],
"patch": [
"diff --git a/function-literals.go b/function-literals.go",
"index 79058077..1f4ead96 100644",
"--- a/function-literals.go",
"+++ b/function-literals.go",
"@@ -1,5 +1,7 @@",
" package main",
" ",
" func main() {",
"-",
"+const s1 = func(s string) (int, int) {",
"+return 1, 2",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "e84e197d4ad2ff9748e305c50db4e72c1c1a3ddc..addd75371b5ff3d7fa0be9cde0077c7e1bfabc7f"
}
,{
"testCaseDescription": "go-function-literals-replacement-test",
"expectedResult": {
"changes": {
"function-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
19
],
"end": [
4,
25
]
},
{
"start": [
4,
19
],
"end": [
4,
22
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the s1 var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
17
],
"end": [
4,
18
]
},
{
"start": [
4,
17
],
"end": [
4,
18
]
}
]
},
"summary": "Replaced the 's' identifier with the 'b' identifier in the s1 var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"function-literals.go"
],
"patch": [
"diff --git a/function-literals.go b/function-literals.go",
"index 1f4ead96..7b034662 100644",
"--- a/function-literals.go",
"+++ b/function-literals.go",
"@@ -1,7 +1,7 @@",
" package main",
" ",
" func main() {",
"-const s1 = func(s string) (int, int) {",
"+const s1 = func(b int) (string, string) {",
" return 1, 2",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "addd75371b5ff3d7fa0be9cde0077c7e1bfabc7f..21f5491b18b039ca6af88708ec576aa145bb7047"
}
,{
"testCaseDescription": "go-function-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"function-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
19
],
"end": [
4,
22
]
},
{
"start": [
4,
19
],
"end": [
4,
25
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the s1 var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
17
],
"end": [
4,
18
]
},
{
"start": [
4,
17
],
"end": [
4,
18
]
}
]
},
"summary": "Replaced the 'b' identifier with the 's' identifier in the s1 var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"function-literals.go"
],
"patch": [
"diff --git a/function-literals.go b/function-literals.go",
"index 7b034662..1f4ead96 100644",
"--- a/function-literals.go",
"+++ b/function-literals.go",
"@@ -1,7 +1,7 @@",
" package main",
" ",
" func main() {",
"-const s1 = func(b int) (string, string) {",
"+const s1 = func(s string) (int, int) {",
" return 1, 2",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "21f5491b18b039ca6af88708ec576aa145bb7047..561ce05b87512b5ff6f76bba46d49525479a40d3"
}
,{
"testCaseDescription": "go-function-literals-delete-insert-test",
"expectedResult": {
"changes": {
"function-literals.go": [
{
"span": {
"delete": {
"start": [
4,
7
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 's1' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"function-literals.go"
],
"patch": [
"diff --git a/function-literals.go b/function-literals.go",
"index 1f4ead96..79058077 100644",
"--- a/function-literals.go",
"+++ b/function-literals.go",
"@@ -1,7 +1,5 @@",
" package main",
" ",
" func main() {",
"-const s1 = func(s string) (int, int) {",
"-return 1, 2",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "561ce05b87512b5ff6f76bba46d49525479a40d3..61be591e14b1ffb3ddbbfda5d996c340a2b0d221"
}
,{
"testCaseDescription": "go-function-literals-teardown-test",
"expectedResult": {
"changes": {
"function-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"function-literals.go"
],
"patch": [
"diff --git a/function-literals.go b/function-literals.go",
"index 79058077..e69de29b 100644",
"--- a/function-literals.go",
"+++ b/function-literals.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "61be591e14b1ffb3ddbbfda5d996c340a2b0d221..d01762bbba4dab11931c77b7e92313b7e8ac8f8d"
}]

View File

@ -1,664 +0,0 @@
[{
"testCaseDescription": "go-function-types-setup-test",
"expectedResult": {
"changes": {
"function-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"function-types.go"
],
"patch": [
"diff --git a/function-types.go b/function-types.go",
"index e69de29b..79058077 100644",
"--- a/function-types.go",
"+++ b/function-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "4c1430949679a459f5530eccab8efc8046a3abc7..44bcc1bef35e52f11a6dcc5dc12eecdfd3a93835"
}
,{
"testCaseDescription": "go-function-types-insert-test",
"expectedResult": {
"changes": {
"function-types.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
16
]
}
},
"summary": "Added the 'a' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
34
]
}
},
"summary": "Added the 'b' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"function-types.go"
],
"patch": [
"diff --git a/function-types.go b/function-types.go",
"index 79058077..eebe42e8 100644",
"--- a/function-types.go",
"+++ b/function-types.go",
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
"+type (",
"+a func(int) int",
"+b func(int, string) (bool, error)",
"+)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "44bcc1bef35e52f11a6dcc5dc12eecdfd3a93835..683f9831d02133c7f3f525ebf76a30bdc840d653"
}
,{
"testCaseDescription": "go-function-types-replacement-test",
"expectedResult": {
"changes": {
"function-types.go": [
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the 'x' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
8
],
"end": [
5,
11
]
},
{
"start": [
5,
8
],
"end": [
5,
14
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the func(string) string function type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
13
],
"end": [
5,
16
]
},
{
"start": [
5,
16
],
"end": [
5,
22
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the func(string) string function type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
2
]
},
{
"start": [
6,
1
],
"end": [
6,
2
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the 'y' type declaration of the 'main' function"
},
{
"span": {
"delete": {
"start": [
6,
8
],
"end": [
6,
11
]
}
},
"summary": "Deleted the 'int' identifier in the func(string, int) (chan, error) function type of the 'main' function"
},
{
"span": {
"insert": {
"start": [
6,
16
],
"end": [
6,
19
]
}
},
"summary": "Added the 'int' identifier in the func(string, int) (chan, error) function type of the 'main' function"
},
{
"span": {
"insert": {
"start": [
6,
22
],
"end": [
6,
33
]
}
},
"summary": "Added the 'chan, error' parameter declaration in the func(string, int) (chan, error) function type of the 'main' function"
},
{
"span": {
"delete": {
"start": [
6,
22
],
"end": [
6,
26
]
}
},
"summary": "Deleted the 'bool' identifier in the func(string, int) (chan, error) function type of the 'main' function"
},
{
"span": {
"delete": {
"start": [
6,
28
],
"end": [
6,
33
]
}
},
"summary": "Deleted the 'error' identifier in the func(string, int) (chan, error) function type of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"function-types.go"
],
"patch": [
"diff --git a/function-types.go b/function-types.go",
"index eebe42e8..2ae1953b 100644",
"--- a/function-types.go",
"+++ b/function-types.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" type (",
"-a func(int) int",
"-b func(int, string) (bool, error)",
"+x func(string) string",
"+y func(string, int) (chan, error)",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "683f9831d02133c7f3f525ebf76a30bdc840d653..153f9a956d3f1b0c8003db879adc015402b483f2"
}
,{
"testCaseDescription": "go-function-types-delete-replacement-test",
"expectedResult": {
"changes": {
"function-types.go": [
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the 'a' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
8
],
"end": [
5,
14
]
},
{
"start": [
5,
8
],
"end": [
5,
11
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the func(int) int function type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
16
],
"end": [
5,
22
]
},
{
"start": [
5,
13
],
"end": [
5,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the func(int) int function type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
2
]
},
{
"start": [
6,
1
],
"end": [
6,
2
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the 'b' type declaration of the 'main' function"
},
{
"span": {
"delete": {
"start": [
6,
8
],
"end": [
6,
14
]
}
},
"summary": "Deleted the 'string' identifier in the func(int, string) (bool, error) function type of the 'main' function"
},
{
"span": {
"insert": {
"start": [
6,
13
],
"end": [
6,
19
]
}
},
"summary": "Added the 'string' identifier in the func(int, string) (bool, error) function type of the 'main' function"
},
{
"span": {
"insert": {
"start": [
6,
22
],
"end": [
6,
26
]
}
},
"summary": "Added the 'bool' identifier in the func(int, string) (bool, error) function type of the 'main' function"
},
{
"span": {
"insert": {
"start": [
6,
28
],
"end": [
6,
33
]
}
},
"summary": "Added the 'error' identifier in the func(int, string) (bool, error) function type of the 'main' function"
},
{
"span": {
"delete": {
"start": [
6,
22
],
"end": [
6,
33
]
}
},
"summary": "Deleted the 'chan, error' parameter declaration in the func(int, string) (bool, error) function type of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"function-types.go"
],
"patch": [
"diff --git a/function-types.go b/function-types.go",
"index 2ae1953b..eebe42e8 100644",
"--- a/function-types.go",
"+++ b/function-types.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" type (",
"-x func(string) string",
"-y func(string, int) (chan, error)",
"+a func(int) int",
"+b func(int, string) (bool, error)",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "153f9a956d3f1b0c8003db879adc015402b483f2..a3517d72e1f9ebf404d3b3dca5c70f64e70da7ca"
}
,{
"testCaseDescription": "go-function-types-delete-insert-test",
"expectedResult": {
"changes": {
"function-types.go": [
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
16
]
}
},
"summary": "Deleted the 'a' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
34
]
}
},
"summary": "Deleted the 'b' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"function-types.go"
],
"patch": [
"diff --git a/function-types.go b/function-types.go",
"index eebe42e8..79058077 100644",
"--- a/function-types.go",
"+++ b/function-types.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-type (",
"-a func(int) int",
"-b func(int, string) (bool, error)",
"-)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "a3517d72e1f9ebf404d3b3dca5c70f64e70da7ca..89769cc54aeef8364ec696d7b360e3f03355eb07"
}
,{
"testCaseDescription": "go-function-types-teardown-test",
"expectedResult": {
"changes": {
"function-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"function-types.go"
],
"patch": [
"diff --git a/function-types.go b/function-types.go",
"index 79058077..e69de29b 100644",
"--- a/function-types.go",
"+++ b/function-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "89769cc54aeef8364ec696d7b360e3f03355eb07..f9b33be201f4f793e957567b70eebec7be3a69a2"
}]

View File

@ -1,508 +0,0 @@
[{
"testCaseDescription": "go-go-and-defer-statements-setup-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"patch": [
"diff --git a/go-and-defer-statements.go b/go-and-defer-statements.go",
"index e69de29b..79058077 100644",
"--- a/go-and-defer-statements.go",
"+++ b/go-and-defer-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "3ae31b84db1d8419897111182e8fdc9cad60fbbc..6ed2edc3b4005b0719c48ab5feb3ea1b6b3daa9e"
}
,{
"testCaseDescription": "go-go-and-defer-statements-insert-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
12
]
}
},
"summary": "Added the 'x[y]()' defer statement in the main function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Added the 'x[y]()' go statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"patch": [
"diff --git a/go-and-defer-statements.go b/go-and-defer-statements.go",
"index 79058077..4eab4994 100644",
"--- a/go-and-defer-statements.go",
"+++ b/go-and-defer-statements.go",
"@@ -1,5 +1,6 @@",
" package main",
" ",
" func main() {",
"-",
"+defer x.y()",
"+go x.y()",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "6ed2edc3b4005b0719c48ab5feb3ea1b6b3daa9e..a38b696b502320ca19a328372be89961fb958841"
}
,{
"testCaseDescription": "go-go-and-defer-statements-replacement-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
7
],
"end": [
4,
8
]
},
{
"start": [
4,
7
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the a[b] subscript access of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
9
],
"end": [
4,
10
]
},
{
"start": [
4,
9
],
"end": [
4,
10
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the a[b] subscript access of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
4
],
"end": [
5,
5
]
},
{
"start": [
5,
4
],
"end": [
5,
5
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'c' identifier in the c[d] subscript access of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
7
]
},
{
"start": [
5,
6
],
"end": [
5,
7
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'd' identifier in the c[d] subscript access of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"patch": [
"diff --git a/go-and-defer-statements.go b/go-and-defer-statements.go",
"index 4eab4994..0537c4bc 100644",
"--- a/go-and-defer-statements.go",
"+++ b/go-and-defer-statements.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-defer x.y()",
"-go x.y()",
"+defer a.b()",
"+go c.d()",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "a38b696b502320ca19a328372be89961fb958841..740493f5b68581152933f89ec89f7e31859ad26e"
}
,{
"testCaseDescription": "go-go-and-defer-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
7
],
"end": [
4,
8
]
},
{
"start": [
4,
7
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the x[y] subscript access of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
9
],
"end": [
4,
10
]
},
{
"start": [
4,
9
],
"end": [
4,
10
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the x[y] subscript access of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
4
],
"end": [
5,
5
]
},
{
"start": [
5,
4
],
"end": [
5,
5
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'x' identifier in the x[y] subscript access of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
7
]
},
{
"start": [
5,
6
],
"end": [
5,
7
]
}
]
},
"summary": "Replaced the 'd' identifier with the 'y' identifier in the x[y] subscript access of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"patch": [
"diff --git a/go-and-defer-statements.go b/go-and-defer-statements.go",
"index 0537c4bc..4eab4994 100644",
"--- a/go-and-defer-statements.go",
"+++ b/go-and-defer-statements.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-defer a.b()",
"-go c.d()",
"+defer x.y()",
"+go x.y()",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "740493f5b68581152933f89ec89f7e31859ad26e..5f8b90d561badd65eac8ae43d7dfb57aa81c060f"
}
,{
"testCaseDescription": "go-go-and-defer-statements-delete-insert-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
12
]
}
},
"summary": "Deleted the 'x[y]()' defer statement in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the 'x[y]()' go statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"patch": [
"diff --git a/go-and-defer-statements.go b/go-and-defer-statements.go",
"index 4eab4994..79058077 100644",
"--- a/go-and-defer-statements.go",
"+++ b/go-and-defer-statements.go",
"@@ -1,6 +1,5 @@",
" package main",
" ",
" func main() {",
"-defer x.y()",
"-go x.y()",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "5f8b90d561badd65eac8ae43d7dfb57aa81c060f..4db2085bcd5be639e82d878fd9ac0090e2c13caf"
}
,{
"testCaseDescription": "go-go-and-defer-statements-teardown-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"patch": [
"diff --git a/go-and-defer-statements.go b/go-and-defer-statements.go",
"index 79058077..e69de29b 100644",
"--- a/go-and-defer-statements.go",
"+++ b/go-and-defer-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "4db2085bcd5be639e82d878fd9ac0090e2c13caf..3b8c04146e306d10e05370f01c662eccc49a57d3"
}]

View File

@ -1,502 +0,0 @@
[{
"testCaseDescription": "go-grouped-import-declarations-setup-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-import-declarations.go"
],
"patch": [
"diff --git a/grouped-import-declarations.go b/grouped-import-declarations.go",
"index e69de29b..79058077 100644",
"--- a/grouped-import-declarations.go",
"+++ b/grouped-import-declarations.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "12035f69827bc37748c981b2b49d8642aaa48689..eff2e3eee4a7e0856d96a64e59118c6dbae4910e"
}
,{
"testCaseDescription": "go-grouped-import-declarations-insert-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
7
]
}
},
"summary": "Added the 'import' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
11
]
}
},
"summary": "Added the \"net/http\" string in the main function"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"insert": {
"start": [
6,
3
],
"end": [
7,
23
]
}
},
"summary": "Added '. \"some/dsl\"\n alias \"some/package\"' at line 6, column 3 - line 7, column 23 in the main function"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"patch": [
"diff --git a/grouped-import-declarations.go b/grouped-import-declarations.go",
"index 79058077..b544dded 100644",
"--- a/grouped-import-declarations.go",
"+++ b/grouped-import-declarations.go",
"@@ -1,5 +1,9 @@",
" package main",
" ",
" func main() {",
"-",
"+import (",
"+\"net/http\"",
"+ . \"some/dsl\"",
"+ alias \"some/package\"",
"+)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "eff2e3eee4a7e0856d96a64e59118c6dbae4910e..295d40d0bc277f37497e652ee55447ee4c5ac0a7"
}
,{
"testCaseDescription": "go-grouped-import-declarations-replacement-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
11
]
},
{
"start": [
5,
1
],
"end": [
5,
13
]
}
]
},
"summary": "Replaced the \"net/http\" string with the \"net/socket\" string in the main function"
},
{
"span": {
"replace": [
{
"start": [
6,
5
],
"end": [
6,
15
]
},
{
"start": [
6,
5
],
"end": [
6,
16
]
}
]
},
"summary": "Replaced the \"some/dsl\" string with the \"types/dsl\" string in the main function"
},
{
"span": {
"replace": [
{
"start": [
7,
9
],
"end": [
7,
23
]
},
{
"start": [
7,
9
],
"end": [
7,
26
]
}
]
},
"summary": "Replaced the \"some/package\" string with the \"awesome/package\" string in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-import-declarations.go"
],
"patch": [
"diff --git a/grouped-import-declarations.go b/grouped-import-declarations.go",
"index b544dded..1fd89e1d 100644",
"--- a/grouped-import-declarations.go",
"+++ b/grouped-import-declarations.go",
"@@ -2,8 +2,8 @@ package main",
" ",
" func main() {",
" import (",
"-\"net/http\"",
"- . \"some/dsl\"",
"- alias \"some/package\"",
"+\"net/socket\"",
"+ . \"types/dsl\"",
"+ alias \"awesome/package\"",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "295d40d0bc277f37497e652ee55447ee4c5ac0a7..c32dfbb52c8204e14270d26c78a68a58bc479515"
}
,{
"testCaseDescription": "go-grouped-import-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
13
]
},
{
"start": [
5,
1
],
"end": [
5,
11
]
}
]
},
"summary": "Replaced the \"net/socket\" string with the \"net/http\" string in the main function"
},
{
"span": {
"replace": [
{
"start": [
6,
5
],
"end": [
6,
16
]
},
{
"start": [
6,
5
],
"end": [
6,
15
]
}
]
},
"summary": "Replaced the \"types/dsl\" string with the \"some/dsl\" string in the main function"
},
{
"span": {
"replace": [
{
"start": [
7,
9
],
"end": [
7,
26
]
},
{
"start": [
7,
9
],
"end": [
7,
23
]
}
]
},
"summary": "Replaced the \"awesome/package\" string with the \"some/package\" string in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-import-declarations.go"
],
"patch": [
"diff --git a/grouped-import-declarations.go b/grouped-import-declarations.go",
"index 1fd89e1d..b544dded 100644",
"--- a/grouped-import-declarations.go",
"+++ b/grouped-import-declarations.go",
"@@ -2,8 +2,8 @@ package main",
" ",
" func main() {",
" import (",
"-\"net/socket\"",
"- . \"types/dsl\"",
"- alias \"awesome/package\"",
"+\"net/http\"",
"+ . \"some/dsl\"",
"+ alias \"some/package\"",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "c32dfbb52c8204e14270d26c78a68a58bc479515..e7a6284b55079ce702e22d5969233216eab277bd"
}
,{
"testCaseDescription": "go-grouped-import-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'import' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
11
]
}
},
"summary": "Deleted the \"net/http\" string in the main function"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
6,
3
],
"end": [
7,
23
]
}
},
"summary": "Deleted '. \"some/dsl\"\n alias \"some/package\"' at line 6, column 3 - line 7, column 23 in the main function"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"patch": [
"diff --git a/grouped-import-declarations.go b/grouped-import-declarations.go",
"index b544dded..79058077 100644",
"--- a/grouped-import-declarations.go",
"+++ b/grouped-import-declarations.go",
"@@ -1,9 +1,5 @@",
" package main",
" ",
" func main() {",
"-import (",
"-\"net/http\"",
"- . \"some/dsl\"",
"- alias \"some/package\"",
"-)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "e7a6284b55079ce702e22d5969233216eab277bd..f6d4df70af940f4460d01709872dbb2bc95fab0b"
}
,{
"testCaseDescription": "go-grouped-import-declarations-teardown-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-import-declarations.go"
],
"patch": [
"diff --git a/grouped-import-declarations.go b/grouped-import-declarations.go",
"index 79058077..e69de29b 100644",
"--- a/grouped-import-declarations.go",
"+++ b/grouped-import-declarations.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "f6d4df70af940f4460d01709872dbb2bc95fab0b..c578d4a9262098e37c81793dbf2fcdb3834ed7fc"
}]

View File

@ -1,406 +0,0 @@
[{
"testCaseDescription": "go-grouped-var-declarations-setup-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"patch": [
"diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go",
"index e69de29b..79058077 100644",
"--- a/grouped-var-declarations.go",
"+++ b/grouped-var-declarations.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "2962e40e4009fc06a09468b0ecd4187635094a76..884bc1a5d0bacd67e3a02792464ea8213a4126c3"
}
,{
"testCaseDescription": "go-grouped-var-declarations-insert-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Added the 'zero' var assignment in the main function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
8
]
}
},
"summary": "Added the 'one' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"patch": [
"diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go",
"index 79058077..cdb45b39 100644",
"--- a/grouped-var-declarations.go",
"+++ b/grouped-var-declarations.go",
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
"+var (",
"+zero = 0",
"+one = 1",
"+)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "884bc1a5d0bacd67e3a02792464ea8213a4126c3..df53f451e366a34ba6fd6baee18b2e444fc434ee"
}
,{
"testCaseDescription": "go-grouped-var-declarations-replacement-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
5
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the a var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
4
]
},
{
"start": [
6,
1
],
"end": [
6,
2
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'b' identifier in the b var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"patch": [
"diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go",
"index cdb45b39..806a5935 100644",
"--- a/grouped-var-declarations.go",
"+++ b/grouped-var-declarations.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" var (",
"-zero = 0",
"-one = 1",
"+a = 0",
"+b = 1",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "df53f451e366a34ba6fd6baee18b2e444fc434ee..7f1ce25e524ed238858cb98d017ac74e41165eed"
}
,{
"testCaseDescription": "go-grouped-var-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the zero var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
2
]
},
{
"start": [
6,
1
],
"end": [
6,
4
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'one' identifier in the one var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"patch": [
"diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go",
"index 806a5935..cdb45b39 100644",
"--- a/grouped-var-declarations.go",
"+++ b/grouped-var-declarations.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" var (",
"-a = 0",
"-b = 1",
"+zero = 0",
"+one = 1",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "7f1ce25e524ed238858cb98d017ac74e41165eed..4dfb3932039d2ff238e0ea11fc1bec4873399ef7"
}
,{
"testCaseDescription": "go-grouped-var-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the 'zero' var assignment in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
8
]
}
},
"summary": "Deleted the 'one' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"patch": [
"diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go",
"index cdb45b39..79058077 100644",
"--- a/grouped-var-declarations.go",
"+++ b/grouped-var-declarations.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-var (",
"-zero = 0",
"-one = 1",
"-)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "4dfb3932039d2ff238e0ea11fc1bec4873399ef7..a9b559a84f698fe454c016fcb5458c3e71fd5416"
}
,{
"testCaseDescription": "go-grouped-var-declarations-teardown-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"patch": [
"diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go",
"index 79058077..e69de29b 100644",
"--- a/grouped-var-declarations.go",
"+++ b/grouped-var-declarations.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "a9b559a84f698fe454c016fcb5458c3e71fd5416..4b10b6ade6ce2758e1727d4e03710722cb374ec6"
}]

View File

@ -1,518 +0,0 @@
[{
"testCaseDescription": "go-if-statements-setup-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
"patch": [
"diff --git a/if-statements.go b/if-statements.go",
"index e69de29b..79058077 100644",
"--- a/if-statements.go",
"+++ b/if-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "844563260fa09b99d4cf94ec2ba5a65d9a5e6ded..7f05d434eeb7d4e475e8a5fefb8921bb958cc60d"
}
,{
"testCaseDescription": "go-if-statements-insert-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'a()' if statement in the main function"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
9,
2
]
}
},
"summary": "Added the 'a := b()' if statement in the main function"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
14,
2
]
}
},
"summary": "Added the 'a()' if statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
"patch": [
"diff --git a/if-statements.go b/if-statements.go",
"index 79058077..76a6f335 100644",
"--- a/if-statements.go",
"+++ b/if-statements.go",
"@@ -1,5 +1,15 @@",
" package main",
" ",
" func main() {",
"-",
"+if a() {",
"+b()",
"+}",
"+if a := b(); c {",
"+d()",
"+}",
"+if a() {",
"+b()",
"+} else {",
"+c()",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "7f05d434eeb7d4e475e8a5fefb8921bb958cc60d..045dae9fcac53782ce8bc04cd7d8b97eec6c13ca"
}
,{
"testCaseDescription": "go-if-statements-replacement-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
5
]
},
{
"start": [
4,
4
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the x() function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
4
],
"end": [
7,
5
]
},
{
"start": [
7,
4
],
"end": [
7,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'y' identifier in the 'y := b()' if statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
10,
4
],
"end": [
10,
5
]
},
{
"start": [
10,
4
],
"end": [
10,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'z' identifier in the z() function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
"patch": [
"diff --git a/if-statements.go b/if-statements.go",
"index 76a6f335..39dfc0da 100644",
"--- a/if-statements.go",
"+++ b/if-statements.go",
"@@ -1,13 +1,13 @@",
" package main",
" ",
" func main() {",
"-if a() {",
"+if x() {",
" b()",
" }",
"-if a := b(); c {",
"+if y := b(); c {",
" d()",
" }",
"-if a() {",
"+if z() {",
" b()",
" } else {",
" c()"
],
"gitDir": "test/corpus/repos/go",
"shas": "045dae9fcac53782ce8bc04cd7d8b97eec6c13ca..868fa819f5e273f493e8292b74593b773aa86193"
}
,{
"testCaseDescription": "go-if-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
5
]
},
{
"start": [
4,
4
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the a() function call of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
4
],
"end": [
7,
5
]
},
{
"start": [
7,
4
],
"end": [
7,
5
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'a' identifier in the 'a := b()' if statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
10,
4
],
"end": [
10,
5
]
},
{
"start": [
10,
4
],
"end": [
10,
5
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'a' identifier in the a() function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
"patch": [
"diff --git a/if-statements.go b/if-statements.go",
"index 39dfc0da..76a6f335 100644",
"--- a/if-statements.go",
"+++ b/if-statements.go",
"@@ -1,13 +1,13 @@",
" package main",
" ",
" func main() {",
"-if x() {",
"+if a() {",
" b()",
" }",
"-if y := b(); c {",
"+if a := b(); c {",
" d()",
" }",
"-if z() {",
"+if a() {",
" b()",
" } else {",
" c()"
],
"gitDir": "test/corpus/repos/go",
"shas": "868fa819f5e273f493e8292b74593b773aa86193..53b5caeb25eac5493b68833e1139e280166f49ac"
}
,{
"testCaseDescription": "go-if-statements-delete-insert-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'a()' if statement in the main function"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
9,
2
]
}
},
"summary": "Deleted the 'a := b()' if statement in the main function"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
14,
2
]
}
},
"summary": "Deleted the 'a()' if statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
"patch": [
"diff --git a/if-statements.go b/if-statements.go",
"index 76a6f335..79058077 100644",
"--- a/if-statements.go",
"+++ b/if-statements.go",
"@@ -1,15 +1,5 @@",
" package main",
" ",
" func main() {",
"-if a() {",
"-b()",
"-}",
"-if a := b(); c {",
"-d()",
"-}",
"-if a() {",
"-b()",
"-} else {",
"-c()",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "53b5caeb25eac5493b68833e1139e280166f49ac..0e1909c5e43a050032b2698a2f3e00d8598de19b"
}
,{
"testCaseDescription": "go-if-statements-teardown-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
"patch": [
"diff --git a/if-statements.go b/if-statements.go",
"index 79058077..e69de29b 100644",
"--- a/if-statements.go",
"+++ b/if-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "0e1909c5e43a050032b2698a2f3e00d8598de19b..1f7119ceb53f8159ac2330bdb3c78e76a19a5ed0"
}]

View File

@ -1,406 +0,0 @@
[{
"testCaseDescription": "go-imaginary-literals-setup-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index e69de29b..79058077 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "d16e448af6bd6f785de25d685b7bceabce571049..f71342e1048bf05281d4e8df930dcdb62f2a6cd3"
}
,{
"testCaseDescription": "go-imaginary-literals-insert-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
8
]
}
},
"summary": "Added the 'a' var assignment in the main function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
13
]
}
},
"summary": "Added the 'b' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 79058077..25a97daf 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
"+const (",
"+a = 01i",
"+b = 1.e+100i",
"+)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "f71342e1048bf05281d4e8df930dcdb62f2a6cd3..9457a18efe8999b143097ce802e90ab5a9020d1d"
}
,{
"testCaseDescription": "go-imaginary-literals-replacement-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
8
]
},
{
"start": [
5,
5
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the '01i' imaginary_literal with the '02i' imaginary_literal in the a var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
5
],
"end": [
6,
13
]
},
{
"start": [
6,
5
],
"end": [
6,
13
]
}
]
},
"summary": "Replaced the '1.e+100i' imaginary_literal with the '1.e+103i' imaginary_literal in the b var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 25a97daf..151a5338 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" const (",
"-a = 01i",
"-b = 1.e+100i",
"+a = 02i",
"+b = 1.e+103i",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "9457a18efe8999b143097ce802e90ab5a9020d1d..1aab20401433fa70de2977b9e184e5ed176041a1"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
8
]
},
{
"start": [
5,
5
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the '02i' imaginary_literal with the '01i' imaginary_literal in the a var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
5
],
"end": [
6,
13
]
},
{
"start": [
6,
5
],
"end": [
6,
13
]
}
]
},
"summary": "Replaced the '1.e+103i' imaginary_literal with the '1.e+100i' imaginary_literal in the b var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 151a5338..25a97daf 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" const (",
"-a = 02i",
"-b = 1.e+103i",
"+a = 01i",
"+b = 1.e+100i",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "1aab20401433fa70de2977b9e184e5ed176041a1..6e2594b50b22760d63f502a228d701e5124b005b"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-insert-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'a' var assignment in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
13
]
}
},
"summary": "Deleted the 'b' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 25a97daf..79058077 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-const (",
"-a = 01i",
"-b = 1.e+100i",
"-)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "6e2594b50b22760d63f502a228d701e5124b005b..06b206c0083b17c4656006fdaf32ea3e228c94b8"
}
,{
"testCaseDescription": "go-imaginary-literals-teardown-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 79058077..e69de29b 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "06b206c0083b17c4656006fdaf32ea3e228c94b8..eb189cbc2630347c2b2e4e69f5fb5f1cd5284c7d"
}]

View File

@ -1,406 +0,0 @@
[{
"testCaseDescription": "go-increment-decrement-statements-setup-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index e69de29b..79058077 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "759bcc1def9029c1f75c6355dc3d149aad453526..139accc79873485c0588a2cf9c5875872cd62038"
}
,{
"testCaseDescription": "go-increment-decrement-statements-insert-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
4
]
}
},
"summary": "Added the 'i++' increment statement in the main function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'j--' decrement statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index 79058077..18bf03a2 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -1,5 +1,6 @@",
" package main",
" ",
" func main() {",
"-",
"+i++",
"+j--",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "139accc79873485c0588a2cf9c5875872cd62038..8de9cb1905b2ebbc1ed26f35f80f40863b07a34a"
}
,{
"testCaseDescription": "go-increment-decrement-statements-replacement-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
4
]
},
{
"start": [
4,
1
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced the 'i++' increment statement with the 'foo++' increment statement in the main function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'x++' increment statement in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'j--' decrement statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index 18bf03a2..08611ad4 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-i++",
"-j--",
"+foo++",
"+x++",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "8de9cb1905b2ebbc1ed26f35f80f40863b07a34a..cf96716d214016e3d91b7389e07e3ad195f2a70d"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
6
]
},
{
"start": [
4,
1
],
"end": [
4,
4
]
}
]
},
"summary": "Replaced the 'foo++' increment statement with the 'i++' increment statement in the main function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'j--' decrement statement in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'x++' increment statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index 08611ad4..18bf03a2 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-foo++",
"-x++",
"+i++",
"+j--",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "cf96716d214016e3d91b7389e07e3ad195f2a70d..7f8c0bda49b47fff895e40cad8f3e0ad35e71dc4"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-insert-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
4
]
}
},
"summary": "Deleted the 'i++' increment statement in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'j--' decrement statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index 18bf03a2..79058077 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -1,6 +1,5 @@",
" package main",
" ",
" func main() {",
"-i++",
"-j--",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "7f8c0bda49b47fff895e40cad8f3e0ad35e71dc4..c26c44c5f60f2dc0187f577920eb720df9fcd429"
}
,{
"testCaseDescription": "go-increment-decrement-statements-teardown-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index 79058077..e69de29b 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "c26c44c5f60f2dc0187f577920eb720df9fcd429..676a4c0466e117135c3df59c9af1dbe709f9d8f6"
}]

View File

@ -1,815 +0,0 @@
[{
"testCaseDescription": "go-indexing-expressions-setup-test",
"expectedResult": {
"changes": {
"indexing-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"indexing-expressions.go"
],
"patch": [
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
"index e69de29b..79058077 100644",
"--- a/indexing-expressions.go",
"+++ b/indexing-expressions.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "da87539e91454e018a1ba3c704f8fceb37fc9f2b..f132a69a71e31122d4506b52fd27fa1d5b367289"
}
,{
"testCaseDescription": "go-indexing-expressions-insert-test",
"expectedResult": {
"changes": {
"indexing-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Added the 'a[1]' index expression in the main function"
},
{
"span": {
"insert": {
"start": [
5,
2
],
"end": [
5,
3
]
}
},
"summary": "Added the 'b' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
6,
2
],
"end": [
6,
7
]
}
},
"summary": "Added the 'c[1]' slice literal in the main function"
},
{
"span": {
"insert": {
"start": [
7,
2
],
"end": [
7,
3
]
}
},
"summary": "Added the 'd' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
7,
4
],
"end": [
7,
5
]
}
},
"summary": "Added '1' in the main function"
},
{
"span": {
"insert": {
"start": [
7,
6
],
"end": [
7,
7
]
}
},
"summary": "Added '2' in the main function"
},
{
"span": {
"insert": {
"start": [
8,
2
],
"end": [
8,
3
]
}
},
"summary": "Added the 'e' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
8,
5
],
"end": [
8,
6
]
}
},
"summary": "Added '2' in the main function"
},
{
"span": {
"insert": {
"start": [
8,
7
],
"end": [
8,
8
]
}
},
"summary": "Added '3' in the main function"
},
{
"span": {
"insert": {
"start": [
9,
2
],
"end": [
9,
3
]
}
},
"summary": "Added the 'f' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
9,
4
],
"end": [
9,
5
]
}
},
"summary": "Added '1' in the main function"
},
{
"span": {
"insert": {
"start": [
9,
6
],
"end": [
9,
7
]
}
},
"summary": "Added '2' in the main function"
},
{
"span": {
"insert": {
"start": [
9,
8
],
"end": [
9,
9
]
}
},
"summary": "Added '3' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"indexing-expressions.go"
],
"patch": [
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
"index 79058077..c2c76934 100644",
"--- a/indexing-expressions.go",
"+++ b/indexing-expressions.go",
"@@ -1,5 +1,10 @@",
" package main",
" ",
" func main() {",
"-",
"+a[1]",
"+ b[:]",
"+ c[1:]",
"+ d[1:2]",
"+ e[:2:3]",
"+ f[1:2:3]",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "f132a69a71e31122d4506b52fd27fa1d5b367289..958b85f05779da81cf8949f9de3ed3e244f77fec"
}
,{
"testCaseDescription": "go-indexing-expressions-replacement-test",
"expectedResult": {
"changes": {
"indexing-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the 'z[2]' slice literal in the main function"
},
{
"span": {
"insert": {
"start": [
5,
2
],
"end": [
5,
7
]
}
},
"summary": "Added the 'y[1]' slice literal in the main function"
},
{
"span": {
"insert": {
"start": [
6,
2
],
"end": [
6,
7
]
}
},
"summary": "Added the 'x[1]' slice literal in the main function"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Deleted the 'a[1]' index expression in the main function"
},
{
"span": {
"delete": {
"start": [
5,
2
],
"end": [
5,
3
]
}
},
"summary": "Deleted the 'b' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
6,
2
],
"end": [
6,
7
]
}
},
"summary": "Deleted the 'c[1]' slice literal in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"indexing-expressions.go"
],
"patch": [
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
"index c2c76934..68a76340 100644",
"--- a/indexing-expressions.go",
"+++ b/indexing-expressions.go",
"@@ -1,9 +1,9 @@",
" package main",
" ",
" func main() {",
"-a[1]",
"- b[:]",
"- c[1:]",
"+z[:2]",
"+ y[:1]",
"+ x[1:]",
" d[1:2]",
" e[:2:3]",
" f[1:2:3]"
],
"gitDir": "test/corpus/repos/go",
"shas": "958b85f05779da81cf8949f9de3ed3e244f77fec..8e2c38aa8f9dda4962cdcb4c16ac10152f00a4b5"
}
,{
"testCaseDescription": "go-indexing-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"indexing-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Added the 'a[1]' index expression in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
6
]
},
{
"start": [
5,
2
],
"end": [
5,
3
]
}
]
},
"summary": "Replaced the 'z[2]' slice literal with the 'b' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
6,
2
],
"end": [
6,
7
]
}
},
"summary": "Added the 'c[1]' slice literal in the main function"
},
{
"span": {
"delete": {
"start": [
5,
2
],
"end": [
5,
7
]
}
},
"summary": "Deleted the 'y[1]' slice literal in the main function"
},
{
"span": {
"delete": {
"start": [
6,
2
],
"end": [
6,
7
]
}
},
"summary": "Deleted the 'x[1]' slice literal in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"indexing-expressions.go"
],
"patch": [
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
"index 68a76340..c2c76934 100644",
"--- a/indexing-expressions.go",
"+++ b/indexing-expressions.go",
"@@ -1,9 +1,9 @@",
" package main",
" ",
" func main() {",
"-z[:2]",
"- y[:1]",
"- x[1:]",
"+a[1]",
"+ b[:]",
"+ c[1:]",
" d[1:2]",
" e[:2:3]",
" f[1:2:3]"
],
"gitDir": "test/corpus/repos/go",
"shas": "8e2c38aa8f9dda4962cdcb4c16ac10152f00a4b5..e95df8ac4c46f9edf98ea3352f8318e02621e5e4"
}
,{
"testCaseDescription": "go-indexing-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"indexing-expressions.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Deleted the 'a[1]' index expression in the main function"
},
{
"span": {
"delete": {
"start": [
5,
2
],
"end": [
5,
3
]
}
},
"summary": "Deleted the 'b' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
6,
2
],
"end": [
6,
7
]
}
},
"summary": "Deleted the 'c[1]' slice literal in the main function"
},
{
"span": {
"delete": {
"start": [
7,
2
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'd' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
7,
4
],
"end": [
7,
5
]
}
},
"summary": "Deleted '1' in the main function"
},
{
"span": {
"delete": {
"start": [
7,
6
],
"end": [
7,
7
]
}
},
"summary": "Deleted '2' in the main function"
},
{
"span": {
"delete": {
"start": [
8,
2
],
"end": [
8,
3
]
}
},
"summary": "Deleted the 'e' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
8,
5
],
"end": [
8,
6
]
}
},
"summary": "Deleted '2' in the main function"
},
{
"span": {
"delete": {
"start": [
8,
7
],
"end": [
8,
8
]
}
},
"summary": "Deleted '3' in the main function"
},
{
"span": {
"delete": {
"start": [
9,
2
],
"end": [
9,
3
]
}
},
"summary": "Deleted the 'f' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
9,
4
],
"end": [
9,
5
]
}
},
"summary": "Deleted '1' in the main function"
},
{
"span": {
"delete": {
"start": [
9,
6
],
"end": [
9,
7
]
}
},
"summary": "Deleted '2' in the main function"
},
{
"span": {
"delete": {
"start": [
9,
8
],
"end": [
9,
9
]
}
},
"summary": "Deleted '3' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"indexing-expressions.go"
],
"patch": [
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
"index c2c76934..79058077 100644",
"--- a/indexing-expressions.go",
"+++ b/indexing-expressions.go",
"@@ -1,10 +1,5 @@",
" package main",
" ",
" func main() {",
"-a[1]",
"- b[:]",
"- c[1:]",
"- d[1:2]",
"- e[:2:3]",
"- f[1:2:3]",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "e95df8ac4c46f9edf98ea3352f8318e02621e5e4..3ee7d179d6043f9db5b58bf1dd4b8756999b34f2"
}
,{
"testCaseDescription": "go-indexing-expressions-teardown-test",
"expectedResult": {
"changes": {
"indexing-expressions.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"indexing-expressions.go"
],
"patch": [
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
"index 79058077..e69de29b 100644",
"--- a/indexing-expressions.go",
"+++ b/indexing-expressions.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "3ee7d179d6043f9db5b58bf1dd4b8756999b34f2..16a71383b1105b6ba32fa5b1498ab5294acea29b"
}]

View File

@ -1,424 +0,0 @@
[{
"testCaseDescription": "go-int-literals-setup-test",
"expectedResult": {
"changes": {
"int-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"int-literals.go"
],
"patch": [
"diff --git a/int-literals.go b/int-literals.go",
"index e69de29b..79058077 100644",
"--- a/int-literals.go",
"+++ b/int-literals.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "c578d4a9262098e37c81793dbf2fcdb3834ed7fc..bf4c2fa143c7b8ec844770a1137017f2fb9e7d42"
}
,{
"testCaseDescription": "go-int-literals-insert-test",
"expectedResult": {
"changes": {},
"errors": {
"int-literals.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
20
]
}
},
"summary": "Added 'a = 1, b = 2, c = 3' at line 5, column 1 - line 5, column 20 in the main function"
}
]
}
},
"filePaths": [
"int-literals.go"
],
"patch": [
"diff --git a/int-literals.go b/int-literals.go",
"index 79058077..38d36eca 100644",
"--- a/int-literals.go",
"+++ b/int-literals.go",
"@@ -1,5 +1,7 @@",
" package main",
" ",
" func main() {",
"-",
"+const (",
"+a = 1, b = 2, c = 3",
"+)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "bf4c2fa143c7b8ec844770a1137017f2fb9e7d42..21106fed3fd8c3e31494c282edc82c5429c92869"
}
,{
"testCaseDescription": "go-int-literals-replacement-test",
"expectedResult": {
"changes": {
"int-literals.go": [
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
6
]
},
{
"start": [
5,
5
],
"end": [
5,
6
]
}
]
},
"summary": "Replaced '1' with '4' in the a var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
12
],
"end": [
5,
13
]
},
{
"start": [
5,
12
],
"end": [
5,
13
]
}
]
},
"summary": "Replaced '2' with '5' in an assignment to 5, c of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
19
],
"end": [
5,
20
]
},
{
"start": [
5,
19
],
"end": [
5,
20
]
}
]
},
"summary": "Replaced '3' with '6' in an assignment to 5, c of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"int-literals.go"
],
"patch": [
"diff --git a/int-literals.go b/int-literals.go",
"index 38d36eca..4f07c130 100644",
"--- a/int-literals.go",
"+++ b/int-literals.go",
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
" const (",
"-a = 1, b = 2, c = 3",
"+a = 4, b = 5, c = 6",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "21106fed3fd8c3e31494c282edc82c5429c92869..cfd6ec82951166ab2361dd233a256b7913534d9f"
}
,{
"testCaseDescription": "go-int-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"int-literals.go": [
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
6
]
},
{
"start": [
5,
5
],
"end": [
5,
6
]
}
]
},
"summary": "Replaced '4' with '1' in the a var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
12
],
"end": [
5,
13
]
},
{
"start": [
5,
12
],
"end": [
5,
13
]
}
]
},
"summary": "Replaced '5' with '2' in an assignment to 2, c of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
19
],
"end": [
5,
20
]
},
{
"start": [
5,
19
],
"end": [
5,
20
]
}
]
},
"summary": "Replaced '6' with '3' in an assignment to 2, c of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"int-literals.go"
],
"patch": [
"diff --git a/int-literals.go b/int-literals.go",
"index 4f07c130..38d36eca 100644",
"--- a/int-literals.go",
"+++ b/int-literals.go",
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
" const (",
"-a = 4, b = 5, c = 6",
"+a = 1, b = 2, c = 3",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "cfd6ec82951166ab2361dd233a256b7913534d9f..8c66b33e09eaea83addec2ac2330089768519921"
}
,{
"testCaseDescription": "go-int-literals-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {
"int-literals.go": [
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
20
]
}
},
"summary": "Deleted 'a = 1, b = 2, c = 3' at line 5, column 1 - line 5, column 20 in the main function"
}
]
}
},
"filePaths": [
"int-literals.go"
],
"patch": [
"diff --git a/int-literals.go b/int-literals.go",
"index 38d36eca..79058077 100644",
"--- a/int-literals.go",
"+++ b/int-literals.go",
"@@ -1,7 +1,5 @@",
" package main",
" ",
" func main() {",
"-const (",
"-a = 1, b = 2, c = 3",
"-)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "8c66b33e09eaea83addec2ac2330089768519921..1d6bcf3782d0b1f80d454b369648f5e7a9dff34e"
}
,{
"testCaseDescription": "go-int-literals-teardown-test",
"expectedResult": {
"changes": {
"int-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"int-literals.go"
],
"patch": [
"diff --git a/int-literals.go b/int-literals.go",
"index 79058077..e69de29b 100644",
"--- a/int-literals.go",
"+++ b/int-literals.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "1d6bcf3782d0b1f80d454b369648f5e7a9dff34e..e2c2101dadc49e784ab17192eba4aad3c2c5d13b"
}]

View File

@ -1,502 +0,0 @@
[{
"testCaseDescription": "go-interface-types-setup-test",
"expectedResult": {
"changes": {
"interface-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"interface-types.go"
],
"patch": [
"diff --git a/interface-types.go b/interface-types.go",
"index e69de29b..79058077 100644",
"--- a/interface-types.go",
"+++ b/interface-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "5f287115383794ba8f417807b7e523efa7fef3b6..5308a7c67998f85b5cc12e0cdf882315608caeeb"
}
,{
"testCaseDescription": "go-interface-types-insert-test",
"expectedResult": {
"changes": {
"interface-types.go": [
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
21
]
}
},
"summary": "Added the 'i1' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
32
]
}
},
"summary": "Added the 'i2' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
10,
2
]
}
},
"summary": "Added the 'i3' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"interface-types.go"
],
"patch": [
"diff --git a/interface-types.go b/interface-types.go",
"index 79058077..9b2ca4a9 100644",
"--- a/interface-types.go",
"+++ b/interface-types.go",
"@@ -1,5 +1,11 @@",
" package main",
" ",
" func main() {",
"-",
"+type i1 interface {}",
"+type i2 interface { io.Reader }",
"+type i3 interface {",
"+i1",
"+io.Reader",
"+ SomeMethod(s string) error",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "5308a7c67998f85b5cc12e0cdf882315608caeeb..f5d85befb6bf9b0e5b8b4c4e2fa67fd3ed2da75e"
}
,{
"testCaseDescription": "go-interface-types-replacement-test",
"expectedResult": {
"changes": {
"interface-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
8
]
},
{
"start": [
4,
6
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'i1' identifier with the 'j1' identifier in the 'j1' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'i2' identifier with the 'j2' identifier in the 'j2' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 'i3' identifier with the 'j3' identifier in the 'j3' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"interface-types.go"
],
"patch": [
"diff --git a/interface-types.go b/interface-types.go",
"index 9b2ca4a9..cba5600b 100644",
"--- a/interface-types.go",
"+++ b/interface-types.go",
"@@ -1,9 +1,9 @@",
" package main",
" ",
" func main() {",
"-type i1 interface {}",
"-type i2 interface { io.Reader }",
"-type i3 interface {",
"+type j1 interface {}",
"+type j2 interface { io.Reader }",
"+type j3 interface {",
" i1",
" io.Reader",
" SomeMethod(s string) error"
],
"gitDir": "test/corpus/repos/go",
"shas": "f5d85befb6bf9b0e5b8b4c4e2fa67fd3ed2da75e..475be5898131719a2e51ef7face3bfe6193bb645"
}
,{
"testCaseDescription": "go-interface-types-delete-replacement-test",
"expectedResult": {
"changes": {
"interface-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
8
]
},
{
"start": [
4,
6
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'j1' identifier with the 'i1' identifier in the 'i1' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'j2' identifier with the 'i2' identifier in the 'i2' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 'j3' identifier with the 'i3' identifier in the 'i3' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"interface-types.go"
],
"patch": [
"diff --git a/interface-types.go b/interface-types.go",
"index cba5600b..9b2ca4a9 100644",
"--- a/interface-types.go",
"+++ b/interface-types.go",
"@@ -1,9 +1,9 @@",
" package main",
" ",
" func main() {",
"-type j1 interface {}",
"-type j2 interface { io.Reader }",
"-type j3 interface {",
"+type i1 interface {}",
"+type i2 interface { io.Reader }",
"+type i3 interface {",
" i1",
" io.Reader",
" SomeMethod(s string) error"
],
"gitDir": "test/corpus/repos/go",
"shas": "475be5898131719a2e51ef7face3bfe6193bb645..00cf7b9dd146bbc791d81381b47a46abb9a138ce"
}
,{
"testCaseDescription": "go-interface-types-delete-insert-test",
"expectedResult": {
"changes": {
"interface-types.go": [
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
21
]
}
},
"summary": "Deleted the 'i1' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
32
]
}
},
"summary": "Deleted the 'i2' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'i3' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"interface-types.go"
],
"patch": [
"diff --git a/interface-types.go b/interface-types.go",
"index 9b2ca4a9..79058077 100644",
"--- a/interface-types.go",
"+++ b/interface-types.go",
"@@ -1,11 +1,5 @@",
" package main",
" ",
" func main() {",
"-type i1 interface {}",
"-type i2 interface { io.Reader }",
"-type i3 interface {",
"-i1",
"-io.Reader",
"- SomeMethod(s string) error",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "00cf7b9dd146bbc791d81381b47a46abb9a138ce..9839bea33814300762ed1bb4fb86bd75e316f8ac"
}
,{
"testCaseDescription": "go-interface-types-teardown-test",
"expectedResult": {
"changes": {
"interface-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"interface-types.go"
],
"patch": [
"diff --git a/interface-types.go b/interface-types.go",
"index 79058077..e69de29b 100644",
"--- a/interface-types.go",
"+++ b/interface-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "9839bea33814300762ed1bb4fb86bd75e316f8ac..ac0992c169e071be4495a4b8731e72c391fb7863"
}]

View File

@ -1,316 +0,0 @@
[{
"testCaseDescription": "go-label-statements-setup-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index e69de29b..79058077 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "3b8c04146e306d10e05370f01c662eccc49a57d3..57ed8dedb7bf3c601f9e69e85985f53d45987fa6"
}
,{
"testCaseDescription": "go-label-statements-insert-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"insert": {
"start": [
5,
3
],
"end": [
5,
15
]
}
},
"summary": "Added the 'insert_label' identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index 79058077..b0a29697 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -1,5 +1,7 @@",
" package main",
" ",
" func main() {",
"-",
"+{",
"+ insert_label:",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "57ed8dedb7bf3c601f9e69e85985f53d45987fa6..bce262b3d8e0c0bb6ecd7868b7f1803becf81dc0"
}
,{
"testCaseDescription": "go-label-statements-replacement-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"replace": [
{
"start": [
5,
3
],
"end": [
5,
15
]
},
{
"start": [
5,
3
],
"end": [
5,
20
]
}
]
},
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index b0a29697..3d3cf164 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
" {",
"- insert_label:",
"+ replacement_label:",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "bce262b3d8e0c0bb6ecd7868b7f1803becf81dc0..b494a966e834feb39879a93b81b6db2f3c02da0a"
}
,{
"testCaseDescription": "go-label-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"replace": [
{
"start": [
5,
3
],
"end": [
5,
20
]
},
{
"start": [
5,
3
],
"end": [
5,
15
]
}
]
},
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index 3d3cf164..b0a29697 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
" {",
"- replacement_label:",
"+ insert_label:",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "b494a966e834feb39879a93b81b6db2f3c02da0a..898ee4bc471eb5701491310314d6798e2754f6ba"
}
,{
"testCaseDescription": "go-label-statements-delete-insert-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"delete": {
"start": [
5,
3
],
"end": [
5,
15
]
}
},
"summary": "Deleted the 'insert_label' identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index b0a29697..79058077 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -1,7 +1,5 @@",
" package main",
" ",
" func main() {",
"-{",
"- insert_label:",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "898ee4bc471eb5701491310314d6798e2754f6ba..6ad29ac732fa4ca88ade6068c03047620ccf81e3"
}
,{
"testCaseDescription": "go-label-statements-teardown-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index 79058077..e69de29b 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "6ad29ac732fa4ca88ade6068c03047620ccf81e3..05733ec654b2b20d054881640e8c5726bbe00f6d"
}]

View File

@ -1,491 +0,0 @@
[{
"testCaseDescription": "go-map-literals-setup-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"patch": [
"diff --git a/map-literals.go b/map-literals.go",
"index e69de29b..79058077 100644",
"--- a/map-literals.go",
"+++ b/map-literals.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "fad96915d832ac6e13a3a067b6bc46fb5150823d..f0ec6f384d6a27dab3caeaf2ba5cc644b9c3e628"
}
,{
"testCaseDescription": "go-map-literals-insert-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"insert": {
"start": [
4,
7
],
"end": [
7,
2
]
}
},
"summary": "Added the 's' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"patch": [
"diff --git a/map-literals.go b/map-literals.go",
"index 79058077..bb99b5ba 100644",
"--- a/map-literals.go",
"+++ b/map-literals.go",
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
"+const s = map[string]string{",
"+\"hi\": \"hello\",",
"+\"bye\": \"goodbye\",",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "f0ec6f384d6a27dab3caeaf2ba5cc644b9c3e628..42d34535c7ed3286963cc35a05c1d7a6a7bfdb11"
}
,{
"testCaseDescription": "go-map-literals-replacement-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
22
],
"end": [
4,
28
]
},
{
"start": [
4,
22
],
"end": [
4,
25
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the map[string]int composite_literal of the 'main' function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
13
]
}
},
"summary": "Added the '\"foo\": \"bar\"' pair in the map[string]int composite_literal of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
5
]
},
{
"start": [
6,
1
],
"end": [
6,
6
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"baz\" string in the \"baz\": \"hello\" pair of the 'main' function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
17
]
}
},
"summary": "Deleted the '\"bye\": \"goodbye\"' pair in the map[string]int composite_literal of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"patch": [
"diff --git a/map-literals.go b/map-literals.go",
"index bb99b5ba..a9e0b664 100644",
"--- a/map-literals.go",
"+++ b/map-literals.go",
"@@ -1,8 +1,8 @@",
" package main",
" ",
" func main() {",
"-const s = map[string]string{",
"-\"hi\": \"hello\",",
"-\"bye\": \"goodbye\",",
"+const s = map[string]int{",
"+\"foo\": \"bar\",",
"+\"baz\": \"hello\",",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "42d34535c7ed3286963cc35a05c1d7a6a7bfdb11..39303df07d763621e7a8928173ee0c822c520bfe"
}
,{
"testCaseDescription": "go-map-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
22
],
"end": [
4,
25
]
},
{
"start": [
4,
22
],
"end": [
4,
28
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the map[string]string composite_literal of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
6
]
},
{
"start": [
5,
1
],
"end": [
5,
5
]
}
]
},
"summary": "Replaced the \"foo\" string with the \"hi\" string in the \"hi\": \"hello\" pair of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
8
],
"end": [
5,
13
]
},
{
"start": [
5,
7
],
"end": [
5,
14
]
}
]
},
"summary": "Replaced the \"bar\" string with the \"hello\" string in the \"hi\": \"hello\" pair of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
6
]
},
{
"start": [
6,
1
],
"end": [
6,
6
]
}
]
},
"summary": "Replaced the \"baz\" string with the \"bye\" string in the \"bye\": \"goodbye\" pair of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
8
],
"end": [
6,
15
]
},
{
"start": [
6,
8
],
"end": [
6,
17
]
}
]
},
"summary": "Replaced the \"hello\" string with the \"goodbye\" string in the \"bye\": \"goodbye\" pair of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"patch": [
"diff --git a/map-literals.go b/map-literals.go",
"index a9e0b664..bb99b5ba 100644",
"--- a/map-literals.go",
"+++ b/map-literals.go",
"@@ -1,8 +1,8 @@",
" package main",
" ",
" func main() {",
"-const s = map[string]int{",
"-\"foo\": \"bar\",",
"-\"baz\": \"hello\",",
"+const s = map[string]string{",
"+\"hi\": \"hello\",",
"+\"bye\": \"goodbye\",",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "39303df07d763621e7a8928173ee0c822c520bfe..f22e0d32dba611ac58ef475923feac6ffe185a2e"
}
,{
"testCaseDescription": "go-map-literals-delete-insert-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"delete": {
"start": [
4,
7
],
"end": [
7,
2
]
}
},
"summary": "Deleted the 's' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"patch": [
"diff --git a/map-literals.go b/map-literals.go",
"index bb99b5ba..79058077 100644",
"--- a/map-literals.go",
"+++ b/map-literals.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-const s = map[string]string{",
"-\"hi\": \"hello\",",
"-\"bye\": \"goodbye\",",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "f22e0d32dba611ac58ef475923feac6ffe185a2e..a68c251ad02bdd43dce19cdceae22c139bb5ac40"
}
,{
"testCaseDescription": "go-map-literals-teardown-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"patch": [
"diff --git a/map-literals.go b/map-literals.go",
"index 79058077..e69de29b 100644",
"--- a/map-literals.go",
"+++ b/map-literals.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "a68c251ad02bdd43dce19cdceae22c139bb5ac40..6c6fe03e1ce4f7369c5cd528025e7e80a78cb2e3"
}]

View File

@ -1,310 +0,0 @@
[{
"testCaseDescription": "go-map-types-setup-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"patch": [
"diff --git a/map-types.go b/map-types.go",
"index e69de29b..79058077 100644",
"--- a/map-types.go",
"+++ b/map-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "ac0992c169e071be4495a4b8731e72c391fb7863..626c85412642113270ec1bf0e1ff32d5ae4a97d3"
}
,{
"testCaseDescription": "go-map-types-insert-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
25
]
}
},
"summary": "Added the 'm1' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"patch": [
"diff --git a/map-types.go b/map-types.go",
"index 79058077..01004b30 100644",
"--- a/map-types.go",
"+++ b/map-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+type m1 map[string]error",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "626c85412642113270ec1bf0e1ff32d5ae4a97d3..0944d3cf9d44029109a0dd2360ceb2807990c76e"
}
,{
"testCaseDescription": "go-map-types-replacement-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
13
],
"end": [
4,
19
]
},
{
"start": [
4,
13
],
"end": [
4,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the 'm1' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"patch": [
"diff --git a/map-types.go b/map-types.go",
"index 01004b30..a118e920 100644",
"--- a/map-types.go",
"+++ b/map-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-type m1 map[string]error",
"+type m1 map[int]error",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "0944d3cf9d44029109a0dd2360ceb2807990c76e..e0b1f3a190da6f2f2b39d8f1fdea20cc86091a26"
}
,{
"testCaseDescription": "go-map-types-delete-replacement-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
13
],
"end": [
4,
16
]
},
{
"start": [
4,
13
],
"end": [
4,
19
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the 'm1' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"patch": [
"diff --git a/map-types.go b/map-types.go",
"index a118e920..01004b30 100644",
"--- a/map-types.go",
"+++ b/map-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-type m1 map[int]error",
"+type m1 map[string]error",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "e0b1f3a190da6f2f2b39d8f1fdea20cc86091a26..749359cd5af467d046b9f2797e1b38e607a3acc5"
}
,{
"testCaseDescription": "go-map-types-delete-insert-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
25
]
}
},
"summary": "Deleted the 'm1' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"patch": [
"diff --git a/map-types.go b/map-types.go",
"index 01004b30..79058077 100644",
"--- a/map-types.go",
"+++ b/map-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-type m1 map[string]error",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "749359cd5af467d046b9f2797e1b38e607a3acc5..3964860791c193f4560ace0d778b11bf8d29de03"
}
,{
"testCaseDescription": "go-map-types-teardown-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"patch": [
"diff --git a/map-types.go b/map-types.go",
"index 79058077..e69de29b 100644",
"--- a/map-types.go",
"+++ b/map-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "3964860791c193f4560ace0d778b11bf8d29de03..a1c5e30a9f0396b299eca4b60affb5c0e1ba1e98"
}]

View File

@ -1,360 +0,0 @@
[{
"testCaseDescription": "go-method-declarations-setup-test",
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
15
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"method-declarations.go"
],
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
"index e69de29b..6aaca9ef 100644",
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {}",
"+",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "852d29d2b9a695875dd0e15454330bbf7c5e49ff..8dbfd03f829f633e03994c029050d4c04facf13a"
}
,{
"testCaseDescription": "go-method-declarations-insert-test",
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
48
]
}
},
"summary": "Added the '(self Person).Equals(…)' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declarations.go"
],
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
"index 6aaca9ef..e556c016 100644",
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
"@@ -2,4 +2,4 @@ package main",
" ",
" func main() {}",
" ",
"-",
"+func (self Person) Equals(other Person) bool {}"
],
"gitDir": "test/corpus/repos/go",
"shas": "8dbfd03f829f633e03994c029050d4c04facf13a..0c19c3d818bc2c0bac5168d3e77f4e54e382a2d3"
}
,{
"testCaseDescription": "go-method-declarations-replacement-test",
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"replace": [
{
"start": [
5,
12
],
"end": [
5,
18
]
},
{
"start": [
5,
12
],
"end": [
5,
15
]
}
]
},
"summary": "Replaced the 'Person' identifier with the 'Num' identifier in the '(self Num).Equals(…)' method"
},
{
"span": {
"replace": [
{
"start": [
5,
33
],
"end": [
5,
39
]
},
{
"start": [
5,
30
],
"end": [
5,
33
]
}
]
},
"summary": "Replaced the 'Person' identifier with the 'Num' identifier in the '(self Num).Equals(…)' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declarations.go"
],
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
"index e556c016..1be6d205 100644",
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
"@@ -2,4 +2,4 @@ package main",
" ",
" func main() {}",
" ",
"-func (self Person) Equals(other Person) bool {}",
"+func (self Num) Equals(other Num) bool {}"
],
"gitDir": "test/corpus/repos/go",
"shas": "0c19c3d818bc2c0bac5168d3e77f4e54e382a2d3..973f19351649422c552bebc3caa6b543f7edde31"
}
,{
"testCaseDescription": "go-method-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"replace": [
{
"start": [
5,
12
],
"end": [
5,
15
]
},
{
"start": [
5,
12
],
"end": [
5,
18
]
}
]
},
"summary": "Replaced the 'Num' identifier with the 'Person' identifier in the '(self Person).Equals(…)' method"
},
{
"span": {
"replace": [
{
"start": [
5,
30
],
"end": [
5,
33
]
},
{
"start": [
5,
33
],
"end": [
5,
39
]
}
]
},
"summary": "Replaced the 'Num' identifier with the 'Person' identifier in the '(self Person).Equals(…)' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declarations.go"
],
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
"index 1be6d205..e556c016 100644",
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
"@@ -2,4 +2,4 @@ package main",
" ",
" func main() {}",
" ",
"-func (self Num) Equals(other Num) bool {}",
"+func (self Person) Equals(other Person) bool {}"
],
"gitDir": "test/corpus/repos/go",
"shas": "973f19351649422c552bebc3caa6b543f7edde31..322c0af27ab61337490585a423787b8dd90cdb4d"
}
,{
"testCaseDescription": "go-method-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
48
]
}
},
"summary": "Deleted the '(self Person).Equals(…)' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declarations.go"
],
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
"index e556c016..6aaca9ef 100644",
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
"@@ -2,4 +2,4 @@ package main",
" ",
" func main() {}",
" ",
"-func (self Person) Equals(other Person) bool {}",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "322c0af27ab61337490585a423787b8dd90cdb4d..02fce651f253788ced60704a9f32342bbae010a8"
}
,{
"testCaseDescription": "go-method-declarations-teardown-test",
"expectedResult": {
"changes": {
"method-declarations.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
15
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"method-declarations.go"
],
"patch": [
"diff --git a/method-declarations.go b/method-declarations.go",
"index 6aaca9ef..e69de29b 100644",
"--- a/method-declarations.go",
"+++ b/method-declarations.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {}",
"-",
"-"
],
"gitDir": "test/corpus/repos/go",
"shas": "02fce651f253788ced60704a9f32342bbae010a8..7edc6135ad00c9c21d6159bf897deac80d7f7b99"
}]

View File

@ -1,346 +0,0 @@
[{
"testCaseDescription": "go-modifying-struct-fields-setup-test",
"expectedResult": {
"changes": {
"modifying-struct-fields.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"modifying-struct-fields.go"
],
"patch": [
"diff --git a/modifying-struct-fields.go b/modifying-struct-fields.go",
"index e69de29b..79058077 100644",
"--- a/modifying-struct-fields.go",
"+++ b/modifying-struct-fields.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "8566e6b82b82cdb946f31050cd67e81c7a70a4f8..4c6ba0cec79bc7bc4f19f23ec290129743c33ab0"
}
,{
"testCaseDescription": "go-modifying-struct-fields-insert-test",
"expectedResult": {
"changes": {
"modifying-struct-fields.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
4
]
}
},
"summary": "Added the 'ctx' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
6,
2
]
}
},
"summary": "Added the '&uploadContext{\n Remote: remote\n}' operator in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"modifying-struct-fields.go"
],
"patch": [
"diff --git a/modifying-struct-fields.go b/modifying-struct-fields.go",
"index 79058077..8b8c10e6 100644",
"--- a/modifying-struct-fields.go",
"+++ b/modifying-struct-fields.go",
"@@ -1,5 +1,7 @@",
" package main",
" ",
" func main() {",
"-",
"+ctx := &uploadContext{",
"+ Remote: remote",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "4c6ba0cec79bc7bc4f19f23ec290129743c33ab0..ce4c1df86303fc418b251ee6c3cdb8a5e19c1ddc"
}
,{
"testCaseDescription": "go-modifying-struct-fields-replacement-test",
"expectedResult": {
"changes": {
"modifying-struct-fields.go": [
{
"span": {
"replace": [
{
"start": [
5,
4
],
"end": [
5,
18
]
},
{
"start": [
5,
4
],
"end": [
5,
35
]
}
]
},
"summary": "Replaced the 'Remote: remote' pair with the 'trackedLocksMu: new(sync.Mutex)' pair in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"modifying-struct-fields.go"
],
"patch": [
"diff --git a/modifying-struct-fields.go b/modifying-struct-fields.go",
"index 8b8c10e6..e16cd243 100644",
"--- a/modifying-struct-fields.go",
"+++ b/modifying-struct-fields.go",
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
" ctx := &uploadContext{",
"- Remote: remote",
"+ trackedLocksMu: new(sync.Mutex)",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "ce4c1df86303fc418b251ee6c3cdb8a5e19c1ddc..914f29c058eacd9c592d304947d46feaa25e7b33"
}
,{
"testCaseDescription": "go-modifying-struct-fields-delete-replacement-test",
"expectedResult": {
"changes": {
"modifying-struct-fields.go": [
{
"span": {
"replace": [
{
"start": [
5,
4
],
"end": [
5,
35
]
},
{
"start": [
5,
4
],
"end": [
5,
18
]
}
]
},
"summary": "Replaced the 'trackedLocksMu: new(sync.Mutex)' pair with the 'Remote: remote' pair in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"modifying-struct-fields.go"
],
"patch": [
"diff --git a/modifying-struct-fields.go b/modifying-struct-fields.go",
"index e16cd243..8b8c10e6 100644",
"--- a/modifying-struct-fields.go",
"+++ b/modifying-struct-fields.go",
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
" ctx := &uploadContext{",
"- trackedLocksMu: new(sync.Mutex)",
"+ Remote: remote",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "914f29c058eacd9c592d304947d46feaa25e7b33..697657a456eb527a797dcae7f135a1e6d37a3df6"
}
,{
"testCaseDescription": "go-modifying-struct-fields-delete-insert-test",
"expectedResult": {
"changes": {
"modifying-struct-fields.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
4
]
}
},
"summary": "Deleted the 'ctx' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
4,
8
],
"end": [
6,
2
]
}
},
"summary": "Deleted the '&uploadContext{\n Remote: remote\n}' operator in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"modifying-struct-fields.go"
],
"patch": [
"diff --git a/modifying-struct-fields.go b/modifying-struct-fields.go",
"index 8b8c10e6..79058077 100644",
"--- a/modifying-struct-fields.go",
"+++ b/modifying-struct-fields.go",
"@@ -1,7 +1,5 @@",
" package main",
" ",
" func main() {",
"-ctx := &uploadContext{",
"- Remote: remote",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "697657a456eb527a797dcae7f135a1e6d37a3df6..46a167a5893ffbcd888ea7adedf5cd4f9411280a"
}
,{
"testCaseDescription": "go-modifying-struct-fields-teardown-test",
"expectedResult": {
"changes": {
"modifying-struct-fields.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"modifying-struct-fields.go"
],
"patch": [
"diff --git a/modifying-struct-fields.go b/modifying-struct-fields.go",
"index 79058077..e69de29b 100644",
"--- a/modifying-struct-fields.go",
"+++ b/modifying-struct-fields.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "46a167a5893ffbcd888ea7adedf5cd4f9411280a..177fb35939c02b4bc6067142eab57a6cc2237513"
}]

View File

@ -1,423 +0,0 @@
[{
"testCaseDescription": "go-parameter-declarations-with-types-setup-test",
"expectedResult": {
"changes": {
"parameter-declarations-with-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"parameter-declarations-with-types.go"
],
"patch": [
"diff --git a/parameter-declarations-with-types.go b/parameter-declarations-with-types.go",
"index e69de29b..a92cefed 100644",
"--- a/parameter-declarations-with-types.go",
"+++ b/parameter-declarations-with-types.go",
"@@ -0,0 +1,6 @@",
"+package main",
"+",
"+func main() {",
"+}",
"+",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "f9b33be201f4f793e957567b70eebec7be3a69a2..19ff35cdac4d90df64eccad2f9cf12a3d6c950b9"
}
,{
"testCaseDescription": "go-parameter-declarations-with-types-insert-test",
"expectedResult": {
"changes": {
"parameter-declarations-with-types.go": [
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the 'foo' function"
}
]
},
"errors": {}
},
"filePaths": [
"parameter-declarations-with-types.go"
],
"patch": [
"diff --git a/parameter-declarations-with-types.go b/parameter-declarations-with-types.go",
"index a92cefed..ed6bff2d 100644",
"--- a/parameter-declarations-with-types.go",
"+++ b/parameter-declarations-with-types.go",
"@@ -3,4 +3,5 @@ package main",
" func main() {",
" }",
" ",
"-",
"+func foo(a int, b string) {",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "19ff35cdac4d90df64eccad2f9cf12a3d6c950b9..a2ecd8bc1cdd44e1accd506a4fe3122567c493a4"
}
,{
"testCaseDescription": "go-parameter-declarations-with-types-replacement-test",
"expectedResult": {
"changes": {
"parameter-declarations-with-types.go": [
{
"span": {
"replace": [
{
"start": [
6,
12
],
"end": [
6,
15
]
},
{
"start": [
6,
12
],
"end": [
6,
18
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the foo function"
},
{
"span": {
"replace": [
{
"start": [
6,
10
],
"end": [
6,
11
]
},
{
"start": [
6,
10
],
"end": [
6,
11
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the foo function"
},
{
"span": {
"replace": [
{
"start": [
6,
19
],
"end": [
6,
25
]
},
{
"start": [
6,
22
],
"end": [
6,
28
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'uint64' identifier in the foo function"
},
{
"span": {
"replace": [
{
"start": [
6,
17
],
"end": [
6,
18
]
},
{
"start": [
6,
20
],
"end": [
6,
21
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the foo function"
}
]
},
"errors": {}
},
"filePaths": [
"parameter-declarations-with-types.go"
],
"patch": [
"diff --git a/parameter-declarations-with-types.go b/parameter-declarations-with-types.go",
"index ed6bff2d..fcb6a303 100644",
"--- a/parameter-declarations-with-types.go",
"+++ b/parameter-declarations-with-types.go",
"@@ -3,5 +3,5 @@ package main",
" func main() {",
" }",
" ",
"-func foo(a int, b string) {",
"+func foo(x string, y uint64) {",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "a2ecd8bc1cdd44e1accd506a4fe3122567c493a4..31def9170cabd38fe5f30be4751911e10abe4964"
}
,{
"testCaseDescription": "go-parameter-declarations-with-types-delete-replacement-test",
"expectedResult": {
"changes": {
"parameter-declarations-with-types.go": [
{
"span": {
"insert": {
"start": [
6,
10
],
"end": [
6,
15
]
}
},
"summary": "Added the 'a int' parameter declaration in the foo function"
},
{
"span": {
"replace": [
{
"start": [
6,
10
],
"end": [
6,
11
]
},
{
"start": [
6,
17
],
"end": [
6,
18
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'b' identifier in the foo function"
},
{
"span": {
"delete": {
"start": [
6,
20
],
"end": [
6,
28
]
}
},
"summary": "Deleted the 'y uint64' parameter declaration in the foo function"
}
]
},
"errors": {}
},
"filePaths": [
"parameter-declarations-with-types.go"
],
"patch": [
"diff --git a/parameter-declarations-with-types.go b/parameter-declarations-with-types.go",
"index fcb6a303..ed6bff2d 100644",
"--- a/parameter-declarations-with-types.go",
"+++ b/parameter-declarations-with-types.go",
"@@ -3,5 +3,5 @@ package main",
" func main() {",
" }",
" ",
"-func foo(x string, y uint64) {",
"+func foo(a int, b string) {",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "31def9170cabd38fe5f30be4751911e10abe4964..98386c034c992e7638defec009ee4600dced2505"
}
,{
"testCaseDescription": "go-parameter-declarations-with-types-delete-insert-test",
"expectedResult": {
"changes": {
"parameter-declarations-with-types.go": [
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the 'foo' function"
}
]
},
"errors": {}
},
"filePaths": [
"parameter-declarations-with-types.go"
],
"patch": [
"diff --git a/parameter-declarations-with-types.go b/parameter-declarations-with-types.go",
"index ed6bff2d..a92cefed 100644",
"--- a/parameter-declarations-with-types.go",
"+++ b/parameter-declarations-with-types.go",
"@@ -3,5 +3,4 @@ package main",
" func main() {",
" }",
" ",
"-func foo(a int, b string) {",
"-}",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "98386c034c992e7638defec009ee4600dced2505..112ba7ce5a90f5e9652583e4be6f61022f677522"
}
,{
"testCaseDescription": "go-parameter-declarations-with-types-teardown-test",
"expectedResult": {
"changes": {
"parameter-declarations-with-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"parameter-declarations-with-types.go"
],
"patch": [
"diff --git a/parameter-declarations-with-types.go b/parameter-declarations-with-types.go",
"index a92cefed..e69de29b 100644",
"--- a/parameter-declarations-with-types.go",
"+++ b/parameter-declarations-with-types.go",
"@@ -1,6 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-}",
"-",
"-"
],
"gitDir": "test/corpus/repos/go",
"shas": "112ba7ce5a90f5e9652583e4be6f61022f677522..084c915d8b993e13da207d668c798c4e3e6f3baa"
}]

View File

@ -1,406 +0,0 @@
[{
"testCaseDescription": "go-pointer-types-setup-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"patch": [
"diff --git a/pointer-types.go b/pointer-types.go",
"index e69de29b..79058077 100644",
"--- a/pointer-types.go",
"+++ b/pointer-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "a1c5e30a9f0396b299eca4b60affb5c0e1ba1e98..38caa16942d0a4ecb8e98061b6dd973729a8754d"
}
,{
"testCaseDescription": "go-pointer-types-insert-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
11
]
}
},
"summary": "Added the 'p1' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
8
]
}
},
"summary": "Added the 'p2' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"patch": [
"diff --git a/pointer-types.go b/pointer-types.go",
"index 79058077..98e7b8a9 100644",
"--- a/pointer-types.go",
"+++ b/pointer-types.go",
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
"+type (",
"+p1 *string",
"+p2 **p1",
"+)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "38caa16942d0a4ecb8e98061b6dd973729a8754d..785321c8694252386cb4203639d091b2476044c7"
}
,{
"testCaseDescription": "go-pointer-types-replacement-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
11
]
},
{
"start": [
5,
5
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the *int pointer type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 'p1' identifier with the 'p3' identifier in the *p3 pointer type of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"patch": [
"diff --git a/pointer-types.go b/pointer-types.go",
"index 98e7b8a9..36eb5ffb 100644",
"--- a/pointer-types.go",
"+++ b/pointer-types.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" type (",
"-p1 *string",
"-p2 **p1",
"+p1 *int",
"+p2 **p3",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "785321c8694252386cb4203639d091b2476044c7..d100c7776455e0c6822fe0de1ab0440ee491aa1a"
}
,{
"testCaseDescription": "go-pointer-types-delete-replacement-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
8
]
},
{
"start": [
5,
5
],
"end": [
5,
11
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the *string pointer type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 'p3' identifier with the 'p1' identifier in the *p1 pointer type of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"patch": [
"diff --git a/pointer-types.go b/pointer-types.go",
"index 36eb5ffb..98e7b8a9 100644",
"--- a/pointer-types.go",
"+++ b/pointer-types.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" type (",
"-p1 *int",
"-p2 **p3",
"+p1 *string",
"+p2 **p1",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "d100c7776455e0c6822fe0de1ab0440ee491aa1a..1c96162ce730ef41ab63d53e451b78417b26550d"
}
,{
"testCaseDescription": "go-pointer-types-delete-insert-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
11
]
}
},
"summary": "Deleted the 'p1' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
8
]
}
},
"summary": "Deleted the 'p2' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"patch": [
"diff --git a/pointer-types.go b/pointer-types.go",
"index 98e7b8a9..79058077 100644",
"--- a/pointer-types.go",
"+++ b/pointer-types.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-type (",
"-p1 *string",
"-p2 **p1",
"-)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "1c96162ce730ef41ab63d53e451b78417b26550d..ad649dd982f31edda625f2d3a6a36ebe14f1b656"
}
,{
"testCaseDescription": "go-pointer-types-teardown-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"patch": [
"diff --git a/pointer-types.go b/pointer-types.go",
"index 79058077..e69de29b 100644",
"--- a/pointer-types.go",
"+++ b/pointer-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "ad649dd982f31edda625f2d3a6a36ebe14f1b656..a85665c66f8582bcde0abe05f4203f3696378040"
}]

View File

@ -1,364 +0,0 @@
[{
"testCaseDescription": "go-qualified-types-setup-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"patch": [
"diff --git a/qualified-types.go b/qualified-types.go",
"index e69de29b..79058077 100644",
"--- a/qualified-types.go",
"+++ b/qualified-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "676a4c0466e117135c3df59c9af1dbe709f9d8f6..e8d71c1a8dfe4ff96f6d1c4216453cb1afd21bdc"
}
,{
"testCaseDescription": "go-qualified-types-insert-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
11
]
}
},
"summary": "Added the 'a' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"patch": [
"diff --git a/qualified-types.go b/qualified-types.go",
"index 79058077..e03cf221 100644",
"--- a/qualified-types.go",
"+++ b/qualified-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+type a b.c",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "e8d71c1a8dfe4ff96f6d1c4216453cb1afd21bdc..fd11ba471e110d42e74a96e0a2cd11446503ecc3"
}
,{
"testCaseDescription": "go-qualified-types-replacement-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
7
]
},
{
"start": [
4,
6
],
"end": [
4,
7
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the 'x' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
11
]
},
{
"start": [
4,
8
],
"end": [
4,
11
]
}
]
},
"summary": "Replaced the 'b.c' qualified identifier with the 'y.z' qualified identifier in the 'x' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"patch": [
"diff --git a/qualified-types.go b/qualified-types.go",
"index e03cf221..241e5267 100644",
"--- a/qualified-types.go",
"+++ b/qualified-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-type a b.c",
"+type x y.z",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "fd11ba471e110d42e74a96e0a2cd11446503ecc3..92bfcc4e2b8e3801215766007b7025e471ec4872"
}
,{
"testCaseDescription": "go-qualified-types-delete-replacement-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
7
]
},
{
"start": [
4,
6
],
"end": [
4,
7
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the 'a' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
11
]
},
{
"start": [
4,
8
],
"end": [
4,
11
]
}
]
},
"summary": "Replaced the 'y.z' qualified identifier with the 'b.c' qualified identifier in the 'a' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"patch": [
"diff --git a/qualified-types.go b/qualified-types.go",
"index 241e5267..e03cf221 100644",
"--- a/qualified-types.go",
"+++ b/qualified-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-type x y.z",
"+type a b.c",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "92bfcc4e2b8e3801215766007b7025e471ec4872..1905583e34b2196bf717834f81e4460d5084ee0b"
}
,{
"testCaseDescription": "go-qualified-types-delete-insert-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'a' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"patch": [
"diff --git a/qualified-types.go b/qualified-types.go",
"index e03cf221..79058077 100644",
"--- a/qualified-types.go",
"+++ b/qualified-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-type a b.c",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "1905583e34b2196bf717834f81e4460d5084ee0b..a3c65aa4032c38ed5600a9ead4823b8ad66a0f58"
}
,{
"testCaseDescription": "go-qualified-types-teardown-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"patch": [
"diff --git a/qualified-types.go b/qualified-types.go",
"index 79058077..e69de29b 100644",
"--- a/qualified-types.go",
"+++ b/qualified-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "a3c65aa4032c38ed5600a9ead4823b8ad66a0f58..dd275c4f09cc46a085621fe3f9d293f9e0c3427d"
}]

View File

@ -1,720 +0,0 @@
[{
"testCaseDescription": "go-rune-literals-setup-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index e69de29b..c9ecbf5e 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -0,0 +1,2 @@",
"+package main",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "b33ba59ecc38b2543059f17e99013c5f619a0295..6562a24e5a10c2dcddf50a6e030d21c62309eed4"
}
,{
"testCaseDescription": "go-rune-literals-insert-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"insert": {
"start": [
3,
3
],
"end": [
3,
10
]
}
},
"summary": "Added the 'a' var assignment"
},
{
"span": {
"insert": {
"start": [
4,
3
],
"end": [
4,
10
]
}
},
"summary": "Added the 'b' var assignment"
},
{
"span": {
"insert": {
"start": [
5,
3
],
"end": [
5,
10
]
}
},
"summary": "Added the 'c' var assignment"
},
{
"span": {
"insert": {
"start": [
6,
3
],
"end": [
6,
10
]
}
},
"summary": "Added the 'd' var assignment"
},
{
"span": {
"insert": {
"start": [
7,
3
],
"end": [
7,
10
]
}
},
"summary": "Added the 'e' var assignment"
},
{
"span": {
"insert": {
"start": [
8,
3
],
"end": [
8,
10
]
}
},
"summary": "Added the 'f' var assignment"
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index c9ecbf5e..e97de4c1 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,2 +1,9 @@",
" package main",
"-",
"+const (",
"+ a = 'δ'",
"+ b = '⌘'",
"+ c = '⌘'",
"+ d = '⌘'",
"+ e = '⌘'",
"+ f = '⌘'",
"+)"
],
"gitDir": "test/corpus/repos/go",
"shas": "6562a24e5a10c2dcddf50a6e030d21c62309eed4..4170bf9052b2ada9be6045f32867d440c3bc1452"
}
,{
"testCaseDescription": "go-rune-literals-replacement-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"replace": [
{
"start": [
3,
7
],
"end": [
3,
10
]
},
{
"start": [
3,
7
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced the ''δ'' rune literal with the ''©'' rune literal in the a var assignment"
},
{
"span": {
"replace": [
{
"start": [
4,
7
],
"end": [
4,
10
]
},
{
"start": [
4,
7
],
"end": [
4,
10
]
}
]
},
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the b var assignment"
},
{
"span": {
"replace": [
{
"start": [
5,
7
],
"end": [
5,
10
]
},
{
"start": [
5,
7
],
"end": [
5,
10
]
}
]
},
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the c var assignment"
},
{
"span": {
"replace": [
{
"start": [
6,
7
],
"end": [
6,
10
]
},
{
"start": [
6,
7
],
"end": [
6,
10
]
}
]
},
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the d var assignment"
},
{
"span": {
"replace": [
{
"start": [
7,
7
],
"end": [
7,
10
]
},
{
"start": [
7,
7
],
"end": [
7,
10
]
}
]
},
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the e var assignment"
},
{
"span": {
"replace": [
{
"start": [
8,
7
],
"end": [
8,
10
]
},
{
"start": [
8,
7
],
"end": [
8,
10
]
}
]
},
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the f var assignment"
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index e97de4c1..346d5d96 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,9 +1,9 @@",
" package main",
" const (",
"- a = 'δ'",
"- b = '⌘'",
"- c = '⌘'",
"- d = '⌘'",
"- e = '⌘'",
"- f = '⌘'",
"+ a = '©'",
"+ b = '©'",
"+ c = '©'",
"+ d = '©'",
"+ e = '©'",
"+ f = '©'",
" )"
],
"gitDir": "test/corpus/repos/go",
"shas": "4170bf9052b2ada9be6045f32867d440c3bc1452..d1fff006ee9383445d9d45ca3790f2c62d415295"
}
,{
"testCaseDescription": "go-rune-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"replace": [
{
"start": [
3,
7
],
"end": [
3,
10
]
},
{
"start": [
3,
7
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced the ''©'' rune literal with the ''δ'' rune literal in the a var assignment"
},
{
"span": {
"replace": [
{
"start": [
4,
7
],
"end": [
4,
10
]
},
{
"start": [
4,
7
],
"end": [
4,
10
]
}
]
},
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the b var assignment"
},
{
"span": {
"replace": [
{
"start": [
5,
7
],
"end": [
5,
10
]
},
{
"start": [
5,
7
],
"end": [
5,
10
]
}
]
},
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the c var assignment"
},
{
"span": {
"replace": [
{
"start": [
6,
7
],
"end": [
6,
10
]
},
{
"start": [
6,
7
],
"end": [
6,
10
]
}
]
},
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the d var assignment"
},
{
"span": {
"replace": [
{
"start": [
7,
7
],
"end": [
7,
10
]
},
{
"start": [
7,
7
],
"end": [
7,
10
]
}
]
},
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the e var assignment"
},
{
"span": {
"replace": [
{
"start": [
8,
7
],
"end": [
8,
10
]
},
{
"start": [
8,
7
],
"end": [
8,
10
]
}
]
},
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the f var assignment"
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index 346d5d96..e97de4c1 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,9 +1,9 @@",
" package main",
" const (",
"- a = '©'",
"- b = '©'",
"- c = '©'",
"- d = '©'",
"- e = '©'",
"- f = '©'",
"+ a = 'δ'",
"+ b = '⌘'",
"+ c = '⌘'",
"+ d = '⌘'",
"+ e = '⌘'",
"+ f = '⌘'",
" )"
],
"gitDir": "test/corpus/repos/go",
"shas": "d1fff006ee9383445d9d45ca3790f2c62d415295..3317c28671471c9a8a940ca59f1a929b77da6851"
}
,{
"testCaseDescription": "go-rune-literals-delete-insert-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
3,
3
],
"end": [
3,
10
]
}
},
"summary": "Deleted the 'a' var assignment"
},
{
"span": {
"delete": {
"start": [
4,
3
],
"end": [
4,
10
]
}
},
"summary": "Deleted the 'b' var assignment"
},
{
"span": {
"delete": {
"start": [
5,
3
],
"end": [
5,
10
]
}
},
"summary": "Deleted the 'c' var assignment"
},
{
"span": {
"delete": {
"start": [
6,
3
],
"end": [
6,
10
]
}
},
"summary": "Deleted the 'd' var assignment"
},
{
"span": {
"delete": {
"start": [
7,
3
],
"end": [
7,
10
]
}
},
"summary": "Deleted the 'e' var assignment"
},
{
"span": {
"delete": {
"start": [
8,
3
],
"end": [
8,
10
]
}
},
"summary": "Deleted the 'f' var assignment"
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index e97de4c1..c9ecbf5e 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,9 +1,2 @@",
" package main",
"-const (",
"- a = 'δ'",
"- b = '⌘'",
"- c = '⌘'",
"- d = '⌘'",
"- e = '⌘'",
"- f = '⌘'",
"-)",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "3317c28671471c9a8a940ca59f1a929b77da6851..66e9950fcf1ad093302ce35b8541e08c4c9ca808"
}
,{
"testCaseDescription": "go-rune-literals-teardown-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"rune-literals.go"
],
"patch": [
"diff --git a/rune-literals.go b/rune-literals.go",
"index c9ecbf5e..e69de29b 100644",
"--- a/rune-literals.go",
"+++ b/rune-literals.go",
"@@ -1,2 +0,0 @@",
"-package main",
"-"
],
"gitDir": "test/corpus/repos/go",
"shas": "66e9950fcf1ad093302ce35b8541e08c4c9ca808..d16e448af6bd6f785de25d685b7bceabce571049"
}]

View File

@ -1,452 +0,0 @@
[{
"testCaseDescription": "go-select-statements-setup-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index e69de29b..79058077 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "4966b945ba5393d1f1e64efadf0af83c41425f11..b490190f8902330d676348583217eee062b8bb76"
}
,{
"testCaseDescription": "go-select-statements-insert-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
13,
2
]
}
},
"summary": "Added a select statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index 79058077..6806fa67 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -1,5 +1,14 @@",
" package main",
" ",
" func main() {",
"-",
"+select {",
"+ case x := <-c:",
"+ println(x)",
"+ case y <- c:",
"+ println(5)",
"+ case <-time.After(1):",
"+ println(6)",
"+ default:",
"+ return",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "b490190f8902330d676348583217eee062b8bb76..f981714e374e7edd602f4b2e423d2d3651534f65"
}
,{
"testCaseDescription": "go-select-statements-replacement-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"replace": [
{
"start": [
5,
8
],
"end": [
5,
9
]
},
{
"start": [
5,
8
],
"end": [
5,
9
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
7,
8
],
"end": [
7,
9
]
},
{
"start": [
7,
8
],
"end": [
7,
9
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
9,
21
],
"end": [
9,
22
]
},
{
"start": [
9,
21
],
"end": [
9,
22
]
}
]
},
"summary": "Replaced '1' with '2' in the time[After](2) function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index 6806fa67..1ca26fb9 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -2,11 +2,11 @@ package main",
" ",
" func main() {",
" select {",
"- case x := <-c:",
"+ case a := <-c:",
" println(x)",
"- case y <- c:",
"+ case b <- c:",
" println(5)",
"- case <-time.After(1):",
"+ case <-time.After(2):",
" println(6)",
" default:",
" return"
],
"gitDir": "test/corpus/repos/go",
"shas": "f981714e374e7edd602f4b2e423d2d3651534f65..3b29e2cdce6c5e5e3c3c1e88104fd7593eeada08"
}
,{
"testCaseDescription": "go-select-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"replace": [
{
"start": [
5,
8
],
"end": [
5,
9
]
},
{
"start": [
5,
8
],
"end": [
5,
9
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
7,
8
],
"end": [
7,
9
]
},
{
"start": [
7,
8
],
"end": [
7,
9
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
9,
21
],
"end": [
9,
22
]
},
{
"start": [
9,
21
],
"end": [
9,
22
]
}
]
},
"summary": "Replaced '2' with '1' in the time[After](1) function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index 1ca26fb9..6806fa67 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -2,11 +2,11 @@ package main",
" ",
" func main() {",
" select {",
"- case a := <-c:",
"+ case x := <-c:",
" println(x)",
"- case b <- c:",
"+ case y <- c:",
" println(5)",
"- case <-time.After(2):",
"+ case <-time.After(1):",
" println(6)",
" default:",
" return"
],
"gitDir": "test/corpus/repos/go",
"shas": "3b29e2cdce6c5e5e3c3c1e88104fd7593eeada08..0958411ec5eb18df1fb4d5897509d0d5476e4151"
}
,{
"testCaseDescription": "go-select-statements-delete-insert-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
13,
2
]
}
},
"summary": "Deleted a select statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index 6806fa67..79058077 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -1,14 +1,5 @@",
" package main",
" ",
" func main() {",
"-select {",
"- case x := <-c:",
"- println(x)",
"- case y <- c:",
"- println(5)",
"- case <-time.After(1):",
"- println(6)",
"- default:",
"- return",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "0958411ec5eb18df1fb4d5897509d0d5476e4151..f5e07ec87b0833ce3f9549a3e91e013115c7327d"
}
,{
"testCaseDescription": "go-select-statements-teardown-test",
"expectedResult": {
"changes": {
"select-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"select-statements.go"
],
"patch": [
"diff --git a/select-statements.go b/select-statements.go",
"index 79058077..e69de29b 100644",
"--- a/select-statements.go",
"+++ b/select-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "f5e07ec87b0833ce3f9549a3e91e013115c7327d..3ae31b84db1d8419897111182e8fdc9cad60fbbc"
}]

View File

@ -1,418 +0,0 @@
[{
"testCaseDescription": "go-selector-expressions-setup-test",
"expectedResult": {
"changes": {
"selector-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"selector-expressions.go"
],
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index e69de29b..79058077 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "39da12378f56efc6f5a7d91aa4cfd6dd9b410d0d..fd9b31c4cd54e4c44d98269cce2faff0c3da907b"
}
,{
"testCaseDescription": "go-selector-expressions-insert-test",
"expectedResult": {
"changes": {
"selector-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
8
]
}
},
"summary": "Added the 'a[b][c]()' function call in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"selector-expressions.go"
],
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index 79058077..8b4c745e 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+a.b.c()",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "fd9b31c4cd54e4c44d98269cce2faff0c3da907b..cb44fc99de5de15b963742ff38de9b05f6cf5759"
}
,{
"testCaseDescription": "go-selector-expressions-replacement-test",
"expectedResult": {
"changes": {
"selector-expressions.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the x[y] subscript access of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
3
],
"end": [
4,
4
]
},
{
"start": [
4,
3
],
"end": [
4,
4
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the x[y] subscript access of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
6
]
},
{
"start": [
4,
5
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'z' identifier in the x[y][z] subscript access of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"selector-expressions.go"
],
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index 8b4c745e..0e519e3e 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-a.b.c()",
"+x.y.z()",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "cb44fc99de5de15b963742ff38de9b05f6cf5759..d34c5acd304d3d054b62cdcd2e32e4e2e1535dcd"
}
,{
"testCaseDescription": "go-selector-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"selector-expressions.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the a[b] subscript access of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
3
],
"end": [
4,
4
]
},
{
"start": [
4,
3
],
"end": [
4,
4
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the a[b] subscript access of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
6
]
},
{
"start": [
4,
5
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'c' identifier in the a[b][c] subscript access of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"selector-expressions.go"
],
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index 0e519e3e..8b4c745e 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-x.y.z()",
"+a.b.c()",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "d34c5acd304d3d054b62cdcd2e32e4e2e1535dcd..683e206087e8d3c5235e9521999ee08b7c069913"
}
,{
"testCaseDescription": "go-selector-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"selector-expressions.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
8
]
}
},
"summary": "Deleted the 'a[b][c]()' function call in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"selector-expressions.go"
],
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index 8b4c745e..79058077 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-a.b.c()",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "683e206087e8d3c5235e9521999ee08b7c069913..f2164e8ee879b26e7c0ac1b5ffa21fccf8a9bbac"
}
,{
"testCaseDescription": "go-selector-expressions-teardown-test",
"expectedResult": {
"changes": {
"selector-expressions.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"selector-expressions.go"
],
"patch": [
"diff --git a/selector-expressions.go b/selector-expressions.go",
"index 79058077..e69de29b 100644",
"--- a/selector-expressions.go",
"+++ b/selector-expressions.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "f2164e8ee879b26e7c0ac1b5ffa21fccf8a9bbac..da87539e91454e018a1ba3c704f8fceb37fc9f2b"
}]

View File

@ -1,364 +0,0 @@
[{
"testCaseDescription": "go-send-statements-setup-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"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": "bd83133c1e3a033c4f1414f48bd415a48fca1973..e74984740c82a22d0ca71bfc69aacabbb4428c66"
}
,{
"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"
}
]
},
"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": "e74984740c82a22d0ca71bfc69aacabbb4428c66..41889c162f171b5861141abf350934bc372e48bc"
}
,{
"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"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
9
]
},
{
"start": [
4,
8
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced '5' with '6' in the main function"
}
]
},
"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": "41889c162f171b5861141abf350934bc372e48bc..1765e31ee6e69075b5ffd7e96212ca465ad10699"
}
,{
"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"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
9
]
},
{
"start": [
4,
8
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced '6' with '5' in the main function"
}
]
},
"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": "1765e31ee6e69075b5ffd7e96212ca465ad10699..082482dfb2533204de96eb1e9331a85e576dd14c"
}
,{
"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"
}
]
},
"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": "082482dfb2533204de96eb1e9331a85e576dd14c..5d09d4703ac53030caa3504aff8ebc9e5d63f795"
}
,{
"testCaseDescription": "go-send-statements-teardown-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"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": "5d09d4703ac53030caa3504aff8ebc9e5d63f795..759bcc1def9029c1f75c6355dc3d149aad453526"
}]

View File

@ -1,562 +0,0 @@
[{
"testCaseDescription": "go-short-var-declarations-setup-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"patch": [
"diff --git a/short-var-declarations.go b/short-var-declarations.go",
"index e69de29b..79058077 100644",
"--- a/short-var-declarations.go",
"+++ b/short-var-declarations.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "1f7119ceb53f8159ac2330bdb3c78e76a19a5ed0..a2e7c4375e7fc045b6a99635256eabab7fa6b622"
}
,{
"testCaseDescription": "go-short-var-declarations-insert-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'a' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Added the 'b' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Added '1' in the main function"
},
{
"span": {
"insert": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Added '2' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"patch": [
"diff --git a/short-var-declarations.go b/short-var-declarations.go",
"index 79058077..4ca1ce37 100644",
"--- a/short-var-declarations.go",
"+++ b/short-var-declarations.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+a, b := 1, 2",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "a2e7c4375e7fc045b6a99635256eabab7fa6b622..b139d1556c66800c51df4d0dbd144853e2ca4b7d"
}
,{
"testCaseDescription": "go-short-var-declarations-replacement-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
5
]
},
{
"start": [
4,
4
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
9
],
"end": [
4,
10
]
},
{
"start": [
4,
9
],
"end": [
4,
10
]
}
]
},
"summary": "Replaced '1' with '3' in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
12
],
"end": [
4,
13
]
},
{
"start": [
4,
12
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced '2' with '4' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"patch": [
"diff --git a/short-var-declarations.go b/short-var-declarations.go",
"index 4ca1ce37..bbbf9372 100644",
"--- a/short-var-declarations.go",
"+++ b/short-var-declarations.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-a, b := 1, 2",
"+x, y := 3, 4",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "b139d1556c66800c51df4d0dbd144853e2ca4b7d..7c16d07d891846d3d1ba2f4af66d03e7562261ad"
}
,{
"testCaseDescription": "go-short-var-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
5
]
},
{
"start": [
4,
4
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
9
],
"end": [
4,
10
]
},
{
"start": [
4,
9
],
"end": [
4,
10
]
}
]
},
"summary": "Replaced '3' with '1' in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
12
],
"end": [
4,
13
]
},
{
"start": [
4,
12
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced '4' with '2' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"patch": [
"diff --git a/short-var-declarations.go b/short-var-declarations.go",
"index bbbf9372..4ca1ce37 100644",
"--- a/short-var-declarations.go",
"+++ b/short-var-declarations.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-x, y := 3, 4",
"+a, b := 1, 2",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "7c16d07d891846d3d1ba2f4af66d03e7562261ad..6bdb4bee2e8545c02ec5e1ee43b8db9d9bbe3bcd"
}
,{
"testCaseDescription": "go-short-var-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'a' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Deleted the 'b' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Deleted '1' in the main function"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Deleted '2' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"patch": [
"diff --git a/short-var-declarations.go b/short-var-declarations.go",
"index 4ca1ce37..79058077 100644",
"--- a/short-var-declarations.go",
"+++ b/short-var-declarations.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-a, b := 1, 2",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "6bdb4bee2e8545c02ec5e1ee43b8db9d9bbe3bcd..dc4bbc0a8f7d2a0ab806dd181cc75f881d14d9fd"
}
,{
"testCaseDescription": "go-short-var-declarations-teardown-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"patch": [
"diff --git a/short-var-declarations.go b/short-var-declarations.go",
"index 79058077..e69de29b 100644",
"--- a/short-var-declarations.go",
"+++ b/short-var-declarations.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "dc4bbc0a8f7d2a0ab806dd181cc75f881d14d9fd..373c46bee0b8179cf5d2f00412173597e503cdd3"
}]

View File

@ -1,586 +0,0 @@
[{
"testCaseDescription": "go-single-import-declarations-setup-test",
"expectedResult": {
"changes": {
"single-import-declarations.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"single-import-declarations.go"
],
"patch": [
"diff --git a/single-import-declarations.go b/single-import-declarations.go",
"index e69de29b..79058077 100644",
"--- a/single-import-declarations.go",
"+++ b/single-import-declarations.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "e99d953fe89c051fc6ddd94acdb17fbbe4fd60ff..64b452d739eb84b670362434274cbd98792eb957"
}
,{
"testCaseDescription": "go-single-import-declarations-insert-test",
"expectedResult": {
"changes": {
"single-import-declarations.go": [
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
4,
18
]
}
},
"summary": "Added the \"net/http\" string in the main function"
},
{
"span": {
"insert": {
"start": [
5,
10
],
"end": [
5,
20
]
}
},
"summary": "Added the \"some/dsl\" string in the main function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
7
]
}
},
"summary": "Added the 'import' identifier in the main function"
}
]
},
"errors": {
"single-import-declarations.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
7
]
}
},
"summary": "Added 'import' at line 4, column 1 - line 4, column 7 in the main function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Added 'import .' at line 5, column 1 - line 5, column 9 in the main function"
},
{
"span": {
"insert": {
"start": [
6,
8
],
"end": [
6,
28
]
}
},
"summary": "Added 'alias \"some/package\"' at line 6, column 8 - line 6, column 28 in the main function"
}
]
}
},
"filePaths": [
"single-import-declarations.go"
],
"patch": [
"diff --git a/single-import-declarations.go b/single-import-declarations.go",
"index 79058077..bf7f515f 100644",
"--- a/single-import-declarations.go",
"+++ b/single-import-declarations.go",
"@@ -1,5 +1,7 @@",
" package main",
" ",
" func main() {",
"-",
"+import \"net/http\"",
"+import . \"some/dsl\"",
"+import alias \"some/package\"",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "64b452d739eb84b670362434274cbd98792eb957..9ece1e7c2f5678dc31fd153ac454222d929f4143"
}
,{
"testCaseDescription": "go-single-import-declarations-replacement-test",
"expectedResult": {
"changes": {
"single-import-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
18
]
},
{
"start": [
4,
8
],
"end": [
4,
17
]
}
]
},
"summary": "Replaced the \"net/http\" string with the \"foo/bar\" string in the main function"
},
{
"span": {
"replace": [
{
"start": [
5,
10
],
"end": [
5,
20
]
},
{
"start": [
5,
10
],
"end": [
5,
21
]
}
]
},
"summary": "Replaced the \"some/dsl\" string with the \"types/dsl\" string in the main function"
},
{
"span": {
"replace": [
{
"start": [
6,
14
],
"end": [
6,
28
]
},
{
"start": [
6,
14
],
"end": [
6,
32
]
}
]
},
"summary": "Replaced the \"some/package\" string with the \"awesome/packages\" string in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"single-import-declarations.go"
],
"patch": [
"diff --git a/single-import-declarations.go b/single-import-declarations.go",
"index bf7f515f..7710f5e3 100644",
"--- a/single-import-declarations.go",
"+++ b/single-import-declarations.go",
"@@ -1,7 +1,7 @@",
" package main",
" ",
" func main() {",
"-import \"net/http\"",
"-import . \"some/dsl\"",
"-import alias \"some/package\"",
"+import \"foo/bar\"",
"+import . \"types/dsl\"",
"+import alias \"awesome/packages\"",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "9ece1e7c2f5678dc31fd153ac454222d929f4143..1b550d979eeb4488916a19aeb6486b8d97dddde5"
}
,{
"testCaseDescription": "go-single-import-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"single-import-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
17
]
},
{
"start": [
4,
8
],
"end": [
4,
18
]
}
]
},
"summary": "Replaced the \"foo/bar\" string with the \"net/http\" string in the main function"
},
{
"span": {
"replace": [
{
"start": [
5,
10
],
"end": [
5,
21
]
},
{
"start": [
5,
10
],
"end": [
5,
20
]
}
]
},
"summary": "Replaced the \"types/dsl\" string with the \"some/dsl\" string in the main function"
},
{
"span": {
"replace": [
{
"start": [
6,
14
],
"end": [
6,
32
]
},
{
"start": [
6,
14
],
"end": [
6,
28
]
}
]
},
"summary": "Replaced the \"awesome/packages\" string with the \"some/package\" string in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"single-import-declarations.go"
],
"patch": [
"diff --git a/single-import-declarations.go b/single-import-declarations.go",
"index 7710f5e3..bf7f515f 100644",
"--- a/single-import-declarations.go",
"+++ b/single-import-declarations.go",
"@@ -1,7 +1,7 @@",
" package main",
" ",
" func main() {",
"-import \"foo/bar\"",
"-import . \"types/dsl\"",
"-import alias \"awesome/packages\"",
"+import \"net/http\"",
"+import . \"some/dsl\"",
"+import alias \"some/package\"",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "1b550d979eeb4488916a19aeb6486b8d97dddde5..6ee950fe0e956a5453217e29f28a88f657835a5c"
}
,{
"testCaseDescription": "go-single-import-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"single-import-declarations.go": [
{
"span": {
"delete": {
"start": [
4,
8
],
"end": [
4,
18
]
}
},
"summary": "Deleted the \"net/http\" string in the main function"
},
{
"span": {
"delete": {
"start": [
5,
10
],
"end": [
5,
20
]
}
},
"summary": "Deleted the \"some/dsl\" string in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
7
]
}
},
"summary": "Deleted the 'import' identifier in the main function"
}
]
},
"errors": {
"single-import-declarations.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
7
]
}
},
"summary": "Deleted 'import' at line 4, column 1 - line 4, column 7 in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted 'import .' at line 5, column 1 - line 5, column 9 in the main function"
},
{
"span": {
"delete": {
"start": [
6,
8
],
"end": [
6,
28
]
}
},
"summary": "Deleted 'alias \"some/package\"' at line 6, column 8 - line 6, column 28 in the main function"
}
]
}
},
"filePaths": [
"single-import-declarations.go"
],
"patch": [
"diff --git a/single-import-declarations.go b/single-import-declarations.go",
"index bf7f515f..79058077 100644",
"--- a/single-import-declarations.go",
"+++ b/single-import-declarations.go",
"@@ -1,7 +1,5 @@",
" package main",
" ",
" func main() {",
"-import \"net/http\"",
"-import . \"some/dsl\"",
"-import alias \"some/package\"",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "6ee950fe0e956a5453217e29f28a88f657835a5c..219e74492fbc41999128954070a9907d4eae5d8c"
}
,{
"testCaseDescription": "go-single-import-declarations-teardown-test",
"expectedResult": {
"changes": {
"single-import-declarations.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"single-import-declarations.go"
],
"patch": [
"diff --git a/single-import-declarations.go b/single-import-declarations.go",
"index 79058077..e69de29b 100644",
"--- a/single-import-declarations.go",
"+++ b/single-import-declarations.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "219e74492fbc41999128954070a9907d4eae5d8c..12035f69827bc37748c981b2b49d8642aaa48689"
}]

View File

@ -1,490 +0,0 @@
[{
"testCaseDescription": "go-single-line-function-declarations-setup-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index e69de29b..9d7dcf23 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -0,0 +1,7 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}",
"+",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "a2dfb03fc1f7dc5419ac9aa570a15071f5eeeeea..225fddd3d11be429342a0d4e7c9abb54b42a8c32"
}
,{
"testCaseDescription": "go-single-line-function-declarations-insert-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
18
]
}
},
"summary": "Added the 'f1' function"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
23
]
}
},
"summary": "Added the 'f2' function"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
24
]
}
},
"summary": "Added the 'f3' function"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index 9d7dcf23..23973728 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -4,4 +4,6 @@ func main() {",
" ",
" }",
" ",
"-",
"+func f1() { a() }",
"+func f2() { a(); b() }",
"+func f3() { a(); b(); }"
],
"gitDir": "test/corpus/repos/go",
"shas": "225fddd3d11be429342a0d4e7c9abb54b42a8c32..1d7c3c92138adb7630b33ba6a33d71ad86d32c51"
}
,{
"testCaseDescription": "go-single-line-function-declarations-replacement-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
7,
6
],
"end": [
7,
8
]
},
{
"start": [
7,
6
],
"end": [
7,
8
]
}
]
},
"summary": "Replaced the 'f1' identifier with the 'g1' identifier in the g1 function"
},
{
"span": {
"replace": [
{
"start": [
8,
6
],
"end": [
8,
8
]
},
{
"start": [
8,
6
],
"end": [
8,
8
]
}
]
},
"summary": "Replaced the 'f2' identifier with the 'g2' identifier in the g2 function"
},
{
"span": {
"replace": [
{
"start": [
9,
6
],
"end": [
9,
8
]
},
{
"start": [
9,
6
],
"end": [
9,
8
]
}
]
},
"summary": "Replaced the 'f3' identifier with the 'g3' identifier in the g3 function"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index 23973728..d075492b 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -4,6 +4,6 @@ func main() {",
" ",
" }",
" ",
"-func f1() { a() }",
"-func f2() { a(); b() }",
"-func f3() { a(); b(); }",
"+func g1() { a() }",
"+func g2() { a(); b() }",
"+func g3() { a(); b(); }"
],
"gitDir": "test/corpus/repos/go",
"shas": "1d7c3c92138adb7630b33ba6a33d71ad86d32c51..5493986986093afdce7620f83e5e2182f270aa4a"
}
,{
"testCaseDescription": "go-single-line-function-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
7,
6
],
"end": [
7,
8
]
},
{
"start": [
7,
6
],
"end": [
7,
8
]
}
]
},
"summary": "Replaced the 'g1' identifier with the 'f1' identifier in the f1 function"
},
{
"span": {
"replace": [
{
"start": [
8,
6
],
"end": [
8,
8
]
},
{
"start": [
8,
6
],
"end": [
8,
8
]
}
]
},
"summary": "Replaced the 'g2' identifier with the 'f2' identifier in the f2 function"
},
{
"span": {
"replace": [
{
"start": [
9,
6
],
"end": [
9,
8
]
},
{
"start": [
9,
6
],
"end": [
9,
8
]
}
]
},
"summary": "Replaced the 'g3' identifier with the 'f3' identifier in the f3 function"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index d075492b..23973728 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -4,6 +4,6 @@ func main() {",
" ",
" }",
" ",
"-func g1() { a() }",
"-func g2() { a(); b() }",
"-func g3() { a(); b(); }",
"+func f1() { a() }",
"+func f2() { a(); b() }",
"+func f3() { a(); b(); }"
],
"gitDir": "test/corpus/repos/go",
"shas": "5493986986093afdce7620f83e5e2182f270aa4a..a802ffab66887909c08e59655bdec11282ce864d"
}
,{
"testCaseDescription": "go-single-line-function-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
18
]
}
},
"summary": "Deleted the 'f1' function"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
23
]
}
},
"summary": "Deleted the 'f2' function"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
24
]
}
},
"summary": "Deleted the 'f3' function"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index 23973728..9d7dcf23 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -4,6 +4,4 @@ func main() {",
" ",
" }",
" ",
"-func f1() { a() }",
"-func f2() { a(); b() }",
"-func f3() { a(); b(); }",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "a802ffab66887909c08e59655bdec11282ce864d..17f4c946d0e3b2964d88a98346928973d40ebab0"
}
,{
"testCaseDescription": "go-single-line-function-declarations-teardown-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"patch": [
"diff --git a/single-line-function-declarations.go b/single-line-function-declarations.go",
"index 9d7dcf23..e69de29b 100644",
"--- a/single-line-function-declarations.go",
"+++ b/single-line-function-declarations.go",
"@@ -1,7 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}",
"-",
"-"
],
"gitDir": "test/corpus/repos/go",
"shas": "17f4c946d0e3b2964d88a98346928973d40ebab0..ba5ad24cc5920db43a2b1942f11e4737fe450953"
}]

View File

@ -1,558 +0,0 @@
[{
"testCaseDescription": "go-slice-literals-setup-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"patch": [
"diff --git a/slice-literals.go b/slice-literals.go",
"index e69de29b..79058077 100644",
"--- a/slice-literals.go",
"+++ b/slice-literals.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "287aea0892f667dc55ebc7ed257b311e9b4af708..cb75e26422058cecf4da56dc4f42c1689800851b"
}
,{
"testCaseDescription": "go-slice-literals-insert-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"insert": {
"start": [
4,
7
],
"end": [
4,
22
]
}
},
"summary": "Added the 's1' var assignment in the main function"
},
{
"span": {
"insert": {
"start": [
5,
7
],
"end": [
5,
26
]
}
},
"summary": "Added the 's2' var assignment in the main function"
},
{
"span": {
"insert": {
"start": [
6,
7
],
"end": [
9,
2
]
}
},
"summary": "Added the 's3' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"patch": [
"diff --git a/slice-literals.go b/slice-literals.go",
"index 79058077..3c94936e 100644",
"--- a/slice-literals.go",
"+++ b/slice-literals.go",
"@@ -1,5 +1,10 @@",
" package main",
" ",
" func main() {",
"-",
"+const s1 = []string{}",
"+const s2 = []string{\"hi\"}",
"+const s3 = []string{",
"+\"hi\",",
"+ \"hello\",",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "cb75e26422058cecf4da56dc4f42c1689800851b..4b05b850e884ceeb2303af9b6f82d4e8f1099ea9"
}
,{
"testCaseDescription": "go-slice-literals-replacement-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
20
],
"end": [
4,
22
]
},
{
"start": [
4,
21
],
"end": [
4,
26
]
}
]
},
"summary": "Replaced the '{}' literal with the \"sup\" string in the []string\"sup\" composite_literal of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
21
],
"end": [
5,
25
]
},
{
"start": [
5,
21
],
"end": [
5,
28
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"hello\" string in the []string\"hello\" composite_literal of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
1
],
"end": [
7,
5
]
},
{
"start": [
7,
1
],
"end": [
7,
6
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"bar\" string in the []string\"bar\", \"baz\" composite_literal of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
8,
2
],
"end": [
8,
9
]
},
{
"start": [
8,
2
],
"end": [
8,
7
]
}
]
},
"summary": "Replaced the \"hello\" string with the \"baz\" string in the []string\"bar\", \"baz\" composite_literal of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"patch": [
"diff --git a/slice-literals.go b/slice-literals.go",
"index 3c94936e..caefc004 100644",
"--- a/slice-literals.go",
"+++ b/slice-literals.go",
"@@ -1,10 +1,10 @@",
" package main",
" ",
" func main() {",
"-const s1 = []string{}",
"-const s2 = []string{\"hi\"}",
"+const s1 = []string{\"sup\"}",
"+const s2 = []string{\"hello\"}",
" const s3 = []string{",
"-\"hi\",",
"- \"hello\",",
"+\"bar\",",
"+ \"baz\",",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "4b05b850e884ceeb2303af9b6f82d4e8f1099ea9..61061e5be759a097f5d1545791ca59022b01bbc9"
}
,{
"testCaseDescription": "go-slice-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
21
],
"end": [
4,
26
]
},
{
"start": [
4,
20
],
"end": [
4,
22
]
}
]
},
"summary": "Replaced the \"sup\" string with the '{}' literal in the []string{} composite_literal of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
21
],
"end": [
5,
28
]
},
{
"start": [
5,
21
],
"end": [
5,
25
]
}
]
},
"summary": "Replaced the \"hello\" string with the \"hi\" string in the []string\"hi\" composite_literal of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
1
],
"end": [
7,
6
]
},
{
"start": [
7,
1
],
"end": [
7,
5
]
}
]
},
"summary": "Replaced the \"bar\" string with the \"hi\" string in the []string\"hi\", \"hello\" composite_literal of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
8,
2
],
"end": [
8,
7
]
},
{
"start": [
8,
2
],
"end": [
8,
9
]
}
]
},
"summary": "Replaced the \"baz\" string with the \"hello\" string in the []string\"hi\", \"hello\" composite_literal of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"patch": [
"diff --git a/slice-literals.go b/slice-literals.go",
"index caefc004..3c94936e 100644",
"--- a/slice-literals.go",
"+++ b/slice-literals.go",
"@@ -1,10 +1,10 @@",
" package main",
" ",
" func main() {",
"-const s1 = []string{\"sup\"}",
"-const s2 = []string{\"hello\"}",
"+const s1 = []string{}",
"+const s2 = []string{\"hi\"}",
" const s3 = []string{",
"-\"bar\",",
"- \"baz\",",
"+\"hi\",",
"+ \"hello\",",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "61061e5be759a097f5d1545791ca59022b01bbc9..76bb2f7baf2a225af4728bb745b4a482d1d56807"
}
,{
"testCaseDescription": "go-slice-literals-delete-insert-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"delete": {
"start": [
4,
7
],
"end": [
4,
22
]
}
},
"summary": "Deleted the 's1' var assignment in the main function"
},
{
"span": {
"delete": {
"start": [
5,
7
],
"end": [
5,
26
]
}
},
"summary": "Deleted the 's2' var assignment in the main function"
},
{
"span": {
"delete": {
"start": [
6,
7
],
"end": [
9,
2
]
}
},
"summary": "Deleted the 's3' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"patch": [
"diff --git a/slice-literals.go b/slice-literals.go",
"index 3c94936e..79058077 100644",
"--- a/slice-literals.go",
"+++ b/slice-literals.go",
"@@ -1,10 +1,5 @@",
" package main",
" ",
" func main() {",
"-const s1 = []string{}",
"-const s2 = []string{\"hi\"}",
"-const s3 = []string{",
"-\"hi\",",
"- \"hello\",",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "76bb2f7baf2a225af4728bb745b4a482d1d56807..17f7655ce5e4179807e1d7c1ba9a53e67d2ee9bd"
}
,{
"testCaseDescription": "go-slice-literals-teardown-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"patch": [
"diff --git a/slice-literals.go b/slice-literals.go",
"index 79058077..e69de29b 100644",
"--- a/slice-literals.go",
"+++ b/slice-literals.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "17f7655ce5e4179807e1d7c1ba9a53e67d2ee9bd..bcd4bf3659a22076c572c879141d7ef13cadf8ba"
}]

View File

@ -1,412 +0,0 @@
[{
"testCaseDescription": "go-slice-types-setup-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"patch": [
"diff --git a/slice-types.go b/slice-types.go",
"index e69de29b..79058077 100644",
"--- a/slice-types.go",
"+++ b/slice-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "9ff6020ed6d316a29f1c88377d7c240617263a9f..882254ed7b0cd722dfff46407510724c9f0b2c61"
}
,{
"testCaseDescription": "go-slice-types-insert-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
11
]
}
},
"summary": "Added the 'a' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
13
]
}
},
"summary": "Added the 'c' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"patch": [
"diff --git a/slice-types.go b/slice-types.go",
"index 79058077..4880791f 100644",
"--- a/slice-types.go",
"+++ b/slice-types.go",
"@@ -1,5 +1,6 @@",
" package main",
" ",
" func main() {",
"-",
"+type a []b",
"+type c [][]d",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "882254ed7b0cd722dfff46407510724c9f0b2c61..164404521e2aa4b521832bb7fe71c9cd035a5e8b"
}
,{
"testCaseDescription": "go-slice-types-replacement-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"insert": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Added the 'p' identifier in the 'a' type declaration of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'b' identifier in the 'a' type declaration of the 'main' function"
},
{
"span": {
"insert": {
"start": [
5,
10
],
"end": [
5,
11
]
}
},
"summary": "Added the 'y' identifier in the 'c' type declaration of the 'main' function"
},
{
"span": {
"delete": {
"start": [
5,
12
],
"end": [
5,
13
]
}
},
"summary": "Deleted the 'd' identifier in the 'c' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"patch": [
"diff --git a/slice-types.go b/slice-types.go",
"index 4880791f..b48b280a 100644",
"--- a/slice-types.go",
"+++ b/slice-types.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-type a []b",
"-type c [][]d",
"+type a [][]p",
"+type c []y",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "164404521e2aa4b521832bb7fe71c9cd035a5e8b..196296f9a4479d125a98799bb9cf01644ee3796f"
}
,{
"testCaseDescription": "go-slice-types-delete-replacement-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"insert": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Added the 'b' identifier in the 'a' type declaration of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Deleted the 'p' identifier in the 'a' type declaration of the 'main' function"
},
{
"span": {
"insert": {
"start": [
5,
12
],
"end": [
5,
13
]
}
},
"summary": "Added the 'd' identifier in the 'c' type declaration of the 'main' function"
},
{
"span": {
"delete": {
"start": [
5,
10
],
"end": [
5,
11
]
}
},
"summary": "Deleted the 'y' identifier in the 'c' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"patch": [
"diff --git a/slice-types.go b/slice-types.go",
"index b48b280a..4880791f 100644",
"--- a/slice-types.go",
"+++ b/slice-types.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-type a [][]p",
"-type c []y",
"+type a []b",
"+type c [][]d",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "196296f9a4479d125a98799bb9cf01644ee3796f..e9beaa9fd710512677d12b205f2be667af0869b5"
}
,{
"testCaseDescription": "go-slice-types-delete-insert-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'a' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
13
]
}
},
"summary": "Deleted the 'c' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"patch": [
"diff --git a/slice-types.go b/slice-types.go",
"index 4880791f..79058077 100644",
"--- a/slice-types.go",
"+++ b/slice-types.go",
"@@ -1,6 +1,5 @@",
" package main",
" ",
" func main() {",
"-type a []b",
"-type c [][]d",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "e9beaa9fd710512677d12b205f2be667af0869b5..48fe4f70691385cc7742257be3b10df76de66b87"
}
,{
"testCaseDescription": "go-slice-types-teardown-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"patch": [
"diff --git a/slice-types.go b/slice-types.go",
"index 79058077..e69de29b 100644",
"--- a/slice-types.go",
"+++ b/slice-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "48fe4f70691385cc7742257be3b10df76de66b87..5bfb56b9cae6ca1acf2adedeff9e9132c784d4fa"
}]

View File

@ -1,406 +0,0 @@
[{
"testCaseDescription": "go-string-literals-setup-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"patch": [
"diff --git a/string-literals.go b/string-literals.go",
"index e69de29b..79058077 100644",
"--- a/string-literals.go",
"+++ b/string-literals.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "eb189cbc2630347c2b2e4e69f5fb5f1cd5284c7d..98712aa02acde0f78ba193135f9b9e0f90a890f5"
}
,{
"testCaseDescription": "go-string-literals-insert-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
8
]
}
},
"summary": "Added the 'a' var assignment in the main function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
18
]
}
},
"summary": "Added the 'b' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"patch": [
"diff --git a/string-literals.go b/string-literals.go",
"index 79058077..9a69966c 100644",
"--- a/string-literals.go",
"+++ b/string-literals.go",
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
"+const (",
"+a = \"0\"",
"+b = \"hello world\"",
"+)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "98712aa02acde0f78ba193135f9b9e0f90a890f5..cf76340fd6ab133430d4e296f79a4188e4f134ed"
}
,{
"testCaseDescription": "go-string-literals-replacement-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
8
]
},
{
"start": [
5,
5
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the \"0\" string with the \"2\" string in the a var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
5
],
"end": [
6,
18
]
},
{
"start": [
6,
5
],
"end": [
6,
9
]
}
]
},
"summary": "Replaced the \"hello world\" string with the \"hi\" string in the b var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"patch": [
"diff --git a/string-literals.go b/string-literals.go",
"index 9a69966c..fbbdb93e 100644",
"--- a/string-literals.go",
"+++ b/string-literals.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" const (",
"-a = \"0\"",
"-b = \"hello world\"",
"+a = \"2\"",
"+b = \"hi\"",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "cf76340fd6ab133430d4e296f79a4188e4f134ed..9b4dbad3c63251f51aca5d0d2cd0b983787cf813"
}
,{
"testCaseDescription": "go-string-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
8
]
},
{
"start": [
5,
5
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the \"2\" string with the \"0\" string in the a var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
5
],
"end": [
6,
9
]
},
{
"start": [
6,
5
],
"end": [
6,
18
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"hello world\" string in the b var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"patch": [
"diff --git a/string-literals.go b/string-literals.go",
"index fbbdb93e..9a69966c 100644",
"--- a/string-literals.go",
"+++ b/string-literals.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" const (",
"-a = \"2\"",
"-b = \"hi\"",
"+a = \"0\"",
"+b = \"hello world\"",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "9b4dbad3c63251f51aca5d0d2cd0b983787cf813..0d7bc860e3463955df73fbe5aaf6f5b7f81dd101"
}
,{
"testCaseDescription": "go-string-literals-delete-insert-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'a' var assignment in the main function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
18
]
}
},
"summary": "Deleted the 'b' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"patch": [
"diff --git a/string-literals.go b/string-literals.go",
"index 9a69966c..79058077 100644",
"--- a/string-literals.go",
"+++ b/string-literals.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-const (",
"-a = \"0\"",
"-b = \"hello world\"",
"-)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "0d7bc860e3463955df73fbe5aaf6f5b7f81dd101..2afc59eda943429fd1f7e0dad6050887d184caf0"
}
,{
"testCaseDescription": "go-string-literals-teardown-test",
"expectedResult": {
"changes": {
"string-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"string-literals.go"
],
"patch": [
"diff --git a/string-literals.go b/string-literals.go",
"index 79058077..e69de29b 100644",
"--- a/string-literals.go",
"+++ b/string-literals.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "2afc59eda943429fd1f7e0dad6050887d184caf0..287aea0892f667dc55ebc7ed257b311e9b4af708"
}]

View File

@ -1,316 +0,0 @@
[{
"testCaseDescription": "go-struct-field-declarations-setup-test",
"expectedResult": {
"changes": {
"struct-field-declarations.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-field-declarations.go"
],
"patch": [
"diff --git a/struct-field-declarations.go b/struct-field-declarations.go",
"index e69de29b..60d13f45 100644",
"--- a/struct-field-declarations.go",
"+++ b/struct-field-declarations.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+ type s3 struct {} ",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "d42e8128993c8291af25742eee205e792ec356b4..aa9a6bac722c813f549ecef687567de30e818e77"
}
,{
"testCaseDescription": "go-struct-field-declarations-insert-test",
"expectedResult": {
"changes": {
"struct-field-declarations.go": [
{
"span": {
"insert": {
"start": [
5,
3
],
"end": [
5,
8
]
}
},
"summary": "Added the 'g int' field declaration in the struct {\n g int\n} struct type of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-field-declarations.go"
],
"patch": [
"diff --git a/struct-field-declarations.go b/struct-field-declarations.go",
"index 60d13f45..bc84b146 100644",
"--- a/struct-field-declarations.go",
"+++ b/struct-field-declarations.go",
"@@ -1,5 +1,7 @@",
" package main",
" ",
" func main() {",
"- type s3 struct {} ",
"+ type s3 struct {",
"+ g int",
"+} ",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "aa9a6bac722c813f549ecef687567de30e818e77..228e2feb3493eca39ac4291b2c14c5447412b1d6"
}
,{
"testCaseDescription": "go-struct-field-declarations-replacement-test",
"expectedResult": {
"changes": {
"struct-field-declarations.go": [
{
"span": {
"replace": [
{
"start": [
5,
3
],
"end": [
5,
8
]
},
{
"start": [
5,
3
],
"end": [
5,
4
]
}
]
},
"summary": "Replaced the 'g int' field declaration with the 'h' identifier in the struct {\n h, i int\n} struct type of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-field-declarations.go"
],
"patch": [
"diff --git a/struct-field-declarations.go b/struct-field-declarations.go",
"index bc84b146..f3ca9a51 100644",
"--- a/struct-field-declarations.go",
"+++ b/struct-field-declarations.go",
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
" type s3 struct {",
"- g int",
"+ h, i int",
" } ",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "228e2feb3493eca39ac4291b2c14c5447412b1d6..9d18bc2fb559b19afa3cee10781604781deba41b"
}
,{
"testCaseDescription": "go-struct-field-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"struct-field-declarations.go": [
{
"span": {
"replace": [
{
"start": [
5,
3
],
"end": [
5,
4
]
},
{
"start": [
5,
3
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'g int' field declaration in the struct {\n g int\n} struct type of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-field-declarations.go"
],
"patch": [
"diff --git a/struct-field-declarations.go b/struct-field-declarations.go",
"index f3ca9a51..bc84b146 100644",
"--- a/struct-field-declarations.go",
"+++ b/struct-field-declarations.go",
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
" type s3 struct {",
"- h, i int",
"+ g int",
" } ",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "9d18bc2fb559b19afa3cee10781604781deba41b..796b9996727b5a3c012b03ba0c5854237745daaa"
}
,{
"testCaseDescription": "go-struct-field-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"struct-field-declarations.go": [
{
"span": {
"delete": {
"start": [
5,
3
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'g int' field declaration in the struct {} struct type of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-field-declarations.go"
],
"patch": [
"diff --git a/struct-field-declarations.go b/struct-field-declarations.go",
"index bc84b146..60d13f45 100644",
"--- a/struct-field-declarations.go",
"+++ b/struct-field-declarations.go",
"@@ -1,7 +1,5 @@",
" package main",
" ",
" func main() {",
"- type s3 struct {",
"- g int",
"-} ",
"+ type s3 struct {} ",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "796b9996727b5a3c012b03ba0c5854237745daaa..e7b66389f2592cfa36c690d7c8a3762cdbf1dafb"
}
,{
"testCaseDescription": "go-struct-field-declarations-teardown-test",
"expectedResult": {
"changes": {
"struct-field-declarations.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-field-declarations.go"
],
"patch": [
"diff --git a/struct-field-declarations.go b/struct-field-declarations.go",
"index 60d13f45..e69de29b 100644",
"--- a/struct-field-declarations.go",
"+++ b/struct-field-declarations.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"- type s3 struct {} ",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "e7b66389f2592cfa36c690d7c8a3762cdbf1dafb..a1fc9648f91cfb841a93722bdf033369a8b2ec1c"
}]

View File

@ -1,610 +0,0 @@
[{
"testCaseDescription": "go-struct-literals-setup-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"patch": [
"diff --git a/struct-literals.go b/struct-literals.go",
"index e69de29b..79058077 100644",
"--- a/struct-literals.go",
"+++ b/struct-literals.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "6c6fe03e1ce4f7369c5cd528025e7e80a78cb2e3..98ca68a371b88e4f49719feef7f05c0ace8294d1"
}
,{
"testCaseDescription": "go-struct-literals-insert-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"insert": {
"start": [
4,
7
],
"end": [
7,
2
]
}
},
"summary": "Added the 's1' var assignment in the main function"
},
{
"span": {
"insert": {
"start": [
8,
7
],
"end": [
8,
32
]
}
},
"summary": "Added the 's2' var assignment in the main function"
},
{
"span": {
"insert": {
"start": [
9,
7
],
"end": [
9,
23
]
}
},
"summary": "Added the 's3' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"patch": [
"diff --git a/struct-literals.go b/struct-literals.go",
"index 79058077..e6fd4f15 100644",
"--- a/struct-literals.go",
"+++ b/struct-literals.go",
"@@ -1,5 +1,10 @@",
" package main",
" ",
" func main() {",
"-",
"+const s1 = Person{",
"+name: \"Frank\",",
"+Age: \"5 months\",",
"+}",
"+const s2 = struct{i int;}{i: 5}",
"+const s3 = time.Time{}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "98ca68a371b88e4f49719feef7f05c0ace8294d1..16546622d6d5c3abb229f1efd401797b70d45e78"
}
,{
"testCaseDescription": "go-struct-literals-replacement-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
12
],
"end": [
4,
18
]
},
{
"start": [
4,
12
],
"end": [
4,
15
]
}
]
},
"summary": "Replaced the 'Person' identifier with the 'Dog' identifier in the s1 var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
8,
21
],
"end": [
8,
24
]
},
{
"start": [
8,
21
],
"end": [
8,
26
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'float' identifier in the struct{i float;} struct type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
8,
27
],
"end": [
8,
28
]
},
{
"start": [
8,
29
],
"end": [
8,
30
]
}
]
},
"summary": "Replaced the 'i' identifier with the 'j' identifier in the j: 6 pair of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
8,
30
],
"end": [
8,
31
]
},
{
"start": [
8,
32
],
"end": [
8,
33
]
}
]
},
"summary": "Replaced '5' with '6' in the j: 6 pair of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
9,
12
],
"end": [
9,
21
]
},
{
"start": [
9,
12
],
"end": [
9,
22
]
}
]
},
"summary": "Replaced the 'time.Time' qualified identifier with the 'time.Month' qualified identifier in the s3 var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"patch": [
"diff --git a/struct-literals.go b/struct-literals.go",
"index e6fd4f15..06724a46 100644",
"--- a/struct-literals.go",
"+++ b/struct-literals.go",
"@@ -1,10 +1,10 @@",
" package main",
" ",
" func main() {",
"-const s1 = Person{",
"+const s1 = Dog{",
" name: \"Frank\",",
" Age: \"5 months\",",
" }",
"-const s2 = struct{i int;}{i: 5}",
"-const s3 = time.Time{}",
"+const s2 = struct{i float;}{j: 6}",
"+const s3 = time.Month{}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "16546622d6d5c3abb229f1efd401797b70d45e78..0cb9ec3d83dc736d63d0bd8d950df9a9d5817f54"
}
,{
"testCaseDescription": "go-struct-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"replace": [
{
"start": [
4,
12
],
"end": [
4,
15
]
},
{
"start": [
4,
12
],
"end": [
4,
18
]
}
]
},
"summary": "Replaced the 'Dog' identifier with the 'Person' identifier in the s1 var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
8,
21
],
"end": [
8,
26
]
},
{
"start": [
8,
21
],
"end": [
8,
24
]
}
]
},
"summary": "Replaced the 'float' identifier with the 'int' identifier in the struct{i int;} struct type of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
8,
29
],
"end": [
8,
30
]
},
{
"start": [
8,
27
],
"end": [
8,
28
]
}
]
},
"summary": "Replaced the 'j' identifier with the 'i' identifier in the i: 5 pair of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
8,
32
],
"end": [
8,
33
]
},
{
"start": [
8,
30
],
"end": [
8,
31
]
}
]
},
"summary": "Replaced '6' with '5' in the i: 5 pair of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
9,
12
],
"end": [
9,
22
]
},
{
"start": [
9,
12
],
"end": [
9,
21
]
}
]
},
"summary": "Replaced the 'time.Month' qualified identifier with the 'time.Time' qualified identifier in the s3 var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"patch": [
"diff --git a/struct-literals.go b/struct-literals.go",
"index 06724a46..e6fd4f15 100644",
"--- a/struct-literals.go",
"+++ b/struct-literals.go",
"@@ -1,10 +1,10 @@",
" package main",
" ",
" func main() {",
"-const s1 = Dog{",
"+const s1 = Person{",
" name: \"Frank\",",
" Age: \"5 months\",",
" }",
"-const s2 = struct{i float;}{j: 6}",
"-const s3 = time.Month{}",
"+const s2 = struct{i int;}{i: 5}",
"+const s3 = time.Time{}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "0cb9ec3d83dc736d63d0bd8d950df9a9d5817f54..ce0bf5c7a2ed66e66f174364a29682569e599a85"
}
,{
"testCaseDescription": "go-struct-literals-delete-insert-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"delete": {
"start": [
4,
7
],
"end": [
7,
2
]
}
},
"summary": "Deleted the 's1' var assignment in the main function"
},
{
"span": {
"delete": {
"start": [
8,
7
],
"end": [
8,
32
]
}
},
"summary": "Deleted the 's2' var assignment in the main function"
},
{
"span": {
"delete": {
"start": [
9,
7
],
"end": [
9,
23
]
}
},
"summary": "Deleted the 's3' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"patch": [
"diff --git a/struct-literals.go b/struct-literals.go",
"index e6fd4f15..79058077 100644",
"--- a/struct-literals.go",
"+++ b/struct-literals.go",
"@@ -1,10 +1,5 @@",
" package main",
" ",
" func main() {",
"-const s1 = Person{",
"-name: \"Frank\",",
"-Age: \"5 months\",",
"-}",
"-const s2 = struct{i int;}{i: 5}",
"-const s3 = time.Time{}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "ce0bf5c7a2ed66e66f174364a29682569e599a85..59ec940f0880a6faa2cd6c22817b321149d8edac"
}
,{
"testCaseDescription": "go-struct-literals-teardown-test",
"expectedResult": {
"changes": {
"struct-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-literals.go"
],
"patch": [
"diff --git a/struct-literals.go b/struct-literals.go",
"index 79058077..e69de29b 100644",
"--- a/struct-literals.go",
"+++ b/struct-literals.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "59ec940f0880a6faa2cd6c22817b321149d8edac..bd83133c1e3a033c4f1414f48bd415a48fca1973"
}]

View File

@ -1,598 +0,0 @@
[{
"testCaseDescription": "go-struct-types-setup-test",
"expectedResult": {
"changes": {
"struct-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-types.go"
],
"patch": [
"diff --git a/struct-types.go b/struct-types.go",
"index e69de29b..79058077 100644",
"--- a/struct-types.go",
"+++ b/struct-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "5bfb56b9cae6ca1acf2adedeff9e9132c784d4fa..a223c4c972b5b13a6ad55ba1ee6cfbf04f867f3c"
}
,{
"testCaseDescription": "go-struct-types-insert-test",
"expectedResult": {
"changes": {
"struct-types.go": [
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
18
]
}
},
"summary": "Added the 's1' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
26
]
}
},
"summary": "Added the 's2' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
8,
2
]
}
},
"summary": "Added the 's3' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
9,
6
],
"end": [
12,
2
]
}
},
"summary": "Added the 's4' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-types.go"
],
"patch": [
"diff --git a/struct-types.go b/struct-types.go",
"index 79058077..13c82f80 100644",
"--- a/struct-types.go",
"+++ b/struct-types.go",
"@@ -1,5 +1,13 @@",
" package main",
" ",
" func main() {",
"-",
"+type s1 struct {}",
"+type s2 struct { Person }",
"+type s3 struct {",
"+f, g int",
"+}",
"+type s4 struct {",
"+p.s1",
"+ h int `json:\"h\"`",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "a223c4c972b5b13a6ad55ba1ee6cfbf04f867f3c..39c8f71001980e9214f0e1e66dea313e46047512"
}
,{
"testCaseDescription": "go-struct-types-replacement-test",
"expectedResult": {
"changes": {
"struct-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
8
]
},
{
"start": [
4,
6
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 's1' identifier with the 't1' identifier in the 't1' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 's2' identifier with the 't2' identifier in the 't2' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 's3' identifier with the 't3' identifier in the 't3' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
9,
6
],
"end": [
9,
8
]
},
{
"start": [
9,
6
],
"end": [
9,
8
]
}
]
},
"summary": "Replaced the 's4' identifier with the 't4' identifier in the 't4' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-types.go"
],
"patch": [
"diff --git a/struct-types.go b/struct-types.go",
"index 13c82f80..d73e92a6 100644",
"--- a/struct-types.go",
"+++ b/struct-types.go",
"@@ -1,12 +1,12 @@",
" package main",
" ",
" func main() {",
"-type s1 struct {}",
"-type s2 struct { Person }",
"-type s3 struct {",
"+type t1 struct {}",
"+type t2 struct { Person }",
"+type t3 struct {",
" f, g int",
" }",
"-type s4 struct {",
"+type t4 struct {",
" p.s1",
" h int `json:\"h\"`",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "39c8f71001980e9214f0e1e66dea313e46047512..ac30ec6e88285d3dea860bd984cd97378566aacb"
}
,{
"testCaseDescription": "go-struct-types-delete-replacement-test",
"expectedResult": {
"changes": {
"struct-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
8
]
},
{
"start": [
4,
6
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 't1' identifier with the 's1' identifier in the 's1' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 't2' identifier with the 's2' identifier in the 's2' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 't3' identifier with the 's3' identifier in the 's3' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
9,
6
],
"end": [
9,
8
]
},
{
"start": [
9,
6
],
"end": [
9,
8
]
}
]
},
"summary": "Replaced the 't4' identifier with the 's4' identifier in the 's4' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-types.go"
],
"patch": [
"diff --git a/struct-types.go b/struct-types.go",
"index d73e92a6..13c82f80 100644",
"--- a/struct-types.go",
"+++ b/struct-types.go",
"@@ -1,12 +1,12 @@",
" package main",
" ",
" func main() {",
"-type t1 struct {}",
"-type t2 struct { Person }",
"-type t3 struct {",
"+type s1 struct {}",
"+type s2 struct { Person }",
"+type s3 struct {",
" f, g int",
" }",
"-type t4 struct {",
"+type s4 struct {",
" p.s1",
" h int `json:\"h\"`",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "ac30ec6e88285d3dea860bd984cd97378566aacb..f9c26d5a554b7735154a8bc8dfc7474407b70fc0"
}
,{
"testCaseDescription": "go-struct-types-delete-insert-test",
"expectedResult": {
"changes": {
"struct-types.go": [
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
18
]
}
},
"summary": "Deleted the 's1' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
26
]
}
},
"summary": "Deleted the 's2' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 's3' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
9,
6
],
"end": [
12,
2
]
}
},
"summary": "Deleted the 's4' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-types.go"
],
"patch": [
"diff --git a/struct-types.go b/struct-types.go",
"index 13c82f80..79058077 100644",
"--- a/struct-types.go",
"+++ b/struct-types.go",
"@@ -1,13 +1,5 @@",
" package main",
" ",
" func main() {",
"-type s1 struct {}",
"-type s2 struct { Person }",
"-type s3 struct {",
"-f, g int",
"-}",
"-type s4 struct {",
"-p.s1",
"- h int `json:\"h\"`",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "f9c26d5a554b7735154a8bc8dfc7474407b70fc0..6fe2bfcae57e30574d4dfe5dd47a69c97823b22e"
}
,{
"testCaseDescription": "go-struct-types-teardown-test",
"expectedResult": {
"changes": {
"struct-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"struct-types.go"
],
"patch": [
"diff --git a/struct-types.go b/struct-types.go",
"index 79058077..e69de29b 100644",
"--- a/struct-types.go",
"+++ b/struct-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "6fe2bfcae57e30574d4dfe5dd47a69c97823b22e..5f287115383794ba8f417807b7e523efa7fef3b6"
}]

View File

@ -1,585 +0,0 @@
[{
"testCaseDescription": "go-switch-statements-setup-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted a switch statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
"patch": [
"diff --git a/switch-statements.go b/switch-statements.go",
"index 5cdd438b..79058077 100644",
"--- a/switch-statements.go",
"+++ b/switch-statements.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-switch { case x < y: f1()",
"-case x < z: g()",
"-case x == 4: h()",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "4b10b6ade6ce2758e1727d4e03710722cb374ec6..31e99cd5c6a71a2d9d6abcef071b3061447da30f"
}
,{
"testCaseDescription": "go-switch-statements-insert-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
7,
2
]
}
},
"summary": "Added a switch statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
"patch": [
"diff --git a/switch-statements.go b/switch-statements.go",
"index 79058077..5cdd438b 100644",
"--- a/switch-statements.go",
"+++ b/switch-statements.go",
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
"+switch { case x < y: f1()",
"+case x < z: g()",
"+case x == 4: h()",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "31e99cd5c6a71a2d9d6abcef071b3061447da30f..7bde0e45b5072c0754139ae007b5f7dcee5c7069"
}
,{
"testCaseDescription": "go-switch-statements-replacement-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
15
],
"end": [
4,
16
]
},
{
"start": [
4,
15
],
"end": [
4,
16
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in a switch statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
19
],
"end": [
4,
20
]
},
{
"start": [
4,
19
],
"end": [
4,
20
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in a switch statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
7
]
},
{
"start": [
5,
6
],
"end": [
5,
7
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'c' identifier in a switch statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
10
],
"end": [
5,
11
]
},
{
"start": [
5,
10
],
"end": [
5,
11
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'd' identifier in a switch statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
7
]
},
{
"start": [
6,
6
],
"end": [
6,
7
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'e' identifier in a switch statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
14
],
"end": [
6,
15
]
},
{
"start": [
6,
14
],
"end": [
6,
15
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'f' identifier in the f() function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
"patch": [
"diff --git a/switch-statements.go b/switch-statements.go",
"index 5cdd438b..0b838937 100644",
"--- a/switch-statements.go",
"+++ b/switch-statements.go",
"@@ -1,8 +1,8 @@",
" package main",
" ",
" func main() {",
"-switch { case x < y: f1()",
"-case x < z: g()",
"-case x == 4: h()",
"+switch { case a < b: f1()",
"+case c < d: g()",
"+case e == 4: f()",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "7bde0e45b5072c0754139ae007b5f7dcee5c7069..d533c76ca97482b211aae89d5dc7317c2da9ed08"
}
,{
"testCaseDescription": "go-switch-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
15
],
"end": [
4,
16
]
},
{
"start": [
4,
15
],
"end": [
4,
16
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in a switch statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
19
],
"end": [
4,
20
]
},
{
"start": [
4,
19
],
"end": [
4,
20
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in a switch statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
7
]
},
{
"start": [
5,
6
],
"end": [
5,
7
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'x' identifier in a switch statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
10
],
"end": [
5,
11
]
},
{
"start": [
5,
10
],
"end": [
5,
11
]
}
]
},
"summary": "Replaced the 'd' identifier with the 'z' identifier in a switch statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
7
]
},
{
"start": [
6,
6
],
"end": [
6,
7
]
}
]
},
"summary": "Replaced the 'e' identifier with the 'x' identifier in a switch statement of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
14
],
"end": [
6,
15
]
},
{
"start": [
6,
14
],
"end": [
6,
15
]
}
]
},
"summary": "Replaced the 'f' identifier with the 'h' identifier in the h() function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
"patch": [
"diff --git a/switch-statements.go b/switch-statements.go",
"index 0b838937..5cdd438b 100644",
"--- a/switch-statements.go",
"+++ b/switch-statements.go",
"@@ -1,8 +1,8 @@",
" package main",
" ",
" func main() {",
"-switch { case a < b: f1()",
"-case c < d: g()",
"-case e == 4: f()",
"+switch { case x < y: f1()",
"+case x < z: g()",
"+case x == 4: h()",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "d533c76ca97482b211aae89d5dc7317c2da9ed08..53db9755dfc81f3e1c701ff964a502d60bd070a0"
}
,{
"testCaseDescription": "go-switch-statements-delete-insert-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted a switch statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
"patch": [
"diff --git a/switch-statements.go b/switch-statements.go",
"index 5cdd438b..79058077 100644",
"--- a/switch-statements.go",
"+++ b/switch-statements.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-switch { case x < y: f1()",
"-case x < z: g()",
"-case x == 4: h()",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "53db9755dfc81f3e1c701ff964a502d60bd070a0..fadee35ca8a0bdc037adc0ba40b48a0e3d83d1a0"
}
,{
"testCaseDescription": "go-switch-statements-teardown-test",
"expectedResult": {
"changes": {
"switch-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statements.go"
],
"patch": [
"diff --git a/switch-statements.go b/switch-statements.go",
"index 79058077..e69de29b 100644",
"--- a/switch-statements.go",
"+++ b/switch-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "fadee35ca8a0bdc037adc0ba40b48a0e3d83d1a0..331d50d25e2927f7ec24d69b4f21552787a91ed6"
}]

View File

@ -1,364 +0,0 @@
[{
"testCaseDescription": "go-type-assertion-expressions-setup-test",
"expectedResult": {
"changes": {
"type-assertion-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"type-assertion-expressions.go"
],
"patch": [
"diff --git a/type-assertion-expressions.go b/type-assertion-expressions.go",
"index e69de29b..79058077 100644",
"--- a/type-assertion-expressions.go",
"+++ b/type-assertion-expressions.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "16a71383b1105b6ba32fa5b1498ab5294acea29b..67ded9bcf53dc1ca1b6349945197e05b2d1936fa"
}
,{
"testCaseDescription": "go-type-assertion-expressions-insert-test",
"expectedResult": {
"changes": {
"type-assertion-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
13
]
}
},
"summary": "Added the 'x.(z.Person)' type assertion statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"type-assertion-expressions.go"
],
"patch": [
"diff --git a/type-assertion-expressions.go b/type-assertion-expressions.go",
"index 79058077..4f148f43 100644",
"--- a/type-assertion-expressions.go",
"+++ b/type-assertion-expressions.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+x.(z.Person)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "67ded9bcf53dc1ca1b6349945197e05b2d1936fa..ac57a2465a1a421b4957ec3c8503bedc827927e7"
}
,{
"testCaseDescription": "go-type-assertion-expressions-replacement-test",
"expectedResult": {
"changes": {
"type-assertion-expressions.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'b' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
12
]
},
{
"start": [
4,
4
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 'z.Person' qualified identifier with the 'c.Dog' qualified identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"type-assertion-expressions.go"
],
"patch": [
"diff --git a/type-assertion-expressions.go b/type-assertion-expressions.go",
"index 4f148f43..e7463b41 100644",
"--- a/type-assertion-expressions.go",
"+++ b/type-assertion-expressions.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-x.(z.Person)",
"+b.(c.Dog)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "ac57a2465a1a421b4957ec3c8503bedc827927e7..13bba50587780c11387c9efab0f00137b87ec14e"
}
,{
"testCaseDescription": "go-type-assertion-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"type-assertion-expressions.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'x' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
9
]
},
{
"start": [
4,
4
],
"end": [
4,
12
]
}
]
},
"summary": "Replaced the 'c.Dog' qualified identifier with the 'z.Person' qualified identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"type-assertion-expressions.go"
],
"patch": [
"diff --git a/type-assertion-expressions.go b/type-assertion-expressions.go",
"index e7463b41..4f148f43 100644",
"--- a/type-assertion-expressions.go",
"+++ b/type-assertion-expressions.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-b.(c.Dog)",
"+x.(z.Person)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "13bba50587780c11387c9efab0f00137b87ec14e..6ca70b97d2774dda78b9d009405f597a45ad505c"
}
,{
"testCaseDescription": "go-type-assertion-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"type-assertion-expressions.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
13
]
}
},
"summary": "Deleted the 'x.(z.Person)' type assertion statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"type-assertion-expressions.go"
],
"patch": [
"diff --git a/type-assertion-expressions.go b/type-assertion-expressions.go",
"index 4f148f43..79058077 100644",
"--- a/type-assertion-expressions.go",
"+++ b/type-assertion-expressions.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-x.(z.Person)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "6ca70b97d2774dda78b9d009405f597a45ad505c..4e837f29c881bda8e83fdc36969ec0771da4f4d5"
}
,{
"testCaseDescription": "go-type-assertion-expressions-teardown-test",
"expectedResult": {
"changes": {
"type-assertion-expressions.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"type-assertion-expressions.go"
],
"patch": [
"diff --git a/type-assertion-expressions.go b/type-assertion-expressions.go",
"index 79058077..e69de29b 100644",
"--- a/type-assertion-expressions.go",
"+++ b/type-assertion-expressions.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "4e837f29c881bda8e83fdc36969ec0771da4f4d5..54691480a5b9bd6970a6332895602b591fabd7c2"
}]

File diff suppressed because it is too large Load Diff

View File

@ -1,660 +0,0 @@
[{
"testCaseDescription": "go-type-declarations-setup-test",
"expectedResult": {
"changes": {
"type-declarations.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"type-declarations.go"
],
"patch": [
"diff --git a/type-declarations.go b/type-declarations.go",
"index e69de29b..79058077 100644",
"--- a/type-declarations.go",
"+++ b/type-declarations.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "957e7a284d3bbaebd707764ceac202343581ccdb..3048609b5633d2fcdca43de044e16eea7af90613"
}
,{
"testCaseDescription": "go-type-declarations-insert-test",
"expectedResult": {
"changes": {
"type-declarations.go": [
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
9
]
}
},
"summary": "Added the 'a' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
6,
3
],
"end": [
6,
6
]
}
},
"summary": "Added the 'a' type declaration in the main function"
},
{
"span": {
"insert": {
"start": [
7,
3
],
"end": [
7,
6
]
}
},
"summary": "Added the 'c' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"type-declarations.go"
],
"patch": [
"diff --git a/type-declarations.go b/type-declarations.go",
"index 79058077..799c45c8 100644",
"--- a/type-declarations.go",
"+++ b/type-declarations.go",
"@@ -1,5 +1,9 @@",
" package main",
" ",
" func main() {",
"-",
"+type a b",
"+type (",
"+ a b",
"+ c d",
"+)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "3048609b5633d2fcdca43de044e16eea7af90613..574de74cbac0d7902fe22135e3bc0da02ecfdfe3"
}
,{
"testCaseDescription": "go-type-declarations-replacement-test",
"expectedResult": {
"changes": {
"type-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
7
]
},
{
"start": [
4,
6
],
"end": [
4,
7
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the 'x' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
9
]
},
{
"start": [
4,
8
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the 'x' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
3
],
"end": [
6,
4
]
},
{
"start": [
6,
3
],
"end": [
6,
4
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the 'x' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
5
],
"end": [
6,
6
]
},
{
"start": [
6,
5
],
"end": [
6,
6
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the 'x' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
3
],
"end": [
7,
4
]
},
{
"start": [
7,
3
],
"end": [
7,
4
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'e' identifier in the 'e' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
5
],
"end": [
7,
6
]
},
{
"start": [
7,
5
],
"end": [
7,
6
]
}
]
},
"summary": "Replaced the 'd' identifier with the 'f' identifier in the 'e' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"type-declarations.go"
],
"patch": [
"diff --git a/type-declarations.go b/type-declarations.go",
"index 799c45c8..364f246c 100644",
"--- a/type-declarations.go",
"+++ b/type-declarations.go",
"@@ -1,9 +1,9 @@",
" package main",
" ",
" func main() {",
"-type a b",
"+type x y",
" type (",
"- a b",
"- c d",
"+ x y",
"+ e f",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "574de74cbac0d7902fe22135e3bc0da02ecfdfe3..1bfbb1167c66fbee072c4b4527584c874a8cffe8"
}
,{
"testCaseDescription": "go-type-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"type-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
7
]
},
{
"start": [
4,
6
],
"end": [
4,
7
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the 'a' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
9
]
},
{
"start": [
4,
8
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the 'a' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
3
],
"end": [
6,
4
]
},
{
"start": [
6,
3
],
"end": [
6,
4
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the 'a' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
6,
5
],
"end": [
6,
6
]
},
{
"start": [
6,
5
],
"end": [
6,
6
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the 'a' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
3
],
"end": [
7,
4
]
},
{
"start": [
7,
3
],
"end": [
7,
4
]
}
]
},
"summary": "Replaced the 'e' identifier with the 'c' identifier in the 'c' type declaration of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
7,
5
],
"end": [
7,
6
]
},
{
"start": [
7,
5
],
"end": [
7,
6
]
}
]
},
"summary": "Replaced the 'f' identifier with the 'd' identifier in the 'c' type declaration of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"type-declarations.go"
],
"patch": [
"diff --git a/type-declarations.go b/type-declarations.go",
"index 364f246c..799c45c8 100644",
"--- a/type-declarations.go",
"+++ b/type-declarations.go",
"@@ -1,9 +1,9 @@",
" package main",
" ",
" func main() {",
"-type x y",
"+type a b",
" type (",
"- x y",
"- e f",
"+ a b",
"+ c d",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "1bfbb1167c66fbee072c4b4527584c874a8cffe8..205d1fef5ce02db2f5101901eb78b3c8272ac29d"
}
,{
"testCaseDescription": "go-type-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"type-declarations.go": [
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'a' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
6,
3
],
"end": [
6,
6
]
}
},
"summary": "Deleted the 'a' type declaration in the main function"
},
{
"span": {
"delete": {
"start": [
7,
3
],
"end": [
7,
6
]
}
},
"summary": "Deleted the 'c' type declaration in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"type-declarations.go"
],
"patch": [
"diff --git a/type-declarations.go b/type-declarations.go",
"index 799c45c8..79058077 100644",
"--- a/type-declarations.go",
"+++ b/type-declarations.go",
"@@ -1,9 +1,5 @@",
" package main",
" ",
" func main() {",
"-type a b",
"-type (",
"- a b",
"- c d",
"-)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "205d1fef5ce02db2f5101901eb78b3c8272ac29d..98b4b5f5773b74fdcf8e680df7db0b193b1bd02a"
}
,{
"testCaseDescription": "go-type-declarations-teardown-test",
"expectedResult": {
"changes": {
"type-declarations.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"type-declarations.go"
],
"patch": [
"diff --git a/type-declarations.go b/type-declarations.go",
"index 79058077..e69de29b 100644",
"--- a/type-declarations.go",
"+++ b/type-declarations.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "98b4b5f5773b74fdcf8e680df7db0b193b1bd02a..5caeef873494edf9110ed67e273e7c4df49d588e"
}]

View File

@ -1,324 +0,0 @@
[{
"testCaseDescription": "go-type-switch-statements-setup-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"patch": [
"diff --git a/type-switch-statements.go b/type-switch-statements.go",
"index e69de29b..79058077 100644",
"--- a/type-switch-statements.go",
"+++ b/type-switch-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "331d50d25e2927f7ec24d69b4f21552787a91ed6..995bee43c13c56bc924eca6b3041d00d6c275587"
}
,{
"testCaseDescription": "go-type-switch-statements-insert-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
9,
2
]
}
},
"summary": "Added the 'e' switch statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"patch": [
"diff --git a/type-switch-statements.go b/type-switch-statements.go",
"index 79058077..fd377c7a 100644",
"--- a/type-switch-statements.go",
"+++ b/type-switch-statements.go",
"@@ -1,5 +1,10 @@",
" package main",
" ",
" func main() {",
"-",
"+switch e.(type) {",
"+ case []Person:",
"+ a()",
"+ case *Dog:",
"+ break",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "995bee43c13c56bc924eca6b3041d00d6c275587..5ca7d93e03a0c7b1c0b4ad603e18df64472fbf88"
}
,{
"testCaseDescription": "go-type-switch-statements-replacement-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
9
]
},
{
"start": [
4,
8
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 'e' identifier with the 'b' identifier in the 'b' switch statement of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"patch": [
"diff --git a/type-switch-statements.go b/type-switch-statements.go",
"index fd377c7a..f5ef4d87 100644",
"--- a/type-switch-statements.go",
"+++ b/type-switch-statements.go",
"@@ -1,7 +1,7 @@",
" package main",
" ",
" func main() {",
"-switch e.(type) {",
"+switch b.(type) {",
" case []Person:",
" a()",
" case *Dog:"
],
"gitDir": "test/corpus/repos/go",
"shas": "5ca7d93e03a0c7b1c0b4ad603e18df64472fbf88..21ab71153e357ca625b963ff3d2f3fb8de73f513"
}
,{
"testCaseDescription": "go-type-switch-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
9
]
},
{
"start": [
4,
8
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'e' identifier in the 'e' switch statement of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"patch": [
"diff --git a/type-switch-statements.go b/type-switch-statements.go",
"index f5ef4d87..fd377c7a 100644",
"--- a/type-switch-statements.go",
"+++ b/type-switch-statements.go",
"@@ -1,7 +1,7 @@",
" package main",
" ",
" func main() {",
"-switch b.(type) {",
"+switch e.(type) {",
" case []Person:",
" a()",
" case *Dog:"
],
"gitDir": "test/corpus/repos/go",
"shas": "21ab71153e357ca625b963ff3d2f3fb8de73f513..d3fac9bf77e05e48c5f25b81701c11fd2a518f21"
}
,{
"testCaseDescription": "go-type-switch-statements-delete-insert-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
9,
2
]
}
},
"summary": "Deleted the 'e' switch statement in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"patch": [
"diff --git a/type-switch-statements.go b/type-switch-statements.go",
"index fd377c7a..79058077 100644",
"--- a/type-switch-statements.go",
"+++ b/type-switch-statements.go",
"@@ -1,10 +1,5 @@",
" package main",
" ",
" func main() {",
"-switch e.(type) {",
"- case []Person:",
"- a()",
"- case *Dog:",
"- break",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "d3fac9bf77e05e48c5f25b81701c11fd2a518f21..9acb35bd5a1853e7f98df42edf337f532f725d0a"
}
,{
"testCaseDescription": "go-type-switch-statements-teardown-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"patch": [
"diff --git a/type-switch-statements.go b/type-switch-statements.go",
"index 79058077..e69de29b 100644",
"--- a/type-switch-statements.go",
"+++ b/type-switch-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "9acb35bd5a1853e7f98df42edf337f532f725d0a..4966b945ba5393d1f1e64efadf0af83c41425f11"
}]

View File

@ -1,400 +0,0 @@
[{
"testCaseDescription": "go-unary-expressions-setup-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index e69de29b..79058077 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "ff70e778d77d3022b1405f9959a49805cd7ec6e8..075961eb8b5782aebb534b633d577b2a8a759bbd"
}
,{
"testCaseDescription": "go-unary-expressions-insert-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Added the '!<-a' operator in the main function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
7
]
}
},
"summary": "Added the '*foo()' operator in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index 79058077..bdf9ccc5 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -1,5 +1,6 @@",
" package main",
" ",
" func main() {",
"-",
"+!<-a",
"+*foo()",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "075961eb8b5782aebb534b633d577b2a8a759bbd..743a20943ad5a710f54b654221ebec640bcca7f4"
}
,{
"testCaseDescription": "go-unary-expressions-replacement-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
5
]
},
{
"start": [
4,
4
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
5,
2
],
"end": [
5,
5
]
},
{
"start": [
5,
2
],
"end": [
5,
5
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the bar() function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index bdf9ccc5..cf8ed882 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-!<-a",
"-*foo()",
"+!<-b",
"+*bar()",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "743a20943ad5a710f54b654221ebec640bcca7f4..cd05588013b5cb28be9bb55ede4c09277037871a"
}
,{
"testCaseDescription": "go-unary-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
5
]
},
{
"start": [
4,
4
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
5,
2
],
"end": [
5,
5
]
},
{
"start": [
5,
2
],
"end": [
5,
5
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the foo() function call of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index cf8ed882..bdf9ccc5 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-!<-b",
"-*bar()",
"+!<-a",
"+*foo()",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "cd05588013b5cb28be9bb55ede4c09277037871a..897abf3b1a152e7d11a97c70a77c76ea5b46d9cf"
}
,{
"testCaseDescription": "go-unary-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Deleted the '!<-a' operator in the main function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
7
]
}
},
"summary": "Deleted the '*foo()' operator in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index bdf9ccc5..79058077 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -1,6 +1,5 @@",
" package main",
" ",
" func main() {",
"-!<-a",
"-*foo()",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "897abf3b1a152e7d11a97c70a77c76ea5b46d9cf..a06adc4309175efa72367ae99b3f0be96ac7bbb1"
}
,{
"testCaseDescription": "go-unary-expressions-teardown-test",
"expectedResult": {
"changes": {
"unary-expressions.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"unary-expressions.go"
],
"patch": [
"diff --git a/unary-expressions.go b/unary-expressions.go",
"index 79058077..e69de29b 100644",
"--- a/unary-expressions.go",
"+++ b/unary-expressions.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "a06adc4309175efa72367ae99b3f0be96ac7bbb1..cb535d2811aca85ccc5af6391402ea86b6b7e441"
}]

View File

@ -1,454 +0,0 @@
[{
"testCaseDescription": "go-var-declarations-with-no-expressions-setup-test",
"expectedResult": {
"changes": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
"index e69de29b..79058077 100644",
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "8afcad6b71675b14fc6f8cf8a6bdf31462499d18..d9aa6f47e2d54a07a7cd2d7742cf60c6195d2ea4"
}
,{
"testCaseDescription": "go-var-declarations-with-no-expressions-insert-test",
"expectedResult": {
"changes": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"insert": {
"start": [
4,
5
],
"end": [
4,
13
]
}
},
"summary": "Added the 'zero' var assignment in the main function"
},
{
"span": {
"insert": {
"start": [
5,
5
],
"end": [
5,
20
]
}
},
"summary": "Added the 'one, two' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
"index 79058077..fcdc3127 100644",
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.go",
"@@ -1,5 +1,6 @@",
" package main",
" ",
" func main() {",
"-",
"+var zero int",
"+var one, two uint64",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "d9aa6f47e2d54a07a7cd2d7742cf60c6195d2ea4..2b3f87acc87f9ea6e34dc3a65e022c5d98dfdd14"
}
,{
"testCaseDescription": "go-var-declarations-with-no-expressions-replacement-test",
"expectedResult": {
"changes": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
9
]
},
{
"start": [
4,
5
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the a var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
8
]
},
{
"start": [
5,
5
],
"end": [
5,
6
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'b' identifier in the b, c var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
10
],
"end": [
5,
13
]
},
{
"start": [
5,
8
],
"end": [
5,
9
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'c' identifier in the b, c var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
"index fcdc3127..8aab74f1 100644",
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-var zero int",
"-var one, two uint64",
"+var a int",
"+var b, c uint64",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "2b3f87acc87f9ea6e34dc3a65e022c5d98dfdd14..f03cb525fb9db922c45267821903120ce3c320e9"
}
,{
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
6
]
},
{
"start": [
4,
5
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the zero var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
6
]
},
{
"start": [
5,
5
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'one' identifier in the one, two var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
5,
8
],
"end": [
5,
9
]
},
{
"start": [
5,
10
],
"end": [
5,
13
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'two' identifier in the one, two var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
"index 8aab74f1..fcdc3127 100644",
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-var a int",
"-var b, c uint64",
"+var zero int",
"+var one, two uint64",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "f03cb525fb9db922c45267821903120ce3c320e9..8ee55fbc49a9dd1ba0088d23eaa9a7fb90b9b06f"
}
,{
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"delete": {
"start": [
4,
5
],
"end": [
4,
13
]
}
},
"summary": "Deleted the 'zero' var assignment in the main function"
},
{
"span": {
"delete": {
"start": [
5,
5
],
"end": [
5,
20
]
}
},
"summary": "Deleted the 'one, two' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
"index fcdc3127..79058077 100644",
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.go",
"@@ -1,6 +1,5 @@",
" package main",
" ",
" func main() {",
"-var zero int",
"-var one, two uint64",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "8ee55fbc49a9dd1ba0088d23eaa9a7fb90b9b06f..1a01ce143bdf8ac8f7dbaf51de294eef00d16be6"
}
,{
"testCaseDescription": "go-var-declarations-with-no-expressions-teardown-test",
"expectedResult": {
"changes": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
"index 79058077..e69de29b 100644",
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "1a01ce143bdf8ac8f7dbaf51de294eef00d16be6..2962e40e4009fc06a09468b0ecd4187635094a76"
}]

View File

@ -1,634 +0,0 @@
[{
"testCaseDescription": "go-var-declarations-with-types-setup-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"patch": [
"diff --git a/var-declarations-with-types.go b/var-declarations-with-types.go",
"index e69de29b..79058077 100644",
"--- a/var-declarations-with-types.go",
"+++ b/var-declarations-with-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "07ecfacbec3625fb823e60080e9d897469ceedda..d680807e6e95885022385b4e9e21c58c9eb6567e"
}
,{
"testCaseDescription": "go-var-declarations-with-types-insert-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"insert": {
"start": [
4,
5
],
"end": [
4,
9
]
}
},
"summary": "Added the 'zero' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
4,
10
],
"end": [
4,
13
]
}
},
"summary": "Added the 'int' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
4,
16
],
"end": [
4,
17
]
}
},
"summary": "Added '0' in the main function"
},
{
"span": {
"insert": {
"start": [
5,
5
],
"end": [
5,
8
]
}
},
"summary": "Added the 'one' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
5,
10
],
"end": [
5,
13
]
}
},
"summary": "Added the 'two' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
5,
14
],
"end": [
5,
20
]
}
},
"summary": "Added the 'uint64' identifier in the main function"
},
{
"span": {
"insert": {
"start": [
5,
23
],
"end": [
5,
24
]
}
},
"summary": "Added '1' in the main function"
},
{
"span": {
"insert": {
"start": [
5,
26
],
"end": [
5,
27
]
}
},
"summary": "Added '2' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"patch": [
"diff --git a/var-declarations-with-types.go b/var-declarations-with-types.go",
"index 79058077..d946c807 100644",
"--- a/var-declarations-with-types.go",
"+++ b/var-declarations-with-types.go",
"@@ -1,5 +1,6 @@",
" package main",
" ",
" func main() {",
"-",
"+var zero int = 0",
"+var one, two uint64 = 1, 2",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "d680807e6e95885022385b4e9e21c58c9eb6567e..5406d1d9df3bcc3e16c170cdda6393d31144681a"
}
,{
"testCaseDescription": "go-var-declarations-with-types-replacement-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
9
]
},
{
"start": [
4,
5
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
7
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'b' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
5,
10
],
"end": [
5,
13
]
},
{
"start": [
5,
9
],
"end": [
5,
10
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'c' identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"patch": [
"diff --git a/var-declarations-with-types.go b/var-declarations-with-types.go",
"index d946c807..14683f6f 100644",
"--- a/var-declarations-with-types.go",
"+++ b/var-declarations-with-types.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-var zero int = 0",
"-var one, two uint64 = 1, 2",
"+var a int = 0",
"+ var b, c uint64 = 1, 2",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "5406d1d9df3bcc3e16c170cdda6393d31144681a..92672e6e8edd736db349d8876ade029bc733939d"
}
,{
"testCaseDescription": "go-var-declarations-with-types-delete-replacement-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
6
]
},
{
"start": [
4,
5
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
7
]
},
{
"start": [
5,
5
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'one' identifier in the main function"
},
{
"span": {
"replace": [
{
"start": [
5,
9
],
"end": [
5,
10
]
},
{
"start": [
5,
10
],
"end": [
5,
13
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'two' identifier in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"patch": [
"diff --git a/var-declarations-with-types.go b/var-declarations-with-types.go",
"index 14683f6f..d946c807 100644",
"--- a/var-declarations-with-types.go",
"+++ b/var-declarations-with-types.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-var a int = 0",
"- var b, c uint64 = 1, 2",
"+var zero int = 0",
"+var one, two uint64 = 1, 2",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "92672e6e8edd736db349d8876ade029bc733939d..a300af98dca020d02ce00752e6f797287707bb1f"
}
,{
"testCaseDescription": "go-var-declarations-with-types-delete-insert-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"delete": {
"start": [
4,
5
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'zero' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
13
]
}
},
"summary": "Deleted the 'int' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
4,
16
],
"end": [
4,
17
]
}
},
"summary": "Deleted '0' in the main function"
},
{
"span": {
"delete": {
"start": [
5,
5
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'one' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
5,
10
],
"end": [
5,
13
]
}
},
"summary": "Deleted the 'two' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
5,
14
],
"end": [
5,
20
]
}
},
"summary": "Deleted the 'uint64' identifier in the main function"
},
{
"span": {
"delete": {
"start": [
5,
23
],
"end": [
5,
24
]
}
},
"summary": "Deleted '1' in the main function"
},
{
"span": {
"delete": {
"start": [
5,
26
],
"end": [
5,
27
]
}
},
"summary": "Deleted '2' in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"patch": [
"diff --git a/var-declarations-with-types.go b/var-declarations-with-types.go",
"index d946c807..79058077 100644",
"--- a/var-declarations-with-types.go",
"+++ b/var-declarations-with-types.go",
"@@ -1,6 +1,5 @@",
" package main",
" ",
" func main() {",
"-var zero int = 0",
"-var one, two uint64 = 1, 2",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "a300af98dca020d02ce00752e6f797287707bb1f..46dd7bbf534938760c3e54a2117cafadba67ecf0"
}
,{
"testCaseDescription": "go-var-declarations-with-types-teardown-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"patch": [
"diff --git a/var-declarations-with-types.go b/var-declarations-with-types.go",
"index 79058077..e69de29b 100644",
"--- a/var-declarations-with-types.go",
"+++ b/var-declarations-with-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "46dd7bbf534938760c3e54a2117cafadba67ecf0..8afcad6b71675b14fc6f8cf8a6bdf31462499d18"
}]

View File

@ -1,424 +0,0 @@
[{
"testCaseDescription": "go-var-declarations-without-types-setup-test",
"expectedResult": {
"changes": {
"var-declarations-without-types.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-without-types.go"
],
"patch": [
"diff --git a/var-declarations-without-types.go b/var-declarations-without-types.go",
"index e69de29b..79058077 100644",
"--- a/var-declarations-without-types.go",
"+++ b/var-declarations-without-types.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "acb9e5e1c505bf2f3ccd977641fe0084ff8d7d58..9a1e79dd9b214136aa317b6cbae92f8b641f144e"
}
,{
"testCaseDescription": "go-var-declarations-without-types-insert-test",
"expectedResult": {
"changes": {
"var-declarations-without-types.go": [
{
"span": {
"insert": {
"start": [
4,
5
],
"end": [
4,
13
]
}
},
"summary": "Added the 'zero' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-without-types.go"
],
"patch": [
"diff --git a/var-declarations-without-types.go b/var-declarations-without-types.go",
"index 79058077..64f60746 100644",
"--- a/var-declarations-without-types.go",
"+++ b/var-declarations-without-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+var zero = 0",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "9a1e79dd9b214136aa317b6cbae92f8b641f144e..e75333a458a729cc64fe4dd51ee2fae406ae4cef"
}
,{
"testCaseDescription": "go-var-declarations-without-types-replacement-test",
"expectedResult": {
"changes": {
"var-declarations-without-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
9
]
},
{
"start": [
4,
5
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'one' identifier in the one, two var assignment of the 'main' function"
},
{
"span": {
"insert": {
"start": [
4,
10
],
"end": [
4,
13
]
}
},
"summary": "Added the 'two' identifier in the one, two var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
12
],
"end": [
4,
13
]
},
{
"start": [
4,
16
],
"end": [
4,
17
]
}
]
},
"summary": "Replaced '0' with '1' in the one, two var assignment of the 'main' function"
},
{
"span": {
"insert": {
"start": [
4,
19
],
"end": [
4,
20
]
}
},
"summary": "Added '2' in the one, two var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-without-types.go"
],
"patch": [
"diff --git a/var-declarations-without-types.go b/var-declarations-without-types.go",
"index 64f60746..88a72ee0 100644",
"--- a/var-declarations-without-types.go",
"+++ b/var-declarations-without-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-var zero = 0",
"+var one, two = 1, 2",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "e75333a458a729cc64fe4dd51ee2fae406ae4cef..fb0205ba2c2b8fe7be4d2d91b2045958f64033c3"
}
,{
"testCaseDescription": "go-var-declarations-without-types-delete-replacement-test",
"expectedResult": {
"changes": {
"var-declarations-without-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
4,
5
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'zero' identifier in the zero var assignment of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
13
]
}
},
"summary": "Deleted the 'two' identifier in the zero var assignment of the 'main' function"
},
{
"span": {
"replace": [
{
"start": [
4,
16
],
"end": [
4,
17
]
},
{
"start": [
4,
12
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced '1' with '0' in the zero var assignment of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
19
],
"end": [
4,
20
]
}
},
"summary": "Deleted '2' in the zero var assignment of the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-without-types.go"
],
"patch": [
"diff --git a/var-declarations-without-types.go b/var-declarations-without-types.go",
"index 88a72ee0..64f60746 100644",
"--- a/var-declarations-without-types.go",
"+++ b/var-declarations-without-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-var one, two = 1, 2",
"+var zero = 0",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "fb0205ba2c2b8fe7be4d2d91b2045958f64033c3..a4533b5d1eace74663277f159670e8bab76b59a9"
}
,{
"testCaseDescription": "go-var-declarations-without-types-delete-insert-test",
"expectedResult": {
"changes": {
"var-declarations-without-types.go": [
{
"span": {
"delete": {
"start": [
4,
5
],
"end": [
4,
13
]
}
},
"summary": "Deleted the 'zero' var assignment in the main function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-without-types.go"
],
"patch": [
"diff --git a/var-declarations-without-types.go b/var-declarations-without-types.go",
"index 64f60746..79058077 100644",
"--- a/var-declarations-without-types.go",
"+++ b/var-declarations-without-types.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-var zero = 0",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "a4533b5d1eace74663277f159670e8bab76b59a9..1cc3de5e23a2d48bc22d5877c0ca13ceb6f77da3"
}
,{
"testCaseDescription": "go-var-declarations-without-types-teardown-test",
"expectedResult": {
"changes": {
"var-declarations-without-types.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-without-types.go"
],
"patch": [
"diff --git a/var-declarations-without-types.go b/var-declarations-without-types.go",
"index 79058077..e69de29b 100644",
"--- a/var-declarations-without-types.go",
"+++ b/var-declarations-without-types.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "1cc3de5e23a2d48bc22d5877c0ca13ceb6f77da3..07ecfacbec3625fb823e60080e9d897469ceedda"
}]

View File

@ -1,488 +0,0 @@
[{
"testCaseDescription": "go-variadic-function-declarations-setup-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Added the 'main' module"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"patch": [
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
"index e69de29b..b97dec38 100644",
"--- a/variadic-function-declarations.go",
"+++ b/variadic-function-declarations.go",
"@@ -0,0 +1,6 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "ba5ad24cc5920db43a2b1942f11e4737fe450953..15a77f6125a6c4dab3cb92fdca8bd43ffb7a095c"
}
,{
"testCaseDescription": "go-variadic-function-declarations-insert-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
22
]
}
},
"summary": "Added the 'f1' function"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
19
]
}
},
"summary": "Added the 'f2' function"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
23
]
}
},
"summary": "Added the 'f3' function"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"patch": [
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
"index b97dec38..6bdb4e0a 100644",
"--- a/variadic-function-declarations.go",
"+++ b/variadic-function-declarations.go",
"@@ -3,4 +3,6 @@ package main",
" func main() {",
" ",
" }",
"-",
"+func f1(a ...*int) {}",
"+func f2(...int) {}",
"+func f3(a, ...bool) {}"
],
"gitDir": "test/corpus/repos/go",
"shas": "15a77f6125a6c4dab3cb92fdca8bd43ffb7a095c..2795525acc11b3b4d3bb239efb44e4dbeeb3eb80"
}
,{
"testCaseDescription": "go-variadic-function-declarations-replacement-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 'f1' identifier with the 'g1' identifier in the g1 function"
},
{
"span": {
"replace": [
{
"start": [
7,
6
],
"end": [
7,
8
]
},
{
"start": [
7,
6
],
"end": [
7,
8
]
}
]
},
"summary": "Replaced the 'f2' identifier with the 'g2' identifier in the g2 function"
},
{
"span": {
"replace": [
{
"start": [
8,
6
],
"end": [
8,
8
]
},
{
"start": [
8,
6
],
"end": [
8,
8
]
}
]
},
"summary": "Replaced the 'f3' identifier with the 'g3' identifier in the g3 function"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"patch": [
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
"index 6bdb4e0a..ecc181af 100644",
"--- a/variadic-function-declarations.go",
"+++ b/variadic-function-declarations.go",
"@@ -3,6 +3,6 @@ package main",
" func main() {",
" ",
" }",
"-func f1(a ...*int) {}",
"-func f2(...int) {}",
"-func f3(a, ...bool) {}",
"+func g1(a ...*int) {}",
"+func g2(...int) {}",
"+func g3(a, ...bool) {}"
],
"gitDir": "test/corpus/repos/go",
"shas": "2795525acc11b3b4d3bb239efb44e4dbeeb3eb80..12f649346665ffb181bde064b58e5ac1d9d97860"
}
,{
"testCaseDescription": "go-variadic-function-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 'g1' identifier with the 'f1' identifier in the f1 function"
},
{
"span": {
"replace": [
{
"start": [
7,
6
],
"end": [
7,
8
]
},
{
"start": [
7,
6
],
"end": [
7,
8
]
}
]
},
"summary": "Replaced the 'g2' identifier with the 'f2' identifier in the f2 function"
},
{
"span": {
"replace": [
{
"start": [
8,
6
],
"end": [
8,
8
]
},
{
"start": [
8,
6
],
"end": [
8,
8
]
}
]
},
"summary": "Replaced the 'g3' identifier with the 'f3' identifier in the f3 function"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"patch": [
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
"index ecc181af..6bdb4e0a 100644",
"--- a/variadic-function-declarations.go",
"+++ b/variadic-function-declarations.go",
"@@ -3,6 +3,6 @@ package main",
" func main() {",
" ",
" }",
"-func g1(a ...*int) {}",
"-func g2(...int) {}",
"-func g3(a, ...bool) {}",
"+func f1(a ...*int) {}",
"+func f2(...int) {}",
"+func f3(a, ...bool) {}"
],
"gitDir": "test/corpus/repos/go",
"shas": "12f649346665ffb181bde064b58e5ac1d9d97860..ef93bbef3117c5583f11f22bd06558ddfad0784b"
}
,{
"testCaseDescription": "go-variadic-function-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
22
]
}
},
"summary": "Deleted the 'f1' function"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
19
]
}
},
"summary": "Deleted the 'f2' function"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
23
]
}
},
"summary": "Deleted the 'f3' function"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"patch": [
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
"index 6bdb4e0a..b97dec38 100644",
"--- a/variadic-function-declarations.go",
"+++ b/variadic-function-declarations.go",
"@@ -3,6 +3,4 @@ package main",
" func main() {",
" ",
" }",
"-func f1(a ...*int) {}",
"-func f2(...int) {}",
"-func f3(a, ...bool) {}",
"+"
],
"gitDir": "test/corpus/repos/go",
"shas": "ef93bbef3117c5583f11f22bd06558ddfad0784b..2f16adfed9c6ae862992be30903bb8e0e3f1e344"
}
,{
"testCaseDescription": "go-variadic-function-declarations-teardown-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'main' module"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'main' function"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"patch": [
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
"index b97dec38..e69de29b 100644",
"--- a/variadic-function-declarations.go",
"+++ b/variadic-function-declarations.go",
"@@ -1,6 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}",
"-"
],
"gitDir": "test/corpus/repos/go",
"shas": "2f16adfed9c6ae862992be30903bb8e0e3f1e344..d6222a7346773adfd0929112bedb22129a3519ea"
}]

View File

@ -1,455 +0,0 @@
[{
"testCaseDescription": "javascript-anonymous-function-insert-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added an anonymous(a, b) function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"patch": [
"diff --git a/anonymous-function.js b/anonymous-function.js",
"index e69de29b..b5928681 100644",
"--- a/anonymous-function.js",
"+++ b/anonymous-function.js",
"@@ -0,0 +1 @@",
"+function(a,b) { return a + b; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b08e38bcc1fe2b06ba9591e2ecf24e8bbc0686b6..129d3b4c5f96c2a47285565c7d027beb8e97aa75"
}
,{
"testCaseDescription": "javascript-anonymous-function-replacement-insert-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added an anonymous(b, c) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added an anonymous(a, b) function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"patch": [
"diff --git a/anonymous-function.js b/anonymous-function.js",
"index b5928681..e1de356c 100644",
"--- a/anonymous-function.js",
"+++ b/anonymous-function.js",
"@@ -1 +1,3 @@",
"+function(b,c) { return b * c; }",
"+function(a,b) { return a + b; }",
" function(a,b) { return a + b; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "129d3b4c5f96c2a47285565c7d027beb8e97aa75..7ddd8785d6e38cad56d16ed74d198fec656089b0"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-insert-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
12
],
"end": [
1,
13
]
},
{
"start": [
1,
12
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
24
],
"end": [
1,
29
]
},
{
"start": [
1,
24
],
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'b * c' math operator with the 'a + b' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"patch": [
"diff --git a/anonymous-function.js b/anonymous-function.js",
"index e1de356c..4ca0d4c7 100644",
"--- a/anonymous-function.js",
"+++ b/anonymous-function.js",
"@@ -1,3 +1,3 @@",
"-function(b,c) { return b * c; }",
"+function(a,b) { return a + b; }",
" function(a,b) { return a + b; }",
" function(a,b) { return a + b; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "7ddd8785d6e38cad56d16ed74d198fec656089b0..4c312a59a025f5c94062fadafe07acb45f933136"
}
,{
"testCaseDescription": "javascript-anonymous-function-replacement-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
12
],
"end": [
1,
13
]
},
{
"start": [
1,
12
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'c' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
24
],
"end": [
1,
29
]
},
{
"start": [
1,
24
],
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'a + b' math operator with the 'b * c' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"patch": [
"diff --git a/anonymous-function.js b/anonymous-function.js",
"index 4ca0d4c7..e1de356c 100644",
"--- a/anonymous-function.js",
"+++ b/anonymous-function.js",
"@@ -1,3 +1,3 @@",
"-function(a,b) { return a + b; }",
"+function(b,c) { return b * c; }",
" function(a,b) { return a + b; }",
" function(a,b) { return a + b; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "4c312a59a025f5c94062fadafe07acb45f933136..c5dcab169edaa3ba486b292325a6b234760add52"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-replacement-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted an anonymous(b, c) function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Deleted an anonymous(a, b) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added an anonymous(b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"patch": [
"diff --git a/anonymous-function.js b/anonymous-function.js",
"index e1de356c..afdaccf7 100644",
"--- a/anonymous-function.js",
"+++ b/anonymous-function.js",
"@@ -1,3 +1,2 @@",
"-function(b,c) { return b * c; }",
"-function(a,b) { return a + b; }",
" function(a,b) { return a + b; }",
"+function(b,c) { return b * c; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c5dcab169edaa3ba486b292325a6b234760add52..92c048e16249b06d26f273d860f99d5e1e721898"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted an anonymous(a, b) function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"patch": [
"diff --git a/anonymous-function.js b/anonymous-function.js",
"index afdaccf7..9f1856f5 100644",
"--- a/anonymous-function.js",
"+++ b/anonymous-function.js",
"@@ -1,2 +1 @@",
"-function(a,b) { return a + b; }",
" function(b,c) { return b * c; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "92c048e16249b06d26f273d860f99d5e1e721898..92aa67dcc98d7cff48630de21b2ae90e23016864"
}
,{
"testCaseDescription": "javascript-anonymous-function-delete-rest-test",
"expectedResult": {
"changes": {
"anonymous-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted an anonymous(b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-function.js"
],
"patch": [
"diff --git a/anonymous-function.js b/anonymous-function.js",
"index 9f1856f5..e69de29b 100644",
"--- a/anonymous-function.js",
"+++ b/anonymous-function.js",
"@@ -1 +0,0 @@",
"-function(b,c) { return b * c; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "92aa67dcc98d7cff48630de21b2ae90e23016864..0e4c9734db1c092af9f580c47577a13276fd2d63"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-anonymous-parameterless-function-insert-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
28
]
}
},
"summary": "Added an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"patch": [
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
"index e69de29b..4a26ae86 100644",
"--- a/anonymous-parameterless-function.js",
"+++ b/anonymous-parameterless-function.js",
"@@ -0,0 +1 @@",
"+function() { return 'hi'; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "0e4c9734db1c092af9f580c47577a13276fd2d63..1478dafa4540a58004a1bc6fe4bf7f6b7016fc49"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-replacement-insert-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Added an anonymous() function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
28
]
}
},
"summary": "Added an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"patch": [
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
"index 4a26ae86..c31dd4b7 100644",
"--- a/anonymous-parameterless-function.js",
"+++ b/anonymous-parameterless-function.js",
"@@ -1 +1,3 @@",
"+function() { return 'hello'; }",
"+function() { return 'hi'; }",
" function() { return 'hi'; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1478dafa4540a58004a1bc6fe4bf7f6b7016fc49..9a961f711a4722fde5ea906361a211f1459898e7"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-insert-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"end": [
1,
28
]
},
{
"start": [
1,
21
],
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'hello' string with the 'hi' string"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"patch": [
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
"index c31dd4b7..6b1efa42 100644",
"--- a/anonymous-parameterless-function.js",
"+++ b/anonymous-parameterless-function.js",
"@@ -1,3 +1,3 @@",
"-function() { return 'hello'; }",
"+function() { return 'hi'; }",
" function() { return 'hi'; }",
" function() { return 'hi'; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9a961f711a4722fde5ea906361a211f1459898e7..4d15ceddf7ed4656ebf9e546241987bc060c140d"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-replacement-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"end": [
1,
25
]
},
{
"start": [
1,
21
],
"end": [
1,
28
]
}
]
},
"summary": "Replaced the 'hi' string with the 'hello' string"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"patch": [
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
"index 6b1efa42..c31dd4b7 100644",
"--- a/anonymous-parameterless-function.js",
"+++ b/anonymous-parameterless-function.js",
"@@ -1,3 +1,3 @@",
"-function() { return 'hi'; }",
"+function() { return 'hello'; }",
" function() { return 'hi'; }",
" function() { return 'hi'; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "4d15ceddf7ed4656ebf9e546241987bc060c140d..fb664180676f7986ca24ac5d5d971b50926ff142"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-replacement-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous() function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
28
]
}
},
"summary": "Deleted an anonymous() function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
31
]
}
},
"summary": "Added an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"patch": [
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
"index c31dd4b7..b8e05c0e 100644",
"--- a/anonymous-parameterless-function.js",
"+++ b/anonymous-parameterless-function.js",
"@@ -1,3 +1,2 @@",
"-function() { return 'hello'; }",
"-function() { return 'hi'; }",
" function() { return 'hi'; }",
"+function() { return 'hello'; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fb664180676f7986ca24ac5d5d971b50926ff142..5c6a962b790676d66ca6c64cfb22ca8f30c4e7cd"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
28
]
}
},
"summary": "Deleted an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"patch": [
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
"index b8e05c0e..ce1ef833 100644",
"--- a/anonymous-parameterless-function.js",
"+++ b/anonymous-parameterless-function.js",
"@@ -1,2 +1 @@",
"-function() { return 'hi'; }",
" function() { return 'hello'; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "5c6a962b790676d66ca6c64cfb22ca8f30c4e7cd..15da20d28acd6abc6d8426e8aef3a0b5303efe65"
}
,{
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-rest-test",
"expectedResult": {
"changes": {
"anonymous-parameterless-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"anonymous-parameterless-function.js"
],
"patch": [
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
"index ce1ef833..e69de29b 100644",
"--- a/anonymous-parameterless-function.js",
"+++ b/anonymous-parameterless-function.js",
"@@ -1 +0,0 @@",
"-function() { return 'hello'; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "15da20d28acd6abc6d8426e8aef3a0b5303efe65..000409c2e911d6dfdeffbe87b32d1740473d1424"
}]

View File

@ -1,323 +0,0 @@
[{
"testCaseDescription": "javascript-array-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
12
]
}
},
"summary": "Added the '[ \"item1\" ]' array"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index e69de29b..33355825 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -0,0 +1 @@",
"+[ \"item1\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "254469e126d04bef42017691cd2ae61c3c504471..670f160d10666224e22aae55bd8e4818d9e6ac79"
}
,{
"testCaseDescription": "javascript-array-replacement-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Added the '[ \"item1\", \"item2\" ]' array"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
12
]
}
},
"summary": "Added the '[ \"item1\" ]' array"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index 33355825..cf37d7c1 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1 +1,3 @@",
"+[ \"item1\", \"item2\" ];",
"+[ \"item1\" ];",
" [ \"item1\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "670f160d10666224e22aae55bd8e4818d9e6ac79..9c3f74d4722f9b71926881a177c51b6ecf0c0b1e"
}
,{
"testCaseDescription": "javascript-array-delete-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
12
],
"end": [
1,
19
]
}
},
"summary": "Deleted the \"item2\" string"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index cf37d7c1..c2cb17fa 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,3 +1,3 @@",
"-[ \"item1\", \"item2\" ];",
"+[ \"item1\" ];",
" [ \"item1\" ];",
" [ \"item1\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9c3f74d4722f9b71926881a177c51b6ecf0c0b1e..c383e7992378764d6b3aee436060569cdfc607e4"
}
,{
"testCaseDescription": "javascript-array-replacement-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
12
],
"end": [
1,
19
]
}
},
"summary": "Added the \"item2\" string"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index c2cb17fa..cf37d7c1 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,3 +1,3 @@",
"-[ \"item1\" ];",
"+[ \"item1\", \"item2\" ];",
" [ \"item1\" ];",
" [ \"item1\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c383e7992378764d6b3aee436060569cdfc607e4..c010cde8590b022ef8a24f4cc1c549c9add91684"
}
,{
"testCaseDescription": "javascript-array-delete-replacement-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
12
]
}
},
"summary": "Deleted the '[ \"item1\" ]' array"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Added the '[ \"item1\", \"item2\" ]' array"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index cf37d7c1..a4d92b81 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,3 +1,2 @@",
"-[ \"item1\", \"item2\" ];",
"-[ \"item1\" ];",
" [ \"item1\" ];",
"+[ \"item1\", \"item2\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c010cde8590b022ef8a24f4cc1c549c9add91684..84bb3f8207324432decff2fed4309553b1035492"
}
,{
"testCaseDescription": "javascript-array-delete-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
12
]
}
},
"summary": "Deleted the '[ \"item1\" ]' array"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index a4d92b81..7f2f50e6 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1,2 +1 @@",
"-[ \"item1\" ];",
" [ \"item1\", \"item2\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "84bb3f8207324432decff2fed4309553b1035492..c1f1d4f8ac9cd0510d4fc6b90f6761f76894d581"
}
,{
"testCaseDescription": "javascript-array-delete-rest-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"patch": [
"diff --git a/array.js b/array.js",
"index 7f2f50e6..e69de29b 100644",
"--- a/array.js",
"+++ b/array.js",
"@@ -1 +0,0 @@",
"-[ \"item1\", \"item2\" ];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c1f1d4f8ac9cd0510d4fc6b90f6761f76894d581..2be4c53970c1476bbb354be878424d6aec954c3b"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-arrow-function-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index e69de29b..9ef167c0 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -0,0 +1 @@",
"+(f, g) => { return h; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3db5e012ed131477f930a3f737f9f525618c5e14..6a63b65f961a294b571c238184f7c34daec739e6"
}
,{
"testCaseDescription": "javascript-arrow-function-replacement-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index 9ef167c0..92dea6fa 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1 +1,3 @@",
"+(f, g) => { return g; };",
"+(f, g) => { return h; };",
" (f, g) => { return h; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "6a63b65f961a294b571c238184f7c34daec739e6..702a81b029e71195108ffa88cd86cc0cb8a0bfc0"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-insert-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'g' identifier with the 'h' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index 92dea6fa..8f5bb516 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1,3 +1,3 @@",
"-(f, g) => { return g; };",
"+(f, g) => { return h; };",
" (f, g) => { return h; };",
" (f, g) => { return h; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "702a81b029e71195108ffa88cd86cc0cb8a0bfc0..a24d1deb73b7af18a6c225d96549b590596f169f"
}
,{
"testCaseDescription": "javascript-arrow-function-replacement-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'g' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index 8f5bb516..92dea6fa 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1,3 +1,3 @@",
"-(f, g) => { return h; };",
"+(f, g) => { return g; };",
" (f, g) => { return h; };",
" (f, g) => { return h; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "a24d1deb73b7af18a6c225d96549b590596f169f..75e113c5abb973a7a9ec9466a2282bece2e96909"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-replacement-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Added an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index 92dea6fa..acab9a9c 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1,3 +1,2 @@",
"-(f, g) => { return g; };",
"-(f, g) => { return h; };",
" (f, g) => { return h; };",
"+(f, g) => { return g; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "75e113c5abb973a7a9ec9466a2282bece2e96909..a814aa38486e618d9e7fb057bb85b09d3ec74f82"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index acab9a9c..ef1be25b 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1,2 +1 @@",
"-(f, g) => { return h; };",
" (f, g) => { return g; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "a814aa38486e618d9e7fb057bb85b09d3ec74f82..ddbacd0eb735177ab19205ae3505ba26d186b799"
}
,{
"testCaseDescription": "javascript-arrow-function-delete-rest-test",
"expectedResult": {
"changes": {
"arrow-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted an anonymous(f, g) function"
}
]
},
"errors": {}
},
"filePaths": [
"arrow-function.js"
],
"patch": [
"diff --git a/arrow-function.js b/arrow-function.js",
"index ef1be25b..e69de29b 100644",
"--- a/arrow-function.js",
"+++ b/arrow-function.js",
"@@ -1 +0,0 @@",
"-(f, g) => { return g; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ddbacd0eb735177ab19205ae3505ba26d186b799..d8102af2a206032f1800de2be9ffff6d65b2efeb"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-assignment-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"patch": [
"diff --git a/assignment.js b/assignment.js",
"index e69de29b..6882fe5e 100644",
"--- a/assignment.js",
"+++ b/assignment.js",
"@@ -0,0 +1 @@",
"+x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "4ef69625070791efda498ad25dd15ea404e80a0a..b9a6308372b5aaf6eabca535ef6158d3ed8fc0e9"
}
,{
"testCaseDescription": "javascript-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Added the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"patch": [
"diff --git a/assignment.js b/assignment.js",
"index 6882fe5e..fb4cba44 100644",
"--- a/assignment.js",
"+++ b/assignment.js",
"@@ -1 +1,3 @@",
"+x = 1;",
"+x = 0;",
" x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b9a6308372b5aaf6eabca535ef6158d3ed8fc0e9..0460e4c7de35b264f7b03db34af368f6d75ae49b"
}
,{
"testCaseDescription": "javascript-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced '1' with '0' in an assignment to x"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"patch": [
"diff --git a/assignment.js b/assignment.js",
"index fb4cba44..42e16c61 100644",
"--- a/assignment.js",
"+++ b/assignment.js",
"@@ -1,3 +1,3 @@",
"-x = 1;",
"+x = 0;",
" x = 0;",
" x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "0460e4c7de35b264f7b03db34af368f6d75ae49b..c9576ab72226a38fdeb1f1e181722a78903e42eb"
}
,{
"testCaseDescription": "javascript-assignment-replacement-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced '0' with '1' in an assignment to x"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"patch": [
"diff --git a/assignment.js b/assignment.js",
"index 42e16c61..fb4cba44 100644",
"--- a/assignment.js",
"+++ b/assignment.js",
"@@ -1,3 +1,3 @@",
"-x = 0;",
"+x = 1;",
" x = 0;",
" x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c9576ab72226a38fdeb1f1e181722a78903e42eb..2341b3a2cec8f24d470d53358886e656f66cb0b3"
}
,{
"testCaseDescription": "javascript-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Deleted the 'x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Added the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"patch": [
"diff --git a/assignment.js b/assignment.js",
"index fb4cba44..11fe15d7 100644",
"--- a/assignment.js",
"+++ b/assignment.js",
"@@ -1,3 +1,2 @@",
"-x = 1;",
"-x = 0;",
" x = 0;",
"+x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2341b3a2cec8f24d470d53358886e656f66cb0b3..67b60a436662860cd1d2d24fe15b2948f639b51c"
}
,{
"testCaseDescription": "javascript-assignment-delete-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"patch": [
"diff --git a/assignment.js b/assignment.js",
"index 11fe15d7..198b8f89 100644",
"--- a/assignment.js",
"+++ b/assignment.js",
"@@ -1,2 +1 @@",
"-x = 0;",
" x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "67b60a436662860cd1d2d24fe15b2948f639b51c..102b601a22e37cddcd6c6b75339abaf506498cb5"
}
,{
"testCaseDescription": "javascript-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"patch": [
"diff --git a/assignment.js b/assignment.js",
"index 198b8f89..e69de29b 100644",
"--- a/assignment.js",
"+++ b/assignment.js",
"@@ -1 +0,0 @@",
"-x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "102b601a22e37cddcd6c6b75339abaf506498cb5..38c5c9b8a781f4e7cc4870b14cf6308c470f3429"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-bitwise-operator-insert-test",
"expectedResult": {
"changes": {
"bitwise-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'i >> j' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.js"
],
"patch": [
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
"index e69de29b..021cf6ad 100644",
"--- a/bitwise-operator.js",
"+++ b/bitwise-operator.js",
"@@ -0,0 +1 @@",
"+i >> j;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fc97776c88bbf1e3ca3b131c922d52cdd145c310..1499ca92572fbfab835c438a62ac45445273af8d"
}
,{
"testCaseDescription": "javascript-bitwise-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"bitwise-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'i >> k' bitwise operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'i >> j' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.js"
],
"patch": [
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
"index 021cf6ad..3e0b6c17 100644",
"--- a/bitwise-operator.js",
"+++ b/bitwise-operator.js",
"@@ -1 +1,3 @@",
"+i >> k;",
"+i >> j;",
" i >> j;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1499ca92572fbfab835c438a62ac45445273af8d..aa55583127a8e2d320cb0966cb4d1451a25ba4b5"
}
,{
"testCaseDescription": "javascript-bitwise-operator-delete-insert-test",
"expectedResult": {
"changes": {
"bitwise-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'k' identifier with the 'j' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.js"
],
"patch": [
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
"index 3e0b6c17..18853d16 100644",
"--- a/bitwise-operator.js",
"+++ b/bitwise-operator.js",
"@@ -1,3 +1,3 @@",
"-i >> k;",
"+i >> j;",
" i >> j;",
" i >> j;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "aa55583127a8e2d320cb0966cb4d1451a25ba4b5..af00398d70cb44febe7b557a0e8bb92974ca66fb"
}
,{
"testCaseDescription": "javascript-bitwise-operator-replacement-test",
"expectedResult": {
"changes": {
"bitwise-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'j' identifier with the 'k' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.js"
],
"patch": [
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
"index 18853d16..3e0b6c17 100644",
"--- a/bitwise-operator.js",
"+++ b/bitwise-operator.js",
"@@ -1,3 +1,3 @@",
"-i >> j;",
"+i >> k;",
" i >> j;",
" i >> j;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "af00398d70cb44febe7b557a0e8bb92974ca66fb..c423472d55b5ab222dd1923c5b1359c06b0d495c"
}
,{
"testCaseDescription": "javascript-bitwise-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"bitwise-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'i >> k' bitwise operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'i >> j' bitwise operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'i >> k' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.js"
],
"patch": [
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
"index 3e0b6c17..ee7d8dec 100644",
"--- a/bitwise-operator.js",
"+++ b/bitwise-operator.js",
"@@ -1,3 +1,2 @@",
"-i >> k;",
"-i >> j;",
" i >> j;",
"+i >> k;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c423472d55b5ab222dd1923c5b1359c06b0d495c..755971e5c73b8f1102f7e906704bdb279fa8c66d"
}
,{
"testCaseDescription": "javascript-bitwise-operator-delete-test",
"expectedResult": {
"changes": {
"bitwise-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'i >> j' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.js"
],
"patch": [
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
"index ee7d8dec..2800c8c8 100644",
"--- a/bitwise-operator.js",
"+++ b/bitwise-operator.js",
"@@ -1,2 +1 @@",
"-i >> j;",
" i >> k;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "755971e5c73b8f1102f7e906704bdb279fa8c66d..d467ba370d836e8176d765668b80946ff56de095"
}
,{
"testCaseDescription": "javascript-bitwise-operator-delete-rest-test",
"expectedResult": {
"changes": {
"bitwise-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'i >> k' bitwise operator"
}
]
},
"errors": {}
},
"filePaths": [
"bitwise-operator.js"
],
"patch": [
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
"index 2800c8c8..e69de29b 100644",
"--- a/bitwise-operator.js",
"+++ b/bitwise-operator.js",
"@@ -1 +0,0 @@",
"-i >> k;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d467ba370d836e8176d765668b80946ff56de095..389d96d89899599c19ba846b326ad23bd0ebf628"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-boolean-operator-insert-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'i || j' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index e69de29b..7280a98c 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -0,0 +1 @@",
"+i || j;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3f6c1b75b51ab00da9af216249484caf26091581..b3a7123cfa8717ab1cd8269825fedd198e27716a"
}
,{
"testCaseDescription": "javascript-boolean-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'i && j' boolean operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'i || j' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index 7280a98c..fe3f3064 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1 +1,3 @@",
"+i && j;",
"+i || j;",
" i || j;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b3a7123cfa8717ab1cd8269825fedd198e27716a..52fd40dee217558ad728eb46617ff6eef9420d2f"
}
,{
"testCaseDescription": "javascript-boolean-operator-delete-insert-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'i && j' boolean operator with the 'i || j' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index fe3f3064..273c0ee8 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1,3 +1,3 @@",
"-i && j;",
"+i || j;",
" i || j;",
" i || j;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "52fd40dee217558ad728eb46617ff6eef9420d2f..01acee6cb2acfccc96c1a00efd6f1c42e6dab8b7"
}
,{
"testCaseDescription": "javascript-boolean-operator-replacement-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'i || j' boolean operator with the 'i && j' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index 273c0ee8..fe3f3064 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1,3 +1,3 @@",
"-i || j;",
"+i && j;",
" i || j;",
" i || j;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "01acee6cb2acfccc96c1a00efd6f1c42e6dab8b7..132d025f4c04e19cde7d6031e225acbc03e251c2"
}
,{
"testCaseDescription": "javascript-boolean-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'i && j' boolean operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'i || j' boolean operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'i && j' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index fe3f3064..7f4873c1 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1,3 +1,2 @@",
"-i && j;",
"-i || j;",
" i || j;",
"+i && j;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "132d025f4c04e19cde7d6031e225acbc03e251c2..6d6fe2a9fffc08d3340d2781a8e85b854065d744"
}
,{
"testCaseDescription": "javascript-boolean-operator-delete-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'i || j' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index 7f4873c1..c6921d12 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1,2 +1 @@",
"-i || j;",
" i && j;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "6d6fe2a9fffc08d3340d2781a8e85b854065d744..02ec40bd979d702e89a628e0e7c5f279a53af17e"
}
,{
"testCaseDescription": "javascript-boolean-operator-delete-rest-test",
"expectedResult": {
"changes": {
"boolean-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'i && j' boolean operator"
}
]
},
"errors": {}
},
"filePaths": [
"boolean-operator.js"
],
"patch": [
"diff --git a/boolean-operator.js b/boolean-operator.js",
"index c6921d12..e69de29b 100644",
"--- a/boolean-operator.js",
"+++ b/boolean-operator.js",
"@@ -1 +0,0 @@",
"-i && j;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "02ec40bd979d702e89a628e0e7c5f279a53af17e..fc97776c88bbf1e3ca3b131c922d52cdd145c310"
}]

View File

@ -1,292 +0,0 @@
[{
"testCaseDescription": "javascript-break-setup-test",
"expectedResult": {
"changes": {
"break.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
50
]
}
},
"summary": "Added the 'i = 0; i < 10; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"break.js"
],
"patch": [
"diff --git a/break.js b/break.js",
"index e69de29b..3f583e3d 100644",
"--- a/break.js",
"+++ b/break.js",
"@@ -0,0 +1 @@",
"+for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9ab4bb09dfbde3a5662c1756a7139a8726a32035..1dfeb3228bb095f82f22289ee66dc313d3183389"
}
,{
"testCaseDescription": "javascript-break-insert-test",
"expectedResult": {
"changes": {
"break.js": [
{
"span": {
"insert": {
"start": [
1,
43
],
"end": [
1,
49
]
}
},
"summary": "Added a break statement in the 'i === 4' if statement"
},
{
"span": {
"delete": {
"start": [
1,
41
],
"end": [
1,
45
]
}
},
"summary": "Deleted the '{ }' object in the 'i === 4' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"break.js"
],
"patch": [
"diff --git a/break.js b/break.js",
"index 3f583e3d..629dfa91 100644",
"--- a/break.js",
"+++ b/break.js",
"@@ -1 +1 @@",
"-for (i = 0; i < 10; i++) { if (i === 4) { }; i }",
"+for (i = 0; i < 10; i++) { if (i === 4) { break; }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1dfeb3228bb095f82f22289ee66dc313d3183389..2489e31c4c3144e38a9281c58aa8f4c8f80ba608"
}
,{
"testCaseDescription": "javascript-break-replacement-test",
"expectedResult": {
"changes": {
"break.js": [
{
"span": {
"insert": {
"start": [
1,
43
],
"end": [
1,
52
]
}
},
"summary": "Added a continue statement in the 'i === 4' if statement"
},
{
"span": {
"delete": {
"start": [
1,
43
],
"end": [
1,
49
]
}
},
"summary": "Deleted a break statement in the 'i === 4' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"break.js"
],
"patch": [
"diff --git a/break.js b/break.js",
"index 629dfa91..16ebcc57 100644",
"--- a/break.js",
"+++ b/break.js",
"@@ -1 +1 @@",
"-for (i = 0; i < 10; i++) { if (i === 4) { break; }; i }",
"+for (i = 0; i < 10; i++) { if (i === 4) { continue; }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2489e31c4c3144e38a9281c58aa8f4c8f80ba608..9d5026a7505cf4df97e5be082148333076715f07"
}
,{
"testCaseDescription": "javascript-break-delete-replacement-test",
"expectedResult": {
"changes": {
"break.js": [
{
"span": {
"insert": {
"start": [
1,
43
],
"end": [
1,
49
]
}
},
"summary": "Added a break statement in the 'i === 4' if statement"
},
{
"span": {
"delete": {
"start": [
1,
43
],
"end": [
1,
52
]
}
},
"summary": "Deleted a continue statement in the 'i === 4' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"break.js"
],
"patch": [
"diff --git a/break.js b/break.js",
"index 16ebcc57..629dfa91 100644",
"--- a/break.js",
"+++ b/break.js",
"@@ -1 +1 @@",
"-for (i = 0; i < 10; i++) { if (i === 4) { continue; }; i }",
"+for (i = 0; i < 10; i++) { if (i === 4) { break; }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9d5026a7505cf4df97e5be082148333076715f07..9037251cac657851027bb652a91f5cbabf062cac"
}
,{
"testCaseDescription": "javascript-break-delete-insert-test",
"expectedResult": {
"changes": {
"break.js": [
{
"span": {
"insert": {
"start": [
1,
41
],
"end": [
1,
45
]
}
},
"summary": "Added the '{ }' object in the 'i === 4' if statement"
},
{
"span": {
"delete": {
"start": [
1,
43
],
"end": [
1,
49
]
}
},
"summary": "Deleted a break statement in the 'i === 4' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"break.js"
],
"patch": [
"diff --git a/break.js b/break.js",
"index 629dfa91..3f583e3d 100644",
"--- a/break.js",
"+++ b/break.js",
"@@ -1 +1 @@",
"-for (i = 0; i < 10; i++) { if (i === 4) { break; }; i }",
"+for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9037251cac657851027bb652a91f5cbabf062cac..025604923f251a5f1eca403379317f5c69ee5658"
}
,{
"testCaseDescription": "javascript-break-teardown-test",
"expectedResult": {
"changes": {
"break.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
50
]
}
},
"summary": "Deleted the 'i = 0; i < 10; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"break.js"
],
"patch": [
"diff --git a/break.js b/break.js",
"index 3f583e3d..e69de29b 100644",
"--- a/break.js",
"+++ b/break.js",
"@@ -1 +0,0 @@",
"-for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "025604923f251a5f1eca403379317f5c69ee5658..beee7c2b7123a5e4c67865c63ebe928135866f4b"
}]

View File

@ -1,455 +0,0 @@
[{
"testCaseDescription": "javascript-chained-callbacks-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
39
]
}
},
"summary": "Added the 'this.map(…)' function call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"patch": [
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
"index e69de29b..ce9ee1ed 100644",
"--- a/chained-callbacks.js",
"+++ b/chained-callbacks.js",
"@@ -0,0 +1 @@",
"+this.map(function (a) { return a.b; })"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1e602069d5ddaf5c7680a54f3807ea0f50c1397d..5e6180fe2edf6de06e8cde81614fff1a2e3b8109"
}
,{
"testCaseDescription": "javascript-chained-callbacks-replacement-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Added the 'this.reduce(…)' function call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
39
]
}
},
"summary": "Added the 'this.map(…)' function call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"patch": [
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
"index ce9ee1ed..acba744a 100644",
"--- a/chained-callbacks.js",
"+++ b/chained-callbacks.js",
"@@ -1 +1,3 @@",
"+this.reduce(function (a) { return b.a; })",
"+this.map(function (a) { return a.b; })",
" this.map(function (a) { return a.b; })"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "5e6180fe2edf6de06e8cde81614fff1a2e3b8109..20176385285b829a0d3e1d40913c7adf6689dc26"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-insert-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
12
]
},
{
"start": [
1,
6
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'reduce' identifier with the 'map' identifier in the this.map(…) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
35
],
"end": [
1,
36
]
},
{
"start": [
1,
32
],
"end": [
1,
33
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.map(…) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
37
],
"end": [
1,
38
]
},
{
"start": [
1,
34
],
"end": [
1,
35
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.map(…) function call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"patch": [
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
"index acba744a..73905343 100644",
"--- a/chained-callbacks.js",
"+++ b/chained-callbacks.js",
"@@ -1,3 +1,3 @@",
"-this.reduce(function (a) { return b.a; })",
"+this.map(function (a) { return a.b; })",
" this.map(function (a) { return a.b; })",
" this.map(function (a) { return a.b; })"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "20176385285b829a0d3e1d40913c7adf6689dc26..255340514600e343c56b24a9f64ad45aa4fbf0d5"
}
,{
"testCaseDescription": "javascript-chained-callbacks-replacement-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
9
]
},
{
"start": [
1,
6
],
"end": [
1,
12
]
}
]
},
"summary": "Replaced the 'map' identifier with the 'reduce' identifier in the this.reduce(…) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
32
],
"end": [
1,
33
]
},
{
"start": [
1,
35
],
"end": [
1,
36
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.reduce(…) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
34
],
"end": [
1,
35
]
},
{
"start": [
1,
37
],
"end": [
1,
38
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.reduce(…) function call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"patch": [
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
"index 73905343..acba744a 100644",
"--- a/chained-callbacks.js",
"+++ b/chained-callbacks.js",
"@@ -1,3 +1,3 @@",
"-this.map(function (a) { return a.b; })",
"+this.reduce(function (a) { return b.a; })",
" this.map(function (a) { return a.b; })",
" this.map(function (a) { return a.b; })"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "255340514600e343c56b24a9f64ad45aa4fbf0d5..98dec71fd2b23d0584534d0a4bf930971b997e55"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-replacement-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'this.reduce(…)' function call"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
39
]
}
},
"summary": "Deleted the 'this.map(…)' function call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Added the 'this.reduce(…)' function call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"patch": [
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
"index acba744a..c4db4326 100644",
"--- a/chained-callbacks.js",
"+++ b/chained-callbacks.js",
"@@ -1,3 +1,2 @@",
"-this.reduce(function (a) { return b.a; })",
"-this.map(function (a) { return a.b; })",
" this.map(function (a) { return a.b; })",
"+this.reduce(function (a) { return b.a; })"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "98dec71fd2b23d0584534d0a4bf930971b997e55..727a92f861cd52e3c74409c4590c0710e1ba2aa1"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
39
]
}
},
"summary": "Deleted the 'this.map(…)' function call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"patch": [
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
"index c4db4326..e5934198 100644",
"--- a/chained-callbacks.js",
"+++ b/chained-callbacks.js",
"@@ -1,2 +1 @@",
"-this.map(function (a) { return a.b; })",
" this.reduce(function (a) { return b.a; })"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "727a92f861cd52e3c74409c4590c0710e1ba2aa1..fb57493f88437cf42a77bcbe9cdc0f7fec4760a9"
}
,{
"testCaseDescription": "javascript-chained-callbacks-delete-rest-test",
"expectedResult": {
"changes": {
"chained-callbacks.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'this.reduce(…)' function call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-callbacks.js"
],
"patch": [
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
"index e5934198..e69de29b 100644",
"--- a/chained-callbacks.js",
"+++ b/chained-callbacks.js",
"@@ -1 +0,0 @@",
"-this.reduce(function (a) { return b.a; })"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fb57493f88437cf42a77bcbe9cdc0f7fec4760a9..28f109decac7a1c87036b0de6ddae80ed15ba2a1"
}]

View File

@ -1,401 +0,0 @@
[{
"testCaseDescription": "javascript-chained-property-access-insert-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Added the 'returned.promise().done( newDefer.resolve ).fail( newDefer.reject )' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"patch": [
"diff --git a/chained-property-access.js b/chained-property-access.js",
"index e69de29b..5914a55c 100644",
"--- a/chained-property-access.js",
"+++ b/chained-property-access.js",
"@@ -0,0 +1 @@",
"+return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "789ce31e3d1a7475a43b8d90357fa2732e9e0f2a..e06131d6b7f59a737be755d94d3fe5ec5695be7c"
}
,{
"testCaseDescription": "javascript-chained-property-access-replacement-insert-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Added the 'returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )' return statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Added the 'returned.promise().done( newDefer.resolve ).fail( newDefer.reject )' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"patch": [
"diff --git a/chained-property-access.js b/chained-property-access.js",
"index 5914a55c..70959766 100644",
"--- a/chained-property-access.js",
"+++ b/chained-property-access.js",
"@@ -1 +1,3 @@",
"+return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
"+return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "e06131d6b7f59a737be755d94d3fe5ec5695be7c..284b668373f6dbc4901b13fddaf2e1c14aa19ac3"
}
,{
"testCaseDescription": "javascript-chained-property-access-delete-insert-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
33
],
"end": [
1,
43
]
},
{
"start": [
1,
33
],
"end": [
1,
41
]
}
]
},
"summary": "Replaced the 'otherDefer' identifier with the 'newDefer' identifier in the returned.promise().done(…) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
60
],
"end": [
1,
70
]
},
{
"start": [
1,
58
],
"end": [
1,
66
]
}
]
},
"summary": "Replaced the 'otherDefer' identifier with the 'newDefer' identifier in the returned.promise().done(…).fail(…) function call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"patch": [
"diff --git a/chained-property-access.js b/chained-property-access.js",
"index 70959766..98df938b 100644",
"--- a/chained-property-access.js",
"+++ b/chained-property-access.js",
"@@ -1,3 +1,3 @@",
"-return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
"+return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "284b668373f6dbc4901b13fddaf2e1c14aa19ac3..9dac7c2b426d6ce48b3f0e3131544e28d1738e18"
}
,{
"testCaseDescription": "javascript-chained-property-access-replacement-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
33
],
"end": [
1,
41
]
},
{
"start": [
1,
33
],
"end": [
1,
43
]
}
]
},
"summary": "Replaced the 'newDefer' identifier with the 'otherDefer' identifier in the returned.promise().done(…) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
58
],
"end": [
1,
66
]
},
{
"start": [
1,
60
],
"end": [
1,
70
]
}
]
},
"summary": "Replaced the 'newDefer' identifier with the 'otherDefer' identifier in the returned.promise().done(…).fail(…) function call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"patch": [
"diff --git a/chained-property-access.js b/chained-property-access.js",
"index 98df938b..70959766 100644",
"--- a/chained-property-access.js",
"+++ b/chained-property-access.js",
"@@ -1,3 +1,3 @@",
"-return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
"+return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9dac7c2b426d6ce48b3f0e3131544e28d1738e18..7e6064e2d36a44f31ca68f628ec894eb716bf7b9"
}
,{
"testCaseDescription": "javascript-chained-property-access-delete-replacement-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Deleted the 'returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )' return statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Deleted the 'returned.promise().done( newDefer.resolve ).fail( newDefer.reject )' return statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Added the 'returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"patch": [
"diff --git a/chained-property-access.js b/chained-property-access.js",
"index 70959766..7b764ca9 100644",
"--- a/chained-property-access.js",
"+++ b/chained-property-access.js",
"@@ -1,3 +1,2 @@",
"-return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
"-return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
"+return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "7e6064e2d36a44f31ca68f628ec894eb716bf7b9..fb5e4b62aca7179b890dc4b5e4e93b1a38da8b42"
}
,{
"testCaseDescription": "javascript-chained-property-access-delete-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Deleted the 'returned.promise().done( newDefer.resolve ).fail( newDefer.reject )' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"patch": [
"diff --git a/chained-property-access.js b/chained-property-access.js",
"index 7b764ca9..5d6d3a02 100644",
"--- a/chained-property-access.js",
"+++ b/chained-property-access.js",
"@@ -1,2 +1 @@",
"-return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
" return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fb5e4b62aca7179b890dc4b5e4e93b1a38da8b42..d69d5b642605a0ae422260b2a9359c58925a6691"
}
,{
"testCaseDescription": "javascript-chained-property-access-delete-rest-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Deleted the 'returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"patch": [
"diff --git a/chained-property-access.js b/chained-property-access.js",
"index 5d6d3a02..e69de29b 100644",
"--- a/chained-property-access.js",
"+++ b/chained-property-access.js",
"@@ -1 +0,0 @@",
"-return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d69d5b642605a0ae422260b2a9359c58925a6691..1e602069d5ddaf5c7680a54f3807ea0f50c1397d"
}]

View File

@ -1,455 +0,0 @@
[{
"testCaseDescription": "javascript-class-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
87
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"patch": [
"diff --git a/class.js b/class.js",
"index e69de29b..8f6ae64d 100644",
"--- a/class.js",
"+++ b/class.js",
"@@ -0,0 +1 @@",
"+class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "44ab56bc4e78762b4754c401e610d9e8da5069d9..edc06f926f7662e0a561b9cc2249b3343e891387"
}
,{
"testCaseDescription": "javascript-class-replacement-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Added the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
87
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"patch": [
"diff --git a/class.js b/class.js",
"index 8f6ae64d..b509437f 100644",
"--- a/class.js",
"+++ b/class.js",
"@@ -1 +1,3 @@",
"+class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }",
"+class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "edc06f926f7662e0a561b9cc2249b3343e891387..43dbe14a7cd7ad9c1702207ce7659e2b7a1c45cf"
}
,{
"testCaseDescription": "javascript-class-delete-insert-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'one' identifier in the 'one(a)' method of the 'Foo' class"
},
{
"span": {
"replace": [
{
"start": [
1,
42
],
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'two' identifier in the 'two(b)' method of the 'Foo' class"
},
{
"span": {
"replace": [
{
"start": [
1,
63
],
"end": [
1,
66
]
},
{
"start": [
1,
63
],
"end": [
1,
68
]
}
]
},
"summary": "Replaced the 'baz' identifier with the 'three' identifier in the 'three(c)' method of the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"patch": [
"diff --git a/class.js b/class.js",
"index b509437f..c4f5c91c 100644",
"--- a/class.js",
"+++ b/class.js",
"@@ -1,3 +1,3 @@",
"-class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }",
"+class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "43dbe14a7cd7ad9c1702207ce7659e2b7a1c45cf..c502ad0ea48e29a52fc17649a80cc9461e1927cd"
}
,{
"testCaseDescription": "javascript-class-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
23
]
},
{
"start": [
1,
20
],
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'foo' identifier in the 'foo(a)' method of the 'Foo' class"
},
{
"span": {
"replace": [
{
"start": [
1,
42
],
"end": [
1,
45
]
},
{
"start": [
1,
42
],
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'bar' identifier in the 'bar(b)' method of the 'Foo' class"
},
{
"span": {
"replace": [
{
"start": [
1,
63
],
"end": [
1,
68
]
},
{
"start": [
1,
63
],
"end": [
1,
66
]
}
]
},
"summary": "Replaced the 'three' identifier with the 'baz' identifier in the 'baz(c)' method of the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"patch": [
"diff --git a/class.js b/class.js",
"index c4f5c91c..b509437f 100644",
"--- a/class.js",
"+++ b/class.js",
"@@ -1,3 +1,3 @@",
"-class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
"+class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }",
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c502ad0ea48e29a52fc17649a80cc9461e1927cd..bd3c667c5a9d9405597d2c2b6038d8d937ea4591"
}
,{
"testCaseDescription": "javascript-class-delete-replacement-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
87
]
}
},
"summary": "Deleted the 'Foo' class"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
85
]
}
},
"summary": "Added the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"patch": [
"diff --git a/class.js b/class.js",
"index b509437f..b1ef404f 100644",
"--- a/class.js",
"+++ b/class.js",
"@@ -1,3 +1,2 @@",
"-class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }",
"-class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
"+class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "bd3c667c5a9d9405597d2c2b6038d8d937ea4591..1a5efc171f2d7f8f349b1f7d64617f3ae9d97002"
}
,{
"testCaseDescription": "javascript-class-delete-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
87
]
}
},
"summary": "Deleted the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"patch": [
"diff --git a/class.js b/class.js",
"index b1ef404f..2c17f72f 100644",
"--- a/class.js",
"+++ b/class.js",
"@@ -1,2 +1 @@",
"-class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
" class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1a5efc171f2d7f8f349b1f7d64617f3ae9d97002..307f479c5cbd91928013cd254c2a31ab6d7f8658"
}
,{
"testCaseDescription": "javascript-class-delete-rest-test",
"expectedResult": {
"changes": {
"class.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
85
]
}
},
"summary": "Deleted the 'Foo' class"
}
]
},
"errors": {}
},
"filePaths": [
"class.js"
],
"patch": [
"diff --git a/class.js b/class.js",
"index 2c17f72f..e69de29b 100644",
"--- a/class.js",
"+++ b/class.js",
"@@ -1 +0,0 @@",
"-class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "307f479c5cbd91928013cd254c2a31ab6d7f8658..254469e126d04bef42017691cd2ae61c3c504471"
}]

View File

@ -1,443 +0,0 @@
[{
"testCaseDescription": "javascript-comma-operator-insert-test",
"expectedResult": {
"changes": {
"comma-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'a' assignment"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"end": [
1,
13
]
}
},
"summary": "Added the 'b' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"comma-operator.js"
],
"patch": [
"diff --git a/comma-operator.js b/comma-operator.js",
"index e69de29b..cff019f3 100644",
"--- a/comma-operator.js",
"+++ b/comma-operator.js",
"@@ -0,0 +1 @@",
"+a = 1, b = 2;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c746d23108ac9d5c3f3c54c2409565a484b5e709..ec615ca5aa41cefc2848e95f22d42e49cb9e1c2e"
}
,{
"testCaseDescription": "javascript-comma-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"comma-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
23
]
}
},
"summary": "Added the 'c' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Added the 'a' assignment"
},
{
"span": {
"insert": {
"start": [
2,
8
],
"end": [
2,
13
]
}
},
"summary": "Added the 'b' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"comma-operator.js"
],
"patch": [
"diff --git a/comma-operator.js b/comma-operator.js",
"index cff019f3..93ece10f 100644",
"--- a/comma-operator.js",
"+++ b/comma-operator.js",
"@@ -1 +1,3 @@",
"+c = {d: (3, 4 + 5, 6)};",
"+a = 1, b = 2;",
" a = 1, b = 2;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ec615ca5aa41cefc2848e95f22d42e49cb9e1c2e..462a29eab0d5612aa9c0351cea6625da33d511af"
}
,{
"testCaseDescription": "javascript-comma-operator-delete-insert-test",
"expectedResult": {
"changes": {
"comma-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'a' assignment"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"end": [
1,
13
]
}
},
"summary": "Added the 'b' assignment"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
23
]
}
},
"summary": "Deleted the 'c' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"comma-operator.js"
],
"patch": [
"diff --git a/comma-operator.js b/comma-operator.js",
"index 93ece10f..f738c2db 100644",
"--- a/comma-operator.js",
"+++ b/comma-operator.js",
"@@ -1,3 +1,3 @@",
"-c = {d: (3, 4 + 5, 6)};",
"+a = 1, b = 2;",
" a = 1, b = 2;",
" a = 1, b = 2;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "462a29eab0d5612aa9c0351cea6625da33d511af..8e441316b923f6c78887f04c9888b0b49c581964"
}
,{
"testCaseDescription": "javascript-comma-operator-replacement-test",
"expectedResult": {
"changes": {
"comma-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
23
]
}
},
"summary": "Added the 'c' assignment"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'a' assignment"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'b' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"comma-operator.js"
],
"patch": [
"diff --git a/comma-operator.js b/comma-operator.js",
"index f738c2db..93ece10f 100644",
"--- a/comma-operator.js",
"+++ b/comma-operator.js",
"@@ -1,3 +1,3 @@",
"-a = 1, b = 2;",
"+c = {d: (3, 4 + 5, 6)};",
" a = 1, b = 2;",
" a = 1, b = 2;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "8e441316b923f6c78887f04c9888b0b49c581964..36d96085989992f0c2dcdc1086e8416b89114140"
}
,{
"testCaseDescription": "javascript-comma-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"comma-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
23
]
}
},
"summary": "Deleted the 'c' assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Deleted the 'a' assignment"
},
{
"span": {
"delete": {
"start": [
2,
8
],
"end": [
2,
13
]
}
},
"summary": "Deleted the 'b' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
23
]
}
},
"summary": "Added the 'c' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"comma-operator.js"
],
"patch": [
"diff --git a/comma-operator.js b/comma-operator.js",
"index 93ece10f..297e28dd 100644",
"--- a/comma-operator.js",
"+++ b/comma-operator.js",
"@@ -1,3 +1,2 @@",
"-c = {d: (3, 4 + 5, 6)};",
"-a = 1, b = 2;",
" a = 1, b = 2;",
"+c = {d: (3, 4 + 5, 6)};"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "36d96085989992f0c2dcdc1086e8416b89114140..c6c0bd59d462b7ff7dee52447c879fc7a9d4913d"
}
,{
"testCaseDescription": "javascript-comma-operator-delete-test",
"expectedResult": {
"changes": {
"comma-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'a' assignment"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'b' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"comma-operator.js"
],
"patch": [
"diff --git a/comma-operator.js b/comma-operator.js",
"index 297e28dd..421bc7fe 100644",
"--- a/comma-operator.js",
"+++ b/comma-operator.js",
"@@ -1,2 +1 @@",
"-a = 1, b = 2;",
" c = {d: (3, 4 + 5, 6)};"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c6c0bd59d462b7ff7dee52447c879fc7a9d4913d..09b0762f96a863f6c41d0f0ccab99839da6f4163"
}
,{
"testCaseDescription": "javascript-comma-operator-delete-rest-test",
"expectedResult": {
"changes": {
"comma-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
23
]
}
},
"summary": "Deleted the 'c' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"comma-operator.js"
],
"patch": [
"diff --git a/comma-operator.js b/comma-operator.js",
"index 421bc7fe..e69de29b 100644",
"--- a/comma-operator.js",
"+++ b/comma-operator.js",
"@@ -1 +0,0 @@",
"-c = {d: (3, 4 + 5, 6)};"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "09b0762f96a863f6c41d0f0ccab99839da6f4163..89c1e5f6d5f5059a8f03f24bfc240cb8e14819e9"
}]

View File

@ -1,164 +0,0 @@
[{
"testCaseDescription": "javascript-comment-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"comment.js"
],
"patch": [
"diff --git a/comment.js b/comment.js",
"index e69de29b..a5821d24 100644",
"--- a/comment.js",
"+++ b/comment.js",
"@@ -0,0 +1 @@",
"+// This is a property"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "4e9add9e716058fa4021b730dad2e7f1fa8ffc7a..daf4b89aef8a8e68a162d238ffd69516f7d43530"
}
,{
"testCaseDescription": "javascript-comment-replacement-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"comment.js"
],
"patch": [
"diff --git a/comment.js b/comment.js",
"index a5821d24..761aa7a3 100644",
"--- a/comment.js",
"+++ b/comment.js",
"@@ -1 +1,5 @@",
"+/*",
"+ * This is a method",
"+*/",
"+// This is a property",
" // This is a property"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "daf4b89aef8a8e68a162d238ffd69516f7d43530..a06e4ccea3cb1348786e81617dc133bfb334a0ae"
}
,{
"testCaseDescription": "javascript-comment-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"comment.js"
],
"patch": [
"diff --git a/comment.js b/comment.js",
"index 761aa7a3..3b33406a 100644",
"--- a/comment.js",
"+++ b/comment.js",
"@@ -1,5 +1,3 @@",
"-/*",
"- * This is a method",
"-*/",
"+// This is a property",
" // This is a property",
" // This is a property"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "a06e4ccea3cb1348786e81617dc133bfb334a0ae..4d2fc90e98a23fb6f1b6beba2ad9d93d6f6da923"
}
,{
"testCaseDescription": "javascript-comment-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"comment.js"
],
"patch": [
"diff --git a/comment.js b/comment.js",
"index 3b33406a..761aa7a3 100644",
"--- a/comment.js",
"+++ b/comment.js",
"@@ -1,3 +1,5 @@",
"-// This is a property",
"+/*",
"+ * This is a method",
"+*/",
" // This is a property",
" // This is a property"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "4d2fc90e98a23fb6f1b6beba2ad9d93d6f6da923..9c5c502bafe5cb46c6e6d59fc32e00bfd7462e70"
}
,{
"testCaseDescription": "javascript-comment-delete-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"comment.js"
],
"patch": [
"diff --git a/comment.js b/comment.js",
"index 761aa7a3..c2a8148a 100644",
"--- a/comment.js",
"+++ b/comment.js",
"@@ -1,5 +1,4 @@",
"+// This is a property",
" /*",
" * This is a method",
" */",
"-// This is a property",
"-// This is a property"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9c5c502bafe5cb46c6e6d59fc32e00bfd7462e70..254a0da2dac5202acc851ff0ea69a6abfe051806"
}
,{
"testCaseDescription": "javascript-comment-delete-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"comment.js"
],
"patch": [
"diff --git a/comment.js b/comment.js",
"index c2a8148a..7c74dcdf 100644",
"--- a/comment.js",
"+++ b/comment.js",
"@@ -1,4 +1,3 @@",
"-// This is a property",
" /*",
" * This is a method",
" */"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "254a0da2dac5202acc851ff0ea69a6abfe051806..48c6ead82e3b53405443089a2a83a4a760e54375"
}
,{
"testCaseDescription": "javascript-comment-delete-rest-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"comment.js"
],
"patch": [
"diff --git a/comment.js b/comment.js",
"index 7c74dcdf..e69de29b 100644",
"--- a/comment.js",
"+++ b/comment.js",
"@@ -1,3 +0,0 @@",
"-/*",
"- * This is a method",
"-*/"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "48c6ead82e3b53405443089a2a83a4a760e54375..0e2317b4ac1337d2e6debeeaa18673924f479fbf"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-constructor-call-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Added the 'module.Klass(1, \"two\")' constructor"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index e69de29b..9d723b91 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -0,0 +1 @@",
"+new module.Klass(1, \"two\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "f51bc6f2b12d9f7a4271606e1d4fcc442eb2688d..1cdcf3fc56a33381b806e928314eaa894778a155"
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
29
]
}
},
"summary": "Added the 'module.Klass(1, \"three\")' constructor"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
27
]
}
},
"summary": "Added the 'module.Klass(1, \"two\")' constructor"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index 9d723b91..2c91b115 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1 +1,3 @@",
"+new module.Klass(1, \"three\");",
"+new module.Klass(1, \"two\");",
" new module.Klass(1, \"two\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1cdcf3fc56a33381b806e928314eaa894778a155..1f8ec3661a147dfd8f761c6510444e36e95612ae"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-insert-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"end": [
1,
28
]
},
{
"start": [
1,
21
],
"end": [
1,
26
]
}
]
},
"summary": "Replaced the \"three\" string with the \"two\" string in the module.Klass(1, \"two\") function call"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index 2c91b115..892f5425 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1,3 +1,3 @@",
"-new module.Klass(1, \"three\");",
"+new module.Klass(1, \"two\");",
" new module.Klass(1, \"two\");",
" new module.Klass(1, \"two\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1f8ec3661a147dfd8f761c6510444e36e95612ae..3259c778988ca95c98e568158c71e1c49312474d"
}
,{
"testCaseDescription": "javascript-constructor-call-replacement-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"end": [
1,
26
]
},
{
"start": [
1,
21
],
"end": [
1,
28
]
}
]
},
"summary": "Replaced the \"two\" string with the \"three\" string in the module.Klass(1, \"three\") function call"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index 892f5425..2c91b115 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1,3 +1,3 @@",
"-new module.Klass(1, \"two\");",
"+new module.Klass(1, \"three\");",
" new module.Klass(1, \"two\");",
" new module.Klass(1, \"two\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3259c778988ca95c98e568158c71e1c49312474d..03ce25a4f4b2bd0917093590cc4a2ec684204bf9"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-replacement-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
29
]
}
},
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
27
]
}
},
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
29
]
}
},
"summary": "Added the 'module.Klass(1, \"three\")' constructor"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index 2c91b115..cd77b985 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1,3 +1,2 @@",
"-new module.Klass(1, \"three\");",
"-new module.Klass(1, \"two\");",
" new module.Klass(1, \"two\");",
"+new module.Klass(1, \"three\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "03ce25a4f4b2bd0917093590cc4a2ec684204bf9..17f765993c4e7ce431ecec6b695292ef2040dde3"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Deleted the 'module.Klass(1, \"two\")' constructor"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index cd77b985..75f6a29e 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1,2 +1 @@",
"-new module.Klass(1, \"two\");",
" new module.Klass(1, \"three\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "17f765993c4e7ce431ecec6b695292ef2040dde3..8132e4e372307de86bc7e496108bb796571bebe5"
}
,{
"testCaseDescription": "javascript-constructor-call-delete-rest-test",
"expectedResult": {
"changes": {
"constructor-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
29
]
}
},
"summary": "Deleted the 'module.Klass(1, \"three\")' constructor"
}
]
},
"errors": {}
},
"filePaths": [
"constructor-call.js"
],
"patch": [
"diff --git a/constructor-call.js b/constructor-call.js",
"index 75f6a29e..e69de29b 100644",
"--- a/constructor-call.js",
"+++ b/constructor-call.js",
"@@ -1 +0,0 @@",
"-new module.Klass(1, \"three\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "8132e4e372307de86bc7e496108bb796571bebe5..d305b2fcb86de85314b4ea7b59cd65ae41e82abd"
}]

View File

@ -1,292 +0,0 @@
[{
"testCaseDescription": "javascript-continue-setup-test",
"expectedResult": {
"changes": {
"continue.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
50
]
}
},
"summary": "Added the 'i = 0; i < 10; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"continue.js"
],
"patch": [
"diff --git a/continue.js b/continue.js",
"index e69de29b..3f583e3d 100644",
"--- a/continue.js",
"+++ b/continue.js",
"@@ -0,0 +1 @@",
"+for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "beee7c2b7123a5e4c67865c63ebe928135866f4b..2c943b521ead3b54286ea1cd2aac6018c6b81433"
}
,{
"testCaseDescription": "javascript-continue-insert-test",
"expectedResult": {
"changes": {
"continue.js": [
{
"span": {
"insert": {
"start": [
1,
43
],
"end": [
1,
52
]
}
},
"summary": "Added a continue statement in the 'i === 4' if statement"
},
{
"span": {
"delete": {
"start": [
1,
41
],
"end": [
1,
45
]
}
},
"summary": "Deleted the '{ }' object in the 'i === 4' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"continue.js"
],
"patch": [
"diff --git a/continue.js b/continue.js",
"index 3f583e3d..16ebcc57 100644",
"--- a/continue.js",
"+++ b/continue.js",
"@@ -1 +1 @@",
"-for (i = 0; i < 10; i++) { if (i === 4) { }; i }",
"+for (i = 0; i < 10; i++) { if (i === 4) { continue; }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2c943b521ead3b54286ea1cd2aac6018c6b81433..0a2a2c8ae3bad94b9401b00ff4cf14326a902d81"
}
,{
"testCaseDescription": "javascript-continue-replacement-test",
"expectedResult": {
"changes": {
"continue.js": [
{
"span": {
"insert": {
"start": [
1,
43
],
"end": [
1,
49
]
}
},
"summary": "Added a break statement in the 'i === 4' if statement"
},
{
"span": {
"delete": {
"start": [
1,
43
],
"end": [
1,
52
]
}
},
"summary": "Deleted a continue statement in the 'i === 4' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"continue.js"
],
"patch": [
"diff --git a/continue.js b/continue.js",
"index 16ebcc57..629dfa91 100644",
"--- a/continue.js",
"+++ b/continue.js",
"@@ -1 +1 @@",
"-for (i = 0; i < 10; i++) { if (i === 4) { continue; }; i }",
"+for (i = 0; i < 10; i++) { if (i === 4) { break; }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "0a2a2c8ae3bad94b9401b00ff4cf14326a902d81..64fbd27c0376c28cfc9a8d901697cb1f15cc1fe3"
}
,{
"testCaseDescription": "javascript-continue-delete-replacement-test",
"expectedResult": {
"changes": {
"continue.js": [
{
"span": {
"insert": {
"start": [
1,
43
],
"end": [
1,
52
]
}
},
"summary": "Added a continue statement in the 'i === 4' if statement"
},
{
"span": {
"delete": {
"start": [
1,
43
],
"end": [
1,
49
]
}
},
"summary": "Deleted a break statement in the 'i === 4' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"continue.js"
],
"patch": [
"diff --git a/continue.js b/continue.js",
"index 629dfa91..16ebcc57 100644",
"--- a/continue.js",
"+++ b/continue.js",
"@@ -1 +1 @@",
"-for (i = 0; i < 10; i++) { if (i === 4) { break; }; i }",
"+for (i = 0; i < 10; i++) { if (i === 4) { continue; }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "64fbd27c0376c28cfc9a8d901697cb1f15cc1fe3..b564db2836439280ab94c39b826d083be444fb08"
}
,{
"testCaseDescription": "javascript-continue-delete-insert-test",
"expectedResult": {
"changes": {
"continue.js": [
{
"span": {
"insert": {
"start": [
1,
41
],
"end": [
1,
45
]
}
},
"summary": "Added the '{ }' object in the 'i === 4' if statement"
},
{
"span": {
"delete": {
"start": [
1,
43
],
"end": [
1,
52
]
}
},
"summary": "Deleted a continue statement in the 'i === 4' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"continue.js"
],
"patch": [
"diff --git a/continue.js b/continue.js",
"index 16ebcc57..3f583e3d 100644",
"--- a/continue.js",
"+++ b/continue.js",
"@@ -1 +1 @@",
"-for (i = 0; i < 10; i++) { if (i === 4) { continue; }; i }",
"+for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b564db2836439280ab94c39b826d083be444fb08..01f2fb8d5bd915fbc7790ddff9d40810574074b8"
}
,{
"testCaseDescription": "javascript-continue-teardown-test",
"expectedResult": {
"changes": {
"continue.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
50
]
}
},
"summary": "Deleted the 'i = 0; i < 10; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"continue.js"
],
"patch": [
"diff --git a/continue.js b/continue.js",
"index 3f583e3d..e69de29b 100644",
"--- a/continue.js",
"+++ b/continue.js",
"@@ -1 +0,0 @@",
"-for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "01f2fb8d5bd915fbc7790ddff9d40810574074b8..65b1dacae919ef819dc69ac3d3f38b19becda862"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-delete-operator-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Added the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index e69de29b..c83346db 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -0,0 +1 @@",
"+delete thing['prop'];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "cdeef24ab3d20893343df51bad02c05c39b1521c..f8af0983ac4617a5ece85b3b45dc8be59cd4361a"
}
,{
"testCaseDescription": "javascript-delete-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Added the 'delete thing.prop' operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Added the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index c83346db..7c8b9908 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1 +1,3 @@",
"+delete thing.prop",
"+delete thing['prop'];",
" delete thing['prop'];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "f8af0983ac4617a5ece85b3b45dc8be59cd4361a..c5485061705d3c76fbb1a60183018685cce61e0e"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
18
]
},
{
"start": [
1,
1
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'delete thing.prop' operator with the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index 7c8b9908..f506e360 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1,3 +1,3 @@",
"-delete thing.prop",
"+delete thing['prop'];",
" delete thing['prop'];",
" delete thing['prop'];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c5485061705d3c76fbb1a60183018685cce61e0e..31045e5de8259578826122759a4a1822a3f7cdc3"
}
,{
"testCaseDescription": "javascript-delete-operator-replacement-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
21
]
},
{
"start": [
1,
1
],
"end": [
1,
18
]
}
]
},
"summary": "Replaced the 'delete thing['prop']' operator with the 'delete thing.prop' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index f506e360..7c8b9908 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1,3 +1,3 @@",
"-delete thing['prop'];",
"+delete thing.prop",
" delete thing['prop'];",
" delete thing['prop'];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "31045e5de8259578826122759a4a1822a3f7cdc3..c65f959cf8f43bcc1aaf6dc61532fc1f4772cc2c"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'delete thing.prop' operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Deleted the 'delete thing['prop']' operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Added the 'delete thing.prop' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index 7c8b9908..2dfe0799 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1,3 +1,2 @@",
"-delete thing.prop",
"-delete thing['prop'];",
" delete thing['prop'];",
"+delete thing.prop"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c65f959cf8f43bcc1aaf6dc61532fc1f4772cc2c..a202a1786db14c5aa72a798fde8a012331fd57ae"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the 'delete thing['prop']' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index 2dfe0799..9d68dfb8 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1,2 +1 @@",
"-delete thing['prop'];",
" delete thing.prop"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "a202a1786db14c5aa72a798fde8a012331fd57ae..295b42f6346c7c468c76810a8ce25f0660f81757"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-rest-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'delete thing.prop' operator"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"patch": [
"diff --git a/delete-operator.js b/delete-operator.js",
"index 9d68dfb8..e69de29b 100644",
"--- a/delete-operator.js",
"+++ b/delete-operator.js",
"@@ -1 +0,0 @@",
"-delete thing.prop"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "295b42f6346c7c468c76810a8ce25f0660f81757..a06758561604cc1a81d1b788effb727feba31d2d"
}]

View File

@ -1,401 +0,0 @@
[{
"testCaseDescription": "javascript-do-while-statement-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Added the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index e69de29b..d1ec804b 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -0,0 +1 @@",
"+do { console.log(insert); } while (true);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9632a8f95e9b8124c8c341c857ef8667269f18d5..0ad50c5e207e0be1c850d9d806b4a7c63e04b5ac"
}
,{
"testCaseDescription": "javascript-do-while-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Added the 'false' do/while statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Added the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index d1ec804b..d9a410d6 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1 +1,3 @@",
"+do { console.log(replacement); } while (false);",
"+do { console.log(insert); } while (true);",
" do { console.log(insert); } while (true);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "0ad50c5e207e0be1c850d9d806b4a7c63e04b5ac..867c80d114f6e22d8ce379cca71162cb7dc86baf"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
18
],
"end": [
1,
29
]
},
{
"start": [
1,
18
],
"end": [
1,
24
]
}
]
},
"summary": "Replaced the 'replacement' identifier with the 'insert' identifier in the console.log(insert) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
41
],
"end": [
1,
46
]
},
{
"start": [
1,
36
],
"end": [
1,
40
]
}
]
},
"summary": "Replaced 'false' with 'true' in the true do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index d9a410d6..41978359 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1,3 +1,3 @@",
"-do { console.log(replacement); } while (false);",
"+do { console.log(insert); } while (true);",
" do { console.log(insert); } while (true);",
" do { console.log(insert); } while (true);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "867c80d114f6e22d8ce379cca71162cb7dc86baf..c445c120a1310df5c5a9bc2c32526dba5acdd98b"
}
,{
"testCaseDescription": "javascript-do-while-statement-replacement-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
18
],
"end": [
1,
24
]
},
{
"start": [
1,
18
],
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'insert' identifier with the 'replacement' identifier in the console.log(replacement) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
36
],
"end": [
1,
40
]
},
{
"start": [
1,
41
],
"end": [
1,
46
]
}
]
},
"summary": "Replaced 'true' with 'false' in the false do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index 41978359..d9a410d6 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1,3 +1,3 @@",
"-do { console.log(insert); } while (true);",
"+do { console.log(replacement); } while (false);",
" do { console.log(insert); } while (true);",
" do { console.log(insert); } while (true);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c445c120a1310df5c5a9bc2c32526dba5acdd98b..980edee9075b26bf191cb4450c199a22d48676a9"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the 'false' do/while statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Deleted the 'true' do/while statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
48
]
}
},
"summary": "Added the 'false' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index d9a410d6..c5291b47 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1,3 +1,2 @@",
"-do { console.log(replacement); } while (false);",
"-do { console.log(insert); } while (true);",
" do { console.log(insert); } while (true);",
"+do { console.log(replacement); } while (false);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "980edee9075b26bf191cb4450c199a22d48676a9..916844f1d3a6dbf5345ba544688ada96d6f84eef"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index c5291b47..6085cb11 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1,2 +1 @@",
"-do { console.log(insert); } while (true);",
" do { console.log(replacement); } while (false);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "916844f1d3a6dbf5345ba544688ada96d6f84eef..7fb9fbe0c0da8f74a52b6e857c9f62cc84f4f36c"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-rest-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the 'false' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index 6085cb11..e69de29b 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1 +0,0 @@",
"-do { console.log(replacement); } while (false);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "7fb9fbe0c0da8f74a52b6e857c9f62cc84f4f36c..74e038f85a6296e615673af5f418b547515cc536"
}]

File diff suppressed because it is too large Load Diff

View File

@ -1,353 +0,0 @@
[{
"testCaseDescription": "javascript-false-insert-test",
"expectedResult": {
"changes": {
"false.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added 'false'"
}
]
},
"errors": {}
},
"filePaths": [
"false.js"
],
"patch": [
"diff --git a/false.js b/false.js",
"index e69de29b..8a639462 100644",
"--- a/false.js",
"+++ b/false.js",
"@@ -0,0 +1 @@",
"+false;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "551ca9fdcba5734d73b3d1f9ce9a19e373fbaeb6..c50e73fc768e063d4fd21bc65edc403b64e2c9da"
}
,{
"testCaseDescription": "javascript-false-replacement-insert-test",
"expectedResult": {
"changes": {
"false.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
14
]
}
},
"summary": "Added the 'false' return statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Added 'false'"
}
]
},
"errors": {}
},
"filePaths": [
"false.js"
],
"patch": [
"diff --git a/false.js b/false.js",
"index 8a639462..86574b16 100644",
"--- a/false.js",
"+++ b/false.js",
"@@ -1 +1,3 @@",
"+return false;",
"+false;",
" false;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c50e73fc768e063d4fd21bc65edc403b64e2c9da..3ac8905eb5c81d35c5bb031fecb94d27fa8f07df"
}
,{
"testCaseDescription": "javascript-false-delete-insert-test",
"expectedResult": {
"changes": {
"false.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added 'false'"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
14
]
}
},
"summary": "Deleted the 'false' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"false.js"
],
"patch": [
"diff --git a/false.js b/false.js",
"index 86574b16..7bae7c53 100644",
"--- a/false.js",
"+++ b/false.js",
"@@ -1,3 +1,3 @@",
"-return false;",
"+false;",
" false;",
" false;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3ac8905eb5c81d35c5bb031fecb94d27fa8f07df..12da1916baa21d2b488833752cfdd4804db40c70"
}
,{
"testCaseDescription": "javascript-false-replacement-test",
"expectedResult": {
"changes": {
"false.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
14
]
}
},
"summary": "Added the 'false' return statement"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted 'false'"
}
]
},
"errors": {}
},
"filePaths": [
"false.js"
],
"patch": [
"diff --git a/false.js b/false.js",
"index 7bae7c53..86574b16 100644",
"--- a/false.js",
"+++ b/false.js",
"@@ -1,3 +1,3 @@",
"-false;",
"+return false;",
" false;",
" false;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "12da1916baa21d2b488833752cfdd4804db40c70..1ad5956e04ff6f1e24a75348aeab80c2e935fad0"
}
,{
"testCaseDescription": "javascript-false-delete-replacement-test",
"expectedResult": {
"changes": {
"false.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
14
]
}
},
"summary": "Deleted the 'false' return statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Deleted 'false'"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
14
]
}
},
"summary": "Added the 'false' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"false.js"
],
"patch": [
"diff --git a/false.js b/false.js",
"index 86574b16..85b5be91 100644",
"--- a/false.js",
"+++ b/false.js",
"@@ -1,3 +1,2 @@",
"-return false;",
"-false;",
" false;",
"+return false;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1ad5956e04ff6f1e24a75348aeab80c2e935fad0..d301b2ddaa3a0b226b07ac653599111438a97dc0"
}
,{
"testCaseDescription": "javascript-false-delete-test",
"expectedResult": {
"changes": {
"false.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted 'false'"
}
]
},
"errors": {}
},
"filePaths": [
"false.js"
],
"patch": [
"diff --git a/false.js b/false.js",
"index 85b5be91..1f328b3b 100644",
"--- a/false.js",
"+++ b/false.js",
"@@ -1,2 +1 @@",
"-false;",
" return false;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d301b2ddaa3a0b226b07ac653599111438a97dc0..a3ba4035afc4644813359865e82c9d54973a40b6"
}
,{
"testCaseDescription": "javascript-false-delete-rest-test",
"expectedResult": {
"changes": {
"false.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
14
]
}
},
"summary": "Deleted the 'false' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"false.js"
],
"patch": [
"diff --git a/false.js b/false.js",
"index 1f328b3b..e69de29b 100644",
"--- a/false.js",
"+++ b/false.js",
"@@ -1 +0,0 @@",
"-return false;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "a3ba4035afc4644813359865e82c9d54973a40b6..44ab56bc4e78762b4754c401e610d9e8da5069d9"
}]

View File

@ -1,455 +0,0 @@
[{
"testCaseDescription": "javascript-for-in-statement-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
35
]
}
},
"summary": "Added the 'thing in things' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"patch": [
"diff --git a/for-in-statement.js b/for-in-statement.js",
"index e69de29b..f9282876 100644",
"--- a/for-in-statement.js",
"+++ b/for-in-statement.js",
"@@ -0,0 +1 @@",
"+for (thing in things) { thing(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "af83ea94ea31585dc756784eea2fcd63e383a994..f1b97affa2097f7fb1e431a1f096fe671b023b01"
}
,{
"testCaseDescription": "javascript-for-in-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added the 'item in items' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
35
]
}
},
"summary": "Added the 'thing in things' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"patch": [
"diff --git a/for-in-statement.js b/for-in-statement.js",
"index f9282876..4a482e9e 100644",
"--- a/for-in-statement.js",
"+++ b/for-in-statement.js",
"@@ -1 +1,3 @@",
"+for (item in items) { item(); }",
"+for (thing in things) { thing(); }",
" for (thing in things) { thing(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "f1b97affa2097f7fb1e431a1f096fe671b023b01..d40dfaad3e433f92e47d77e2dec7b8ee1f9336d4"
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
10
]
},
{
"start": [
1,
6
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
14
],
"end": [
1,
19
]
},
{
"start": [
1,
15
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'items' identifier with the 'things' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
23
],
"end": [
1,
27
]
},
{
"start": [
1,
25
],
"end": [
1,
30
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier in the thing() function call"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"patch": [
"diff --git a/for-in-statement.js b/for-in-statement.js",
"index 4a482e9e..e949bafb 100644",
"--- a/for-in-statement.js",
"+++ b/for-in-statement.js",
"@@ -1,3 +1,3 @@",
"-for (item in items) { item(); }",
"+for (thing in things) { thing(); }",
" for (thing in things) { thing(); }",
" for (thing in things) { thing(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d40dfaad3e433f92e47d77e2dec7b8ee1f9336d4..80e4d2015d8131cfea810de3f1a9b1bef9e41ca0"
}
,{
"testCaseDescription": "javascript-for-in-statement-replacement-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
11
]
},
{
"start": [
1,
6
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
15
],
"end": [
1,
21
]
},
{
"start": [
1,
14
],
"end": [
1,
19
]
}
]
},
"summary": "Replaced the 'things' identifier with the 'items' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
25
],
"end": [
1,
30
]
},
{
"start": [
1,
23
],
"end": [
1,
27
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier in the item() function call"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"patch": [
"diff --git a/for-in-statement.js b/for-in-statement.js",
"index e949bafb..4a482e9e 100644",
"--- a/for-in-statement.js",
"+++ b/for-in-statement.js",
"@@ -1,3 +1,3 @@",
"-for (thing in things) { thing(); }",
"+for (item in items) { item(); }",
" for (thing in things) { thing(); }",
" for (thing in things) { thing(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "80e4d2015d8131cfea810de3f1a9b1bef9e41ca0..e0ac17caa81a163bfb88c8868fce228bd6f673c9"
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the 'item in items' for statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
35
]
}
},
"summary": "Deleted the 'thing in things' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added the 'item in items' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"patch": [
"diff --git a/for-in-statement.js b/for-in-statement.js",
"index 4a482e9e..6b5f12ae 100644",
"--- a/for-in-statement.js",
"+++ b/for-in-statement.js",
"@@ -1,3 +1,2 @@",
"-for (item in items) { item(); }",
"-for (thing in things) { thing(); }",
" for (thing in things) { thing(); }",
"+for (item in items) { item(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "e0ac17caa81a163bfb88c8868fce228bd6f673c9..c8a6b23e83591d69e2492c79ca2acbab8a60c06e"
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
35
]
}
},
"summary": "Deleted the 'thing in things' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"patch": [
"diff --git a/for-in-statement.js b/for-in-statement.js",
"index 6b5f12ae..a3d8882d 100644",
"--- a/for-in-statement.js",
"+++ b/for-in-statement.js",
"@@ -1,2 +1 @@",
"-for (thing in things) { thing(); }",
" for (item in items) { item(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c8a6b23e83591d69e2492c79ca2acbab8a60c06e..d4b1f33817f392a83cd5eb29bf9ecfeb196e0597"
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the 'item in items' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"patch": [
"diff --git a/for-in-statement.js b/for-in-statement.js",
"index a3d8882d..e69de29b 100644",
"--- a/for-in-statement.js",
"+++ b/for-in-statement.js",
"@@ -1 +0,0 @@",
"-for (item in items) { item(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d4b1f33817f392a83cd5eb29bf9ecfeb196e0597..108691eaf6389b97fcdc69fa9af5ec37ddea808b"
}]

View File

@ -1,401 +0,0 @@
[{
"testCaseDescription": "javascript-for-loop-with-in-statement-insert-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
63
]
}
},
"summary": "Added the 'key in something && i = 0; i < n; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"patch": [
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
"index e69de29b..c467478a 100644",
"--- a/for-loop-with-in-statement.js",
"+++ b/for-loop-with-in-statement.js",
"@@ -0,0 +1 @@",
"+for (key in something && i = 0; i < n; i++) { doSomething(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ee2bc6eb6721a9dc9b1cf7216a7bc251e3aa9110..0faead91699f4d2b565f79ee38b667013384d8e7"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
73
]
}
},
"summary": "Added the 'otherKey in something && i = 0; i < n; i++' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
63
]
}
},
"summary": "Added the 'key in something && i = 0; i < n; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"patch": [
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
"index c467478a..0147d318 100644",
"--- a/for-loop-with-in-statement.js",
"+++ b/for-loop-with-in-statement.js",
"@@ -1 +1,3 @@",
"+for (otherKey in something && i = 0; i < n; i++) { doOtherSomething(); }",
"+for (key in something && i = 0; i < n; i++) { doSomething(); }",
" for (key in something && i = 0; i < n; i++) { doSomething(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "0faead91699f4d2b565f79ee38b667013384d8e7..d16322e3777e2b8ab9b7ce319c748a6297d970cb"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
14
]
},
{
"start": [
1,
6
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'otherKey' identifier with the 'key' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
52
],
"end": [
1,
68
]
},
{
"start": [
1,
47
],
"end": [
1,
58
]
}
]
},
"summary": "Replaced the 'doOtherSomething' identifier with the 'doSomething' identifier in the doSomething() function call"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"patch": [
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
"index 0147d318..306fa88a 100644",
"--- a/for-loop-with-in-statement.js",
"+++ b/for-loop-with-in-statement.js",
"@@ -1,3 +1,3 @@",
"-for (otherKey in something && i = 0; i < n; i++) { doOtherSomething(); }",
"+for (key in something && i = 0; i < n; i++) { doSomething(); }",
" for (key in something && i = 0; i < n; i++) { doSomething(); }",
" for (key in something && i = 0; i < n; i++) { doSomething(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d16322e3777e2b8ab9b7ce319c748a6297d970cb..32469a6acead6144620cc0db9b78e722e457dba7"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
9
]
},
{
"start": [
1,
6
],
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'key' identifier with the 'otherKey' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
47
],
"end": [
1,
58
]
},
{
"start": [
1,
52
],
"end": [
1,
68
]
}
]
},
"summary": "Replaced the 'doSomething' identifier with the 'doOtherSomething' identifier in the doOtherSomething() function call"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"patch": [
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
"index 306fa88a..0147d318 100644",
"--- a/for-loop-with-in-statement.js",
"+++ b/for-loop-with-in-statement.js",
"@@ -1,3 +1,3 @@",
"-for (key in something && i = 0; i < n; i++) { doSomething(); }",
"+for (otherKey in something && i = 0; i < n; i++) { doOtherSomething(); }",
" for (key in something && i = 0; i < n; i++) { doSomething(); }",
" for (key in something && i = 0; i < n; i++) { doSomething(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "32469a6acead6144620cc0db9b78e722e457dba7..6447a7c1fd2a44dd374b607ce7beb56df3732dbb"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
73
]
}
},
"summary": "Deleted the 'otherKey in something && i = 0; i < n; i++' for statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
63
]
}
},
"summary": "Deleted the 'key in something && i = 0; i < n; i++' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
73
]
}
},
"summary": "Added the 'otherKey in something && i = 0; i < n; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"patch": [
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
"index 0147d318..f23fa316 100644",
"--- a/for-loop-with-in-statement.js",
"+++ b/for-loop-with-in-statement.js",
"@@ -1,3 +1,2 @@",
"-for (otherKey in something && i = 0; i < n; i++) { doOtherSomething(); }",
"-for (key in something && i = 0; i < n; i++) { doSomething(); }",
" for (key in something && i = 0; i < n; i++) { doSomething(); }",
"+for (otherKey in something && i = 0; i < n; i++) { doOtherSomething(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "6447a7c1fd2a44dd374b607ce7beb56df3732dbb..b1938e9bb425528fbf652df004e3eda466900ec7"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
63
]
}
},
"summary": "Deleted the 'key in something && i = 0; i < n; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"patch": [
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
"index f23fa316..e9681607 100644",
"--- a/for-loop-with-in-statement.js",
"+++ b/for-loop-with-in-statement.js",
"@@ -1,2 +1 @@",
"-for (key in something && i = 0; i < n; i++) { doSomething(); }",
" for (otherKey in something && i = 0; i < n; i++) { doOtherSomething(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b1938e9bb425528fbf652df004e3eda466900ec7..6ac074e27614c7d85c196aacc19be448097c8445"
}
,{
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-loop-with-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
73
]
}
},
"summary": "Deleted the 'otherKey in something && i = 0; i < n; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-loop-with-in-statement.js"
],
"patch": [
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
"index e9681607..e69de29b 100644",
"--- a/for-loop-with-in-statement.js",
"+++ b/for-loop-with-in-statement.js",
"@@ -1 +0,0 @@",
"-for (otherKey in something && i = 0; i < n; i++) { doOtherSomething(); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "6ac074e27614c7d85c196aacc19be448097c8445..89b62eec408922c8dcad9c54e045d34c783da30f"
}]

View File

@ -1,455 +0,0 @@
[{
"testCaseDescription": "javascript-for-of-statement-insert-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
43
]
}
},
"summary": "Added the 'item of items' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"patch": [
"diff --git a/for-of-statement.js b/for-of-statement.js",
"index e69de29b..1ed27542 100644",
"--- a/for-of-statement.js",
"+++ b/for-of-statement.js",
"@@ -0,0 +1 @@",
"+for (let item of items) { process(item); };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "89b62eec408922c8dcad9c54e045d34c783da30f..948ba39d4d029f7621a695436a0d2ddf02c6d93b"
}
,{
"testCaseDescription": "javascript-for-of-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
46
]
}
},
"summary": "Added the 'thing of things' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
43
]
}
},
"summary": "Added the 'item of items' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"patch": [
"diff --git a/for-of-statement.js b/for-of-statement.js",
"index 1ed27542..ab20ded2 100644",
"--- a/for-of-statement.js",
"+++ b/for-of-statement.js",
"@@ -1 +1,3 @@",
"+for (let thing of things) { process(thing); };",
"+for (let item of items) { process(item); };",
" for (let item of items) { process(item); };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "948ba39d4d029f7621a695436a0d2ddf02c6d93b..7e3b3cdcb0e37778e26c41ded72d66e7a81bd259"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
15
]
},
{
"start": [
1,
10
],
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
19
],
"end": [
1,
25
]
},
{
"start": [
1,
18
],
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'things' identifier with the 'items' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
37
],
"end": [
1,
42
]
},
{
"start": [
1,
35
],
"end": [
1,
39
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier in the process(item) function call"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"patch": [
"diff --git a/for-of-statement.js b/for-of-statement.js",
"index ab20ded2..19561a3e 100644",
"--- a/for-of-statement.js",
"+++ b/for-of-statement.js",
"@@ -1,3 +1,3 @@",
"-for (let thing of things) { process(thing); };",
"+for (let item of items) { process(item); };",
" for (let item of items) { process(item); };",
" for (let item of items) { process(item); };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "7e3b3cdcb0e37778e26c41ded72d66e7a81bd259..214da18c3075208b526872072329e501f8d9d20b"
}
,{
"testCaseDescription": "javascript-for-of-statement-replacement-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
14
]
},
{
"start": [
1,
10
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
18
],
"end": [
1,
23
]
},
{
"start": [
1,
19
],
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'items' identifier with the 'things' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
35
],
"end": [
1,
39
]
},
{
"start": [
1,
37
],
"end": [
1,
42
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier in the process(thing) function call"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"patch": [
"diff --git a/for-of-statement.js b/for-of-statement.js",
"index 19561a3e..ab20ded2 100644",
"--- a/for-of-statement.js",
"+++ b/for-of-statement.js",
"@@ -1,3 +1,3 @@",
"-for (let item of items) { process(item); };",
"+for (let thing of things) { process(thing); };",
" for (let item of items) { process(item); };",
" for (let item of items) { process(item); };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "214da18c3075208b526872072329e501f8d9d20b..c3f015268cf87cb0fea3dad078b323823bfd27b4"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
46
]
}
},
"summary": "Deleted the 'thing of things' for statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
43
]
}
},
"summary": "Deleted the 'item of items' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
46
]
}
},
"summary": "Added the 'thing of things' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"patch": [
"diff --git a/for-of-statement.js b/for-of-statement.js",
"index ab20ded2..62db34f8 100644",
"--- a/for-of-statement.js",
"+++ b/for-of-statement.js",
"@@ -1,3 +1,2 @@",
"-for (let thing of things) { process(thing); };",
"-for (let item of items) { process(item); };",
" for (let item of items) { process(item); };",
"+for (let thing of things) { process(thing); };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c3f015268cf87cb0fea3dad078b323823bfd27b4..fccf8a23cc8b1106d1a71d040450fc47f0af84b7"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
43
]
}
},
"summary": "Deleted the 'item of items' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"patch": [
"diff --git a/for-of-statement.js b/for-of-statement.js",
"index 62db34f8..5170ce4b 100644",
"--- a/for-of-statement.js",
"+++ b/for-of-statement.js",
"@@ -1,2 +1 @@",
"-for (let item of items) { process(item); };",
" for (let thing of things) { process(thing); };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fccf8a23cc8b1106d1a71d040450fc47f0af84b7..8c6c7677d447864b8159d0aeadaaa5c31fd7db04"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
46
]
}
},
"summary": "Deleted the 'thing of things' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"patch": [
"diff --git a/for-of-statement.js b/for-of-statement.js",
"index 5170ce4b..e69de29b 100644",
"--- a/for-of-statement.js",
"+++ b/for-of-statement.js",
"@@ -1 +0,0 @@",
"-for (let thing of things) { process(thing); };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "8c6c7677d447864b8159d0aeadaaa5c31fd7db04..d2768fbb95f8527eec1b8d88197c99a65a72c36a"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-for-statement-insert-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
45
]
}
},
"summary": "Added the 'i = 0, init(); i < 10; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"patch": [
"diff --git a/for-statement.js b/for-statement.js",
"index e69de29b..2f51258e 100644",
"--- a/for-statement.js",
"+++ b/for-statement.js",
"@@ -0,0 +1 @@",
"+for (i = 0, init(); i < 10; i++) { log(i); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "45467bfb48246946f982ba93b62baaa10e72db4f..a12b722012680e194d1613ccd223f31c1df2a509"
}
,{
"testCaseDescription": "javascript-for-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
46
]
}
},
"summary": "Added the 'i = 0, init(); i < 100; i++' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
45
]
}
},
"summary": "Added the 'i = 0, init(); i < 10; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"patch": [
"diff --git a/for-statement.js b/for-statement.js",
"index 2f51258e..095241f1 100644",
"--- a/for-statement.js",
"+++ b/for-statement.js",
"@@ -1 +1,3 @@",
"+for (i = 0, init(); i < 100; i++) { log(i); }",
"+for (i = 0, init(); i < 10; i++) { log(i); }",
" for (i = 0, init(); i < 10; i++) { log(i); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "a12b722012680e194d1613ccd223f31c1df2a509..90b650a3b6f6323f381671c04d2389be863243f8"
}
,{
"testCaseDescription": "javascript-for-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
25
],
"end": [
1,
28
]
},
{
"start": [
1,
25
],
"end": [
1,
27
]
}
]
},
"summary": "Replaced '100' with '10'"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"patch": [
"diff --git a/for-statement.js b/for-statement.js",
"index 095241f1..9b0e26d4 100644",
"--- a/for-statement.js",
"+++ b/for-statement.js",
"@@ -1,3 +1,3 @@",
"-for (i = 0, init(); i < 100; i++) { log(i); }",
"+for (i = 0, init(); i < 10; i++) { log(i); }",
" for (i = 0, init(); i < 10; i++) { log(i); }",
" for (i = 0, init(); i < 10; i++) { log(i); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "90b650a3b6f6323f381671c04d2389be863243f8..927228295f344b634ef104f57cf37f956d9bc3ad"
}
,{
"testCaseDescription": "javascript-for-statement-replacement-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
25
],
"end": [
1,
27
]
},
{
"start": [
1,
25
],
"end": [
1,
28
]
}
]
},
"summary": "Replaced '10' with '100'"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"patch": [
"diff --git a/for-statement.js b/for-statement.js",
"index 9b0e26d4..095241f1 100644",
"--- a/for-statement.js",
"+++ b/for-statement.js",
"@@ -1,3 +1,3 @@",
"-for (i = 0, init(); i < 10; i++) { log(i); }",
"+for (i = 0, init(); i < 100; i++) { log(i); }",
" for (i = 0, init(); i < 10; i++) { log(i); }",
" for (i = 0, init(); i < 10; i++) { log(i); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "927228295f344b634ef104f57cf37f956d9bc3ad..288d606b663561c3bf48d1979b42adb629601d28"
}
,{
"testCaseDescription": "javascript-for-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
46
]
}
},
"summary": "Deleted the 'i = 0, init(); i < 100; i++' for statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
45
]
}
},
"summary": "Deleted the 'i = 0, init(); i < 10; i++' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
46
]
}
},
"summary": "Added the 'i = 0, init(); i < 100; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"patch": [
"diff --git a/for-statement.js b/for-statement.js",
"index 095241f1..39af699a 100644",
"--- a/for-statement.js",
"+++ b/for-statement.js",
"@@ -1,3 +1,2 @@",
"-for (i = 0, init(); i < 100; i++) { log(i); }",
"-for (i = 0, init(); i < 10; i++) { log(i); }",
" for (i = 0, init(); i < 10; i++) { log(i); }",
"+for (i = 0, init(); i < 100; i++) { log(i); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "288d606b663561c3bf48d1979b42adb629601d28..a1025ce0b427e3c532efe0b47bdf5e7ea149f917"
}
,{
"testCaseDescription": "javascript-for-statement-delete-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
45
]
}
},
"summary": "Deleted the 'i = 0, init(); i < 10; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"patch": [
"diff --git a/for-statement.js b/for-statement.js",
"index 39af699a..de8ae87b 100644",
"--- a/for-statement.js",
"+++ b/for-statement.js",
"@@ -1,2 +1 @@",
"-for (i = 0, init(); i < 10; i++) { log(i); }",
" for (i = 0, init(); i < 100; i++) { log(i); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "a1025ce0b427e3c532efe0b47bdf5e7ea149f917..d9e570418443c2385b0f2d670618ef2089c1fad5"
}
,{
"testCaseDescription": "javascript-for-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
46
]
}
},
"summary": "Deleted the 'i = 0, init(); i < 100; i++' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-statement.js"
],
"patch": [
"diff --git a/for-statement.js b/for-statement.js",
"index de8ae87b..e69de29b 100644",
"--- a/for-statement.js",
"+++ b/for-statement.js",
"@@ -1 +0,0 @@",
"-for (i = 0, init(); i < 100; i++) { log(i); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d9e570418443c2385b0f2d670618ef2089c1fad5..4ef69625070791efda498ad25dd15ea404e80a0a"
}]

View File

@ -1,617 +0,0 @@
[{
"testCaseDescription": "javascript-function-call-args-insert-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
77
]
}
},
"summary": "Added the 'someFunction(1, \"string\", …, true)' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
"patch": [
"diff --git a/function-call-args.js b/function-call-args.js",
"index e69de29b..699333de 100644",
"--- a/function-call-args.js",
"+++ b/function-call-args.js",
"@@ -0,0 +1 @@",
"+someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c81796cd087e4f62be538eda89091e76ae3fa5a7..2dcd4e9aca00fd5e17919192577b33fb98d71c13"
}
,{
"testCaseDescription": "javascript-function-call-args-replacement-insert-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
83
]
}
},
"summary": "Added the 'someFunction(1, \"otherString\", …, false)' function call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
77
]
}
},
"summary": "Added the 'someFunction(1, \"string\", …, true)' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
"patch": [
"diff --git a/function-call-args.js b/function-call-args.js",
"index 699333de..3f4ee6ef 100644",
"--- a/function-call-args.js",
"+++ b/function-call-args.js",
"@@ -1 +1,3 @@",
"+someFunction(1, \"otherString\", function(b,c) { console.log(b); return c; }, false)",
"+someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)",
" someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2dcd4e9aca00fd5e17919192577b33fb98d71c13..82fbfc8977c8ebdf221e26ad4bc3e697f1d76238"
}
,{
"testCaseDescription": "javascript-function-call-args-delete-insert-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
"replace": [
{
"start": [
1,
17
],
"end": [
1,
30
]
},
{
"start": [
1,
17
],
"end": [
1,
25
]
}
]
},
"summary": "Replaced the \"otherString\" string with the \"string\" string in the someFunction(1, \"string\", …, true) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
41
],
"end": [
1,
42
]
},
{
"start": [
1,
36
],
"end": [
1,
37
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the someFunction(1, \"string\", …, true) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
43
],
"end": [
1,
44
]
},
{
"start": [
1,
38
],
"end": [
1,
39
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'b' identifier in the someFunction(1, \"string\", …, true) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
60
],
"end": [
1,
61
]
},
{
"start": [
1,
55
],
"end": [
1,
56
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the console.log(a) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
71
],
"end": [
1,
72
]
},
{
"start": [
1,
66
],
"end": [
1,
67
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'b' identifier in the someFunction(1, \"string\", …, true) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
77
],
"end": [
1,
82
]
},
{
"start": [
1,
72
],
"end": [
1,
76
]
}
]
},
"summary": "Replaced 'false' with 'true' in the someFunction(1, \"string\", …, true) function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
"patch": [
"diff --git a/function-call-args.js b/function-call-args.js",
"index 3f4ee6ef..dc419cba 100644",
"--- a/function-call-args.js",
"+++ b/function-call-args.js",
"@@ -1,3 +1,3 @@",
"-someFunction(1, \"otherString\", function(b,c) { console.log(b); return c; }, false)",
"+someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)",
" someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)",
" someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "82fbfc8977c8ebdf221e26ad4bc3e697f1d76238..9cb1d2cd3ad6564bba80063e6d2662ca3d98a9d3"
}
,{
"testCaseDescription": "javascript-function-call-args-replacement-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
"replace": [
{
"start": [
1,
17
],
"end": [
1,
25
]
},
{
"start": [
1,
17
],
"end": [
1,
30
]
}
]
},
"summary": "Replaced the \"string\" string with the \"otherString\" string in the someFunction(1, \"otherString\", …, false) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
36
],
"end": [
1,
37
]
},
{
"start": [
1,
41
],
"end": [
1,
42
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the someFunction(1, \"otherString\", …, false) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
38
],
"end": [
1,
39
]
},
{
"start": [
1,
43
],
"end": [
1,
44
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'c' identifier in the someFunction(1, \"otherString\", …, false) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
55
],
"end": [
1,
56
]
},
{
"start": [
1,
60
],
"end": [
1,
61
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the console.log(b) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
66
],
"end": [
1,
67
]
},
{
"start": [
1,
71
],
"end": [
1,
72
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'c' identifier in the someFunction(1, \"otherString\", …, false) function call"
},
{
"span": {
"replace": [
{
"start": [
1,
72
],
"end": [
1,
76
]
},
{
"start": [
1,
77
],
"end": [
1,
82
]
}
]
},
"summary": "Replaced 'true' with 'false' in the someFunction(1, \"otherString\", …, false) function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
"patch": [
"diff --git a/function-call-args.js b/function-call-args.js",
"index dc419cba..3f4ee6ef 100644",
"--- a/function-call-args.js",
"+++ b/function-call-args.js",
"@@ -1,3 +1,3 @@",
"-someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)",
"+someFunction(1, \"otherString\", function(b,c) { console.log(b); return c; }, false)",
" someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)",
" someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9cb1d2cd3ad6564bba80063e6d2662ca3d98a9d3..4cefcbd95b2b9617cb55dd43be6f0aa1fb55fdf3"
}
,{
"testCaseDescription": "javascript-function-call-args-delete-replacement-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
83
]
}
},
"summary": "Deleted the 'someFunction(1, \"otherString\", …, false)' function call"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
77
]
}
},
"summary": "Deleted the 'someFunction(1, \"string\", …, true)' function call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
83
]
}
},
"summary": "Added the 'someFunction(1, \"otherString\", …, false)' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
"patch": [
"diff --git a/function-call-args.js b/function-call-args.js",
"index 3f4ee6ef..cae967b6 100644",
"--- a/function-call-args.js",
"+++ b/function-call-args.js",
"@@ -1,3 +1,2 @@",
"-someFunction(1, \"otherString\", function(b,c) { console.log(b); return c; }, false)",
"-someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)",
" someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)",
"+someFunction(1, \"otherString\", function(b,c) { console.log(b); return c; }, false)"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "4cefcbd95b2b9617cb55dd43be6f0aa1fb55fdf3..c0cde2d7604151d379e0ea9e597a127426348280"
}
,{
"testCaseDescription": "javascript-function-call-args-delete-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
77
]
}
},
"summary": "Deleted the 'someFunction(1, \"string\", …, true)' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
"patch": [
"diff --git a/function-call-args.js b/function-call-args.js",
"index cae967b6..0d19573d 100644",
"--- a/function-call-args.js",
"+++ b/function-call-args.js",
"@@ -1,2 +1 @@",
"-someFunction(1, \"string\", function(a,b) { console.log(a); return b; }, true)",
" someFunction(1, \"otherString\", function(b,c) { console.log(b); return c; }, false)"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c0cde2d7604151d379e0ea9e597a127426348280..66bf984d8a5e5e011b0318a5682d18022dc541b5"
}
,{
"testCaseDescription": "javascript-function-call-args-delete-rest-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
83
]
}
},
"summary": "Deleted the 'someFunction(1, \"otherString\", …, false)' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
"patch": [
"diff --git a/function-call-args.js b/function-call-args.js",
"index 0d19573d..e69de29b 100644",
"--- a/function-call-args.js",
"+++ b/function-call-args.js",
"@@ -1 +0,0 @@",
"-someFunction(1, \"otherString\", function(b,c) { console.log(b); return c; }, false)"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "66bf984d8a5e5e011b0318a5682d18022dc541b5..f51bc6f2b12d9f7a4271606e1d4fcc442eb2688d"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-function-call-insert-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Added the 'someFunction(arg1, \"arg2\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"patch": [
"diff --git a/function-call.js b/function-call.js",
"index e69de29b..8bd95e09 100644",
"--- a/function-call.js",
"+++ b/function-call.js",
"@@ -0,0 +1 @@",
"+someFunction(arg1, \"arg2\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "28f109decac7a1c87036b0de6ddae80ed15ba2a1..e751201f83cc22bf828a33cff5c2d4d24caa87f0"
}
,{
"testCaseDescription": "javascript-function-call-replacement-insert-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Added the 'someFunction(arg1, \"arg3\")' function call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
27
]
}
},
"summary": "Added the 'someFunction(arg1, \"arg2\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"patch": [
"diff --git a/function-call.js b/function-call.js",
"index 8bd95e09..6bb4cf3f 100644",
"--- a/function-call.js",
"+++ b/function-call.js",
"@@ -1 +1,3 @@",
"+someFunction(arg1, \"arg3\");",
"+someFunction(arg1, \"arg2\");",
" someFunction(arg1, \"arg2\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "e751201f83cc22bf828a33cff5c2d4d24caa87f0..7c4b8f710f315bc29577ec8db7c9e93432a0e6db"
}
,{
"testCaseDescription": "javascript-function-call-delete-insert-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
26
]
},
{
"start": [
1,
20
],
"end": [
1,
26
]
}
]
},
"summary": "Replaced the \"arg3\" string with the \"arg2\" string in the someFunction(arg1, \"arg2\") function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"patch": [
"diff --git a/function-call.js b/function-call.js",
"index 6bb4cf3f..b38c232b 100644",
"--- a/function-call.js",
"+++ b/function-call.js",
"@@ -1,3 +1,3 @@",
"-someFunction(arg1, \"arg3\");",
"+someFunction(arg1, \"arg2\");",
" someFunction(arg1, \"arg2\");",
" someFunction(arg1, \"arg2\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "7c4b8f710f315bc29577ec8db7c9e93432a0e6db..353668a765069b4096670678949a555dfd0be25f"
}
,{
"testCaseDescription": "javascript-function-call-replacement-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
26
]
},
{
"start": [
1,
20
],
"end": [
1,
26
]
}
]
},
"summary": "Replaced the \"arg2\" string with the \"arg3\" string in the someFunction(arg1, \"arg3\") function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"patch": [
"diff --git a/function-call.js b/function-call.js",
"index b38c232b..6bb4cf3f 100644",
"--- a/function-call.js",
"+++ b/function-call.js",
"@@ -1,3 +1,3 @@",
"-someFunction(arg1, \"arg2\");",
"+someFunction(arg1, \"arg3\");",
" someFunction(arg1, \"arg2\");",
" someFunction(arg1, \"arg2\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "353668a765069b4096670678949a555dfd0be25f..5f5858c3752dce5c57fb2ec627435478f475b706"
}
,{
"testCaseDescription": "javascript-function-call-delete-replacement-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Deleted the 'someFunction(arg1, \"arg3\")' function call"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
27
]
}
},
"summary": "Deleted the 'someFunction(arg1, \"arg2\")' function call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
27
]
}
},
"summary": "Added the 'someFunction(arg1, \"arg3\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"patch": [
"diff --git a/function-call.js b/function-call.js",
"index 6bb4cf3f..3e15c6ac 100644",
"--- a/function-call.js",
"+++ b/function-call.js",
"@@ -1,3 +1,2 @@",
"-someFunction(arg1, \"arg3\");",
"-someFunction(arg1, \"arg2\");",
" someFunction(arg1, \"arg2\");",
"+someFunction(arg1, \"arg3\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "5f5858c3752dce5c57fb2ec627435478f475b706..05bccda6be14784e187aa28870bcfe9bd352500c"
}
,{
"testCaseDescription": "javascript-function-call-delete-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Deleted the 'someFunction(arg1, \"arg2\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"patch": [
"diff --git a/function-call.js b/function-call.js",
"index 3e15c6ac..1add64b5 100644",
"--- a/function-call.js",
"+++ b/function-call.js",
"@@ -1,2 +1 @@",
"-someFunction(arg1, \"arg2\");",
" someFunction(arg1, \"arg3\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "05bccda6be14784e187aa28870bcfe9bd352500c..600a25a06e03d6cd538f000dafe2fb6c01f1d4b0"
}
,{
"testCaseDescription": "javascript-function-call-delete-rest-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Deleted the 'someFunction(arg1, \"arg3\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"patch": [
"diff --git a/function-call.js b/function-call.js",
"index 1add64b5..e69de29b 100644",
"--- a/function-call.js",
"+++ b/function-call.js",
"@@ -1 +0,0 @@",
"-someFunction(arg1, \"arg3\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "600a25a06e03d6cd538f000dafe2fb6c01f1d4b0..7ac818c08ed7e0badc60f225f6a1db12b6876c10"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-function-insert-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) function"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"patch": [
"diff --git a/function.js b/function.js",
"index e69de29b..2d8d739d 100644",
"--- a/function.js",
"+++ b/function.js",
"@@ -0,0 +1 @@",
"+function(arg1, arg2) { arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2be4c53970c1476bbb354be878424d6aec954c3b..e566325dc47e503736d658fc6237e08a009c1185"
}
,{
"testCaseDescription": "javascript-function-replacement-insert-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) function"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"patch": [
"diff --git a/function.js b/function.js",
"index 2d8d739d..43894067 100644",
"--- a/function.js",
"+++ b/function.js",
"@@ -1 +1,3 @@",
"+function(arg1, arg2) { arg1; };",
"+function(arg1, arg2) { arg2; };",
" function(arg1, arg2) { arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "e566325dc47e503736d658fc6237e08a009c1185..2afb0e7fd4236e4b29fd490cf1b62f8c9cd0aa4c"
}
,{
"testCaseDescription": "javascript-function-delete-insert-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"replace": [
{
"start": [
1,
24
],
"end": [
1,
28
]
},
{
"start": [
1,
24
],
"end": [
1,
28
]
}
]
},
"summary": "Replaced the 'arg1' identifier with the 'arg2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"patch": [
"diff --git a/function.js b/function.js",
"index 43894067..924c99e8 100644",
"--- a/function.js",
"+++ b/function.js",
"@@ -1,3 +1,3 @@",
"-function(arg1, arg2) { arg1; };",
"+function(arg1, arg2) { arg2; };",
" function(arg1, arg2) { arg2; };",
" function(arg1, arg2) { arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2afb0e7fd4236e4b29fd490cf1b62f8c9cd0aa4c..45dd66dbc8f8be169cdecce0b9c97d87f9ca11dc"
}
,{
"testCaseDescription": "javascript-function-replacement-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"replace": [
{
"start": [
1,
24
],
"end": [
1,
28
]
},
{
"start": [
1,
24
],
"end": [
1,
28
]
}
]
},
"summary": "Replaced the 'arg2' identifier with the 'arg1' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"patch": [
"diff --git a/function.js b/function.js",
"index 924c99e8..43894067 100644",
"--- a/function.js",
"+++ b/function.js",
"@@ -1,3 +1,3 @@",
"-function(arg1, arg2) { arg2; };",
"+function(arg1, arg2) { arg1; };",
" function(arg1, arg2) { arg2; };",
" function(arg1, arg2) { arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "45dd66dbc8f8be169cdecce0b9c97d87f9ca11dc..41a354cba04c0211386645c4289065cc24bdeef3"
}
,{
"testCaseDescription": "javascript-function-delete-replacement-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) function"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"patch": [
"diff --git a/function.js b/function.js",
"index 43894067..254dbcf8 100644",
"--- a/function.js",
"+++ b/function.js",
"@@ -1,3 +1,2 @@",
"-function(arg1, arg2) { arg1; };",
"-function(arg1, arg2) { arg2; };",
" function(arg1, arg2) { arg2; };",
"+function(arg1, arg2) { arg1; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "41a354cba04c0211386645c4289065cc24bdeef3..f291cc92d0771db6741373222d4a87ad70a2ec50"
}
,{
"testCaseDescription": "javascript-function-delete-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) function"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"patch": [
"diff --git a/function.js b/function.js",
"index 254dbcf8..b37e8671 100644",
"--- a/function.js",
"+++ b/function.js",
"@@ -1,2 +1 @@",
"-function(arg1, arg2) { arg2; };",
" function(arg1, arg2) { arg1; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "f291cc92d0771db6741373222d4a87ad70a2ec50..894e344b0f932970bf8c7ac7171f50e9a3ecfb31"
}
,{
"testCaseDescription": "javascript-function-delete-rest-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) function"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"patch": [
"diff --git a/function.js b/function.js",
"index b37e8671..e69de29b 100644",
"--- a/function.js",
"+++ b/function.js",
"@@ -1 +0,0 @@",
"-function(arg1, arg2) { arg1; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "894e344b0f932970bf8c7ac7171f50e9a3ecfb31..3db5e012ed131477f930a3f737f9f525618c5e14"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-generator-function-insert-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
59
]
}
},
"summary": "Added the 'generateStuff' function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index e69de29b..04e8a59b 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -0,0 +1 @@",
"+function *generateStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d8102af2a206032f1800de2be9ffff6d65b2efeb..de67b99e61edaca7ae981ed9c142f6ab95d9f432"
}
,{
"testCaseDescription": "javascript-generator-function-replacement-insert-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
62
]
}
},
"summary": "Added the 'generateNewStuff' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
59
]
}
},
"summary": "Added the 'generateStuff' function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index 04e8a59b..ed5c0370 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1 +1,3 @@",
"+function *generateNewStuff(arg1, arg2) { yield; yield arg2; };",
"+function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "de67b99e61edaca7ae981ed9c142f6ab95d9f432..7ee3abaa92ddfabb7e8c00dcd6f29d54fe8dbfd5"
}
,{
"testCaseDescription": "javascript-generator-function-delete-insert-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
11
],
"end": [
1,
27
]
},
{
"start": [
1,
11
],
"end": [
1,
24
]
}
]
},
"summary": "Replaced the 'generateNewStuff' identifier with the 'generateStuff' identifier in the generateStuff function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index ed5c0370..0895c3fd 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1,3 +1,3 @@",
"-function *generateNewStuff(arg1, arg2) { yield; yield arg2; };",
"+function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "7ee3abaa92ddfabb7e8c00dcd6f29d54fe8dbfd5..372df0851ac98c464084e9cea2c92c49523231f1"
}
,{
"testCaseDescription": "javascript-generator-function-replacement-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
11
],
"end": [
1,
24
]
},
{
"start": [
1,
11
],
"end": [
1,
27
]
}
]
},
"summary": "Replaced the 'generateStuff' identifier with the 'generateNewStuff' identifier in the generateNewStuff function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index 0895c3fd..ed5c0370 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1,3 +1,3 @@",
"-function *generateStuff(arg1, arg2) { yield; yield arg2; };",
"+function *generateNewStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "372df0851ac98c464084e9cea2c92c49523231f1..c459aa7f1d4096990986fb3f21a1a189bf9b8089"
}
,{
"testCaseDescription": "javascript-generator-function-delete-replacement-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
62
]
}
},
"summary": "Deleted the 'generateNewStuff' function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
59
]
}
},
"summary": "Deleted the 'generateStuff' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
62
]
}
},
"summary": "Added the 'generateNewStuff' function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index ed5c0370..1dae1059 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1,3 +1,2 @@",
"-function *generateNewStuff(arg1, arg2) { yield; yield arg2; };",
"-function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateStuff(arg1, arg2) { yield; yield arg2; };",
"+function *generateNewStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c459aa7f1d4096990986fb3f21a1a189bf9b8089..76ab51c9ae7737b7e80c4fde367a23b3e5b2593d"
}
,{
"testCaseDescription": "javascript-generator-function-delete-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
59
]
}
},
"summary": "Deleted the 'generateStuff' function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index 1dae1059..5846d1c0 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1,2 +1 @@",
"-function *generateStuff(arg1, arg2) { yield; yield arg2; };",
" function *generateNewStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "76ab51c9ae7737b7e80c4fde367a23b3e5b2593d..b0b956ba5fff84d1434db18b092a00f00b386be4"
}
,{
"testCaseDescription": "javascript-generator-function-delete-rest-test",
"expectedResult": {
"changes": {
"generator-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
62
]
}
},
"summary": "Deleted the 'generateNewStuff' function"
}
]
},
"errors": {}
},
"filePaths": [
"generator-function.js"
],
"patch": [
"diff --git a/generator-function.js b/generator-function.js",
"index 5846d1c0..e69de29b 100644",
"--- a/generator-function.js",
"+++ b/generator-function.js",
"@@ -1 +0,0 @@",
"-function *generateNewStuff(arg1, arg2) { yield; yield arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b0b956ba5fff84d1434db18b092a00f00b386be4..e2bc5f41752affe43a52e069b9eb8b2a96177c3d"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-identifier-insert-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"patch": [
"diff --git a/identifier.js b/identifier.js",
"index e69de29b..1cf4ad05 100644",
"--- a/identifier.js",
"+++ b/identifier.js",
"@@ -0,0 +1 @@",
"+theVar;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "6fafed165d4a88fcc9e2b3dba7371aeadee185e4..114a0cd78de25272f4e9ba47085e4a6a1fab39ee"
}
,{
"testCaseDescription": "javascript-identifier-replacement-insert-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'theVar2' identifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"patch": [
"diff --git a/identifier.js b/identifier.js",
"index 1cf4ad05..888855ad 100644",
"--- a/identifier.js",
"+++ b/identifier.js",
"@@ -1 +1,3 @@",
"+theVar2",
"+theVar;",
" theVar;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "114a0cd78de25272f4e9ba47085e4a6a1fab39ee..ff0ccb9d0e356bb197f5c306b88123ced4bac674"
}
,{
"testCaseDescription": "javascript-identifier-delete-insert-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
8
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'theVar2' identifier with the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"patch": [
"diff --git a/identifier.js b/identifier.js",
"index 888855ad..60e041c1 100644",
"--- a/identifier.js",
"+++ b/identifier.js",
"@@ -1,3 +1,3 @@",
"-theVar2",
"+theVar;",
" theVar;",
" theVar;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ff0ccb9d0e356bb197f5c306b88123ced4bac674..87d8b10ecae782e4ec7b12b933c2ce2657d28b0b"
}
,{
"testCaseDescription": "javascript-identifier-replacement-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced the 'theVar' identifier with the 'theVar2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"patch": [
"diff --git a/identifier.js b/identifier.js",
"index 60e041c1..888855ad 100644",
"--- a/identifier.js",
"+++ b/identifier.js",
"@@ -1,3 +1,3 @@",
"-theVar;",
"+theVar2",
" theVar;",
" theVar;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "87d8b10ecae782e4ec7b12b933c2ce2657d28b0b..8975c710ddebc06ed4478aa881142db452f3d5e1"
}
,{
"testCaseDescription": "javascript-identifier-delete-replacement-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'theVar' identifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'theVar2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"patch": [
"diff --git a/identifier.js b/identifier.js",
"index 888855ad..fbc7b28e 100644",
"--- a/identifier.js",
"+++ b/identifier.js",
"@@ -1,3 +1,2 @@",
"-theVar2",
"-theVar;",
" theVar;",
"+theVar2"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "8975c710ddebc06ed4478aa881142db452f3d5e1..71a98ae6a067cb23e612551f9e48bdd3fc2eef43"
}
,{
"testCaseDescription": "javascript-identifier-delete-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"patch": [
"diff --git a/identifier.js b/identifier.js",
"index fbc7b28e..7276d95d 100644",
"--- a/identifier.js",
"+++ b/identifier.js",
"@@ -1,2 +1 @@",
"-theVar;",
" theVar2"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "71a98ae6a067cb23e612551f9e48bdd3fc2eef43..53b06cf390f8031356883e7fa7fa89cfe0bd571d"
}
,{
"testCaseDescription": "javascript-identifier-delete-rest-test",
"expectedResult": {
"changes": {
"identifier.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"identifier.js"
],
"patch": [
"diff --git a/identifier.js b/identifier.js",
"index 7276d95d..e69de29b 100644",
"--- a/identifier.js",
"+++ b/identifier.js",
"@@ -1 +0,0 @@",
"-theVar2"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "53b06cf390f8031356883e7fa7fa89cfe0bd571d..be8a925f9e9f750a7a1e6b9f98b88d2754a5fbd1"
}]

View File

@ -1,791 +0,0 @@
[{
"testCaseDescription": "javascript-if-else-insert-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Added the 'x' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
"patch": [
"diff --git a/if-else.js b/if-else.js",
"index e69de29b..d81ebadd 100644",
"--- a/if-else.js",
"+++ b/if-else.js",
"@@ -0,0 +1 @@",
"+if (x) y; else if (a) b; else if (c) d; else if (e) f; else g"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b4cd78441921b033ec1c1b1714a071b9720cb895..aadf4d112491cdc472bee213f27a2dcf5c8681a6"
}
,{
"testCaseDescription": "javascript-if-else-replacement-insert-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Added the 'g' if statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Added the 'x' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
"patch": [
"diff --git a/if-else.js b/if-else.js",
"index d81ebadd..6bb0eaa7 100644",
"--- a/if-else.js",
"+++ b/if-else.js",
"@@ -1 +1,3 @@",
"+if (g) h; else if (i) { j; } else if (k) l; else if (m) { n; } else o",
"+if (x) y; else if (a) b; else if (c) d; else if (e) f; else g",
" if (x) y; else if (a) b; else if (c) d; else if (e) f; else g"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "aadf4d112491cdc472bee213f27a2dcf5c8681a6..f1e7e4f2c0fe8555888a47d41b3d2f5994c35ec0"
}
,{
"testCaseDescription": "javascript-if-else-delete-insert-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced the 'g' identifier with the 'x' identifier in the 'x' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
8
],
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'y' identifier in the 'x' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'i' identifier with the 'a' identifier in the 'a' if statement"
},
{
"span": {
"insert": {
"start": [
1,
23
],
"end": [
1,
24
]
}
},
"summary": "Added the 'b' identifier in the 'a' if statement"
},
{
"span": {
"delete": {
"start": [
1,
25
],
"end": [
1,
26
]
}
},
"summary": "Deleted the 'j' identifier in the 'a' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
39
],
"end": [
1,
40
]
},
{
"start": [
1,
35
],
"end": [
1,
36
]
}
]
},
"summary": "Replaced the 'k' identifier with the 'c' identifier in the 'c' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
42
],
"end": [
1,
43
]
},
{
"start": [
1,
38
],
"end": [
1,
39
]
}
]
},
"summary": "Replaced the 'l' identifier with the 'd' identifier in the 'c' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
54
],
"end": [
1,
55
]
},
{
"start": [
1,
50
],
"end": [
1,
51
]
}
]
},
"summary": "Replaced the 'm' identifier with the 'e' identifier in the 'e' if statement"
},
{
"span": {
"insert": {
"start": [
1,
53
],
"end": [
1,
54
]
}
},
"summary": "Added the 'f' identifier in the 'e' if statement"
},
{
"span": {
"delete": {
"start": [
1,
59
],
"end": [
1,
60
]
}
},
"summary": "Deleted the 'n' identifier in the 'e' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
69
],
"end": [
1,
70
]
},
{
"start": [
1,
61
],
"end": [
1,
62
]
}
]
},
"summary": "Replaced the 'o' identifier with the 'g' identifier in the 'e' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
"patch": [
"diff --git a/if-else.js b/if-else.js",
"index 6bb0eaa7..2034be1b 100644",
"--- a/if-else.js",
"+++ b/if-else.js",
"@@ -1,3 +1,3 @@",
"-if (g) h; else if (i) { j; } else if (k) l; else if (m) { n; } else o",
"+if (x) y; else if (a) b; else if (c) d; else if (e) f; else g",
" if (x) y; else if (a) b; else if (c) d; else if (e) f; else g",
" if (x) y; else if (a) b; else if (c) d; else if (e) f; else g"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "f1e7e4f2c0fe8555888a47d41b3d2f5994c35ec0..fb6748df94bbff9f84c222be3a5223e4f286e6d6"
}
,{
"testCaseDescription": "javascript-if-else-replacement-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'g' identifier in the 'g' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
8
],
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'h' identifier in the 'g' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'i' identifier in the 'i' if statement"
},
{
"span": {
"insert": {
"start": [
1,
25
],
"end": [
1,
26
]
}
},
"summary": "Added the 'j' identifier in the 'i' if statement"
},
{
"span": {
"delete": {
"start": [
1,
23
],
"end": [
1,
24
]
}
},
"summary": "Deleted the 'b' identifier in the 'i' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
35
],
"end": [
1,
36
]
},
{
"start": [
1,
39
],
"end": [
1,
40
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'k' identifier in the 'k' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
38
],
"end": [
1,
39
]
},
{
"start": [
1,
42
],
"end": [
1,
43
]
}
]
},
"summary": "Replaced the 'd' identifier with the 'l' identifier in the 'k' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
50
],
"end": [
1,
51
]
},
{
"start": [
1,
54
],
"end": [
1,
55
]
}
]
},
"summary": "Replaced the 'e' identifier with the 'm' identifier in the 'm' if statement"
},
{
"span": {
"insert": {
"start": [
1,
59
],
"end": [
1,
60
]
}
},
"summary": "Added the 'n' identifier in the 'm' if statement"
},
{
"span": {
"delete": {
"start": [
1,
53
],
"end": [
1,
54
]
}
},
"summary": "Deleted the 'f' identifier in the 'm' if statement"
},
{
"span": {
"replace": [
{
"start": [
1,
61
],
"end": [
1,
62
]
},
{
"start": [
1,
69
],
"end": [
1,
70
]
}
]
},
"summary": "Replaced the 'g' identifier with the 'o' identifier in the 'm' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
"patch": [
"diff --git a/if-else.js b/if-else.js",
"index 2034be1b..6bb0eaa7 100644",
"--- a/if-else.js",
"+++ b/if-else.js",
"@@ -1,3 +1,3 @@",
"-if (x) y; else if (a) b; else if (c) d; else if (e) f; else g",
"+if (g) h; else if (i) { j; } else if (k) l; else if (m) { n; } else o",
" if (x) y; else if (a) b; else if (c) d; else if (e) f; else g",
" if (x) y; else if (a) b; else if (c) d; else if (e) f; else g"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fb6748df94bbff9f84c222be3a5223e4f286e6d6..b759f7b93d1635ed0f5fc019b59a77eab7e1ec4c"
}
,{
"testCaseDescription": "javascript-if-else-delete-replacement-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Deleted the 'g' if statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Deleted the 'x' if statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Added the 'g' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
"patch": [
"diff --git a/if-else.js b/if-else.js",
"index 6bb0eaa7..e26d6c43 100644",
"--- a/if-else.js",
"+++ b/if-else.js",
"@@ -1,3 +1,2 @@",
"-if (g) h; else if (i) { j; } else if (k) l; else if (m) { n; } else o",
"-if (x) y; else if (a) b; else if (c) d; else if (e) f; else g",
" if (x) y; else if (a) b; else if (c) d; else if (e) f; else g",
"+if (g) h; else if (i) { j; } else if (k) l; else if (m) { n; } else o"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b759f7b93d1635ed0f5fc019b59a77eab7e1ec4c..937c826a445a6b127e7b7ad843d61679e3b29a3e"
}
,{
"testCaseDescription": "javascript-if-else-delete-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Deleted the 'x' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
"patch": [
"diff --git a/if-else.js b/if-else.js",
"index e26d6c43..1a55d0bd 100644",
"--- a/if-else.js",
"+++ b/if-else.js",
"@@ -1,2 +1 @@",
"-if (x) y; else if (a) b; else if (c) d; else if (e) f; else g",
" if (g) h; else if (i) { j; } else if (k) l; else if (m) { n; } else o"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "937c826a445a6b127e7b7ad843d61679e3b29a3e..be324949da4b47241ea8e830d97f64471037fe2a"
}
,{
"testCaseDescription": "javascript-if-else-delete-rest-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Deleted the 'g' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
"patch": [
"diff --git a/if-else.js b/if-else.js",
"index 1a55d0bd..e69de29b 100644",
"--- a/if-else.js",
"+++ b/if-else.js",
"@@ -1 +0,0 @@",
"-if (g) h; else if (i) { j; } else if (k) l; else if (m) { n; } else o"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "be324949da4b47241ea8e830d97f64471037fe2a..414acb7061249f3ead467a7957efdb21229fcb7b"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-if-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Added the 'x' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"patch": [
"diff --git a/if.js b/if.js",
"index e69de29b..52d4b4f0 100644",
"--- a/if.js",
"+++ b/if.js",
"@@ -0,0 +1 @@",
"+if (x) { log(y); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "83655892f9e9d2eee70e56c2adffd7594548e463..1d116a5383fcecace997187daf8eaf9b9d042c6d"
}
,{
"testCaseDescription": "javascript-if-replacement-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Added the 'a.b' if statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
19
]
}
},
"summary": "Added the 'x' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"patch": [
"diff --git a/if.js b/if.js",
"index 52d4b4f0..ae4ee328 100644",
"--- a/if.js",
"+++ b/if.js",
"@@ -1 +1,3 @@",
"+if (a.b) { log(c); d; }",
"+if (x) { log(y); }",
" if (x) { log(y); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1d116a5383fcecace997187daf8eaf9b9d042c6d..b1b97f8f938385cb7845c6832bdf87d1a562213e"
}
,{
"testCaseDescription": "javascript-if-delete-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
24
]
},
{
"start": [
1,
1
],
"end": [
1,
19
]
}
]
},
"summary": "Replaced the 'a.b' if statement with the 'x' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"patch": [
"diff --git a/if.js b/if.js",
"index ae4ee328..df55832d 100644",
"--- a/if.js",
"+++ b/if.js",
"@@ -1,3 +1,3 @@",
"-if (a.b) { log(c); d; }",
"+if (x) { log(y); }",
" if (x) { log(y); }",
" if (x) { log(y); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b1b97f8f938385cb7845c6832bdf87d1a562213e..af1bef55c0ca6adc7f20c358508ed24471776468"
}
,{
"testCaseDescription": "javascript-if-replacement-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
19
]
},
{
"start": [
1,
1
],
"end": [
1,
24
]
}
]
},
"summary": "Replaced the 'x' if statement with the 'a.b' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"patch": [
"diff --git a/if.js b/if.js",
"index df55832d..ae4ee328 100644",
"--- a/if.js",
"+++ b/if.js",
"@@ -1,3 +1,3 @@",
"-if (x) { log(y); }",
"+if (a.b) { log(c); d; }",
" if (x) { log(y); }",
" if (x) { log(y); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "af1bef55c0ca6adc7f20c358508ed24471776468..81da464aa237b3dd8fdba181d9a4c4899ea81b28"
}
,{
"testCaseDescription": "javascript-if-delete-replacement-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted the 'a.b' if statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
19
]
}
},
"summary": "Deleted the 'x' if statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Added the 'a.b' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"patch": [
"diff --git a/if.js b/if.js",
"index ae4ee328..38b83efe 100644",
"--- a/if.js",
"+++ b/if.js",
"@@ -1,3 +1,2 @@",
"-if (a.b) { log(c); d; }",
"-if (x) { log(y); }",
" if (x) { log(y); }",
"+if (a.b) { log(c); d; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "81da464aa237b3dd8fdba181d9a4c4899ea81b28..3af63ec3e2e73a2e3bd58ef82ba8063e9aff2193"
}
,{
"testCaseDescription": "javascript-if-delete-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Deleted the 'x' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"patch": [
"diff --git a/if.js b/if.js",
"index 38b83efe..f67163bb 100644",
"--- a/if.js",
"+++ b/if.js",
"@@ -1,2 +1 @@",
"-if (x) { log(y); }",
" if (a.b) { log(c); d; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3af63ec3e2e73a2e3bd58ef82ba8063e9aff2193..0eaec27407e96cd6320c96fb3008f3bc2c47b25c"
}
,{
"testCaseDescription": "javascript-if-delete-rest-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted the 'a.b' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"patch": [
"diff --git a/if.js b/if.js",
"index f67163bb..e69de29b 100644",
"--- a/if.js",
"+++ b/if.js",
"@@ -1 +0,0 @@",
"-if (a.b) { log(c); d; }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "0eaec27407e96cd6320c96fb3008f3bc2c47b25c..b4cd78441921b033ec1c1b1714a071b9720cb895"
}]

File diff suppressed because it is too large Load Diff

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-math-assignment-operator-insert-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'x' math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index e69de29b..7150d6e7 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -0,0 +1 @@",
"+x += 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "e4d0ee4283c629c4f4db185bd8d0179f42fabd77..e9aa22936a48b99e4039ca79c889c5eb6ae88f3d"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'x' math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index 7150d6e7..0bf97e75 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1 +1,3 @@",
"+x += 2;",
"+x += 1;",
" x += 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "e9aa22936a48b99e4039ca79c889c5eb6ae88f3d..60d048bfffe2e9ce6103231bbea0f33d355c6f33"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-insert-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced '2' with '1' in the x math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index 0bf97e75..ad04937a 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1,3 +1,3 @@",
"-x += 2;",
"+x += 1;",
" x += 1;",
" x += 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "60d048bfffe2e9ce6103231bbea0f33d355c6f33..7f2af95ac423a1d9c58e9fc0af9084d9badacc81"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-replacement-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
7
]
},
{
"start": [
1,
6
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced '1' with '2' in the x math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index ad04937a..0bf97e75 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1,3 +1,3 @@",
"-x += 1;",
"+x += 2;",
" x += 1;",
" x += 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "7f2af95ac423a1d9c58e9fc0af9084d9badacc81..83e70acd54ea100ea59edbb91850741ba8f4bf46"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'x' math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index 0bf97e75..71275450 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1,3 +1,2 @@",
"-x += 2;",
"-x += 1;",
" x += 1;",
"+x += 2;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "83e70acd54ea100ea59edbb91850741ba8f4bf46..efd32378a779ec98d822d37348f27e40067fbfc3"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index 71275450..94d14722 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1,2 +1 @@",
"-x += 1;",
" x += 2;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "efd32378a779ec98d822d37348f27e40067fbfc3..1e55c63078f94b4aa301f427638d8fc82cb43d34"
}
,{
"testCaseDescription": "javascript-math-assignment-operator-delete-rest-test",
"expectedResult": {
"changes": {
"math-assignment-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'x' math assignment"
}
]
},
"errors": {}
},
"filePaths": [
"math-assignment-operator.js"
],
"patch": [
"diff --git a/math-assignment-operator.js b/math-assignment-operator.js",
"index 94d14722..e69de29b 100644",
"--- a/math-assignment-operator.js",
"+++ b/math-assignment-operator.js",
"@@ -1 +0,0 @@",
"-x += 2;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1e55c63078f94b4aa301f427638d8fc82cb43d34..ee2bc6eb6721a9dc9b1cf7216a7bc251e3aa9110"
}]

View File

@ -1,401 +0,0 @@
[{
"testCaseDescription": "javascript-math-operator-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Added the 'i + j * 3 - j % 5' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index e69de29b..03446677 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -0,0 +1 @@",
"+i + j * 3 - j % 5;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d305b2fcb86de85314b4ea7b59cd65ae41e82abd..97bc63ef3b2a81b78656e006951c9ec5c5e238ee"
}
,{
"testCaseDescription": "javascript-math-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Added the 'i + j * 2 - j % 4' math operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Added the 'i + j * 3 - j % 5' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index 03446677..79f5f20c 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1 +1,3 @@",
"+i + j * 2 - j % 4;",
"+i + j * 3 - j % 5;",
" i + j * 3 - j % 5;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "97bc63ef3b2a81b78656e006951c9ec5c5e238ee..cf9bff6a28a147a61c1386c3690821fa1d832498"
}
,{
"testCaseDescription": "javascript-math-operator-delete-insert-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced '2' with '3'"
},
{
"span": {
"replace": [
{
"start": [
1,
17
],
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"end": [
1,
18
]
}
]
},
"summary": "Replaced '4' with '5'"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index 79f5f20c..284561c5 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1,3 +1,3 @@",
"-i + j * 2 - j % 4;",
"+i + j * 3 - j % 5;",
" i + j * 3 - j % 5;",
" i + j * 3 - j % 5;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "cf9bff6a28a147a61c1386c3690821fa1d832498..48e0833215918b3fe716f78f0439e9d3ac9faffe"
}
,{
"testCaseDescription": "javascript-math-operator-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced '3' with '2'"
},
{
"span": {
"replace": [
{
"start": [
1,
17
],
"end": [
1,
18
]
},
{
"start": [
1,
17
],
"end": [
1,
18
]
}
]
},
"summary": "Replaced '5' with '4'"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index 284561c5..79f5f20c 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1,3 +1,3 @@",
"-i + j * 3 - j % 5;",
"+i + j * 2 - j % 4;",
" i + j * 3 - j % 5;",
" i + j * 3 - j % 5;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "48e0833215918b3fe716f78f0439e9d3ac9faffe..88f565cef3ef9555051542b3adc913613b4e4f52"
}
,{
"testCaseDescription": "javascript-math-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 2 - j % 4' math operator"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Deleted the 'i + j * 3 - j % 5' math operator"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
18
]
}
},
"summary": "Added the 'i + j * 2 - j % 4' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index 79f5f20c..d1055f77 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1,3 +1,2 @@",
"-i + j * 2 - j % 4;",
"-i + j * 3 - j % 5;",
" i + j * 3 - j % 5;",
"+i + j * 2 - j % 4;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "88f565cef3ef9555051542b3adc913613b4e4f52..d86b3b54331889435fabb2347140ba1ba8de79f4"
}
,{
"testCaseDescription": "javascript-math-operator-delete-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 3 - j % 5' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index d1055f77..79ba2b3f 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1,2 +1 @@",
"-i + j * 3 - j % 5;",
" i + j * 2 - j % 4;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d86b3b54331889435fabb2347140ba1ba8de79f4..da506a786b9acd6e2492bbad3c3379af7ad006be"
}
,{
"testCaseDescription": "javascript-math-operator-delete-rest-test",
"expectedResult": {
"changes": {
"math-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
18
]
}
},
"summary": "Deleted the 'i + j * 2 - j % 4' math operator"
}
]
},
"errors": {}
},
"filePaths": [
"math-operator.js"
],
"patch": [
"diff --git a/math-operator.js b/math-operator.js",
"index 79ba2b3f..e69de29b 100644",
"--- a/math-operator.js",
"+++ b/math-operator.js",
"@@ -1 +0,0 @@",
"-i + j * 2 - j % 4;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "da506a786b9acd6e2492bbad3c3379af7ad006be..3f6c1b75b51ab00da9af216249484caf26091581"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-member-access-assignment-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index e69de29b..7a99e309 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -0,0 +1 @@",
"+y.x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "38c5c9b8a781f4e7cc4870b14cf6308c470f3429..dfc83ef48d655d133fb0a55458c1366156d5dcd5"
}
,{
"testCaseDescription": "javascript-member-access-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'y.x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 7a99e309..32040068 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1 +1,3 @@",
"+y.x = 1;",
"+y.x = 0;",
" y.x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "dfc83ef48d655d133fb0a55458c1366156d5dcd5..2f1292654405588ee8f5af6f5d32a6fe41f199d4"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced '1' with '0' in an assignment to y.x"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 32040068..94893a32 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1,3 +1,3 @@",
"-y.x = 1;",
"+y.x = 0;",
" y.x = 0;",
" y.x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2f1292654405588ee8f5af6f5d32a6fe41f199d4..d5b3572c9cd7b0d71be1d1c4f3e4b27b0aa18a19"
}
,{
"testCaseDescription": "javascript-member-access-assignment-replacement-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced '0' with '1' in an assignment to y.x"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 94893a32..32040068 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1,3 +1,3 @@",
"-y.x = 0;",
"+y.x = 1;",
" y.x = 0;",
" y.x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d5b3572c9cd7b0d71be1d1c4f3e4b27b0aa18a19..6e9736b04aed1ded937466eb5b8819c96538b6ae"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 32040068..8d78a24f 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1,3 +1,2 @@",
"-y.x = 1;",
"-y.x = 0;",
" y.x = 0;",
"+y.x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "6e9736b04aed1ded937466eb5b8819c96538b6ae..686d31ecb7b8177914e9e9f17ba16debddd6fbf3"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 8d78a24f..799018d0 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1,2 +1 @@",
"-y.x = 0;",
" y.x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "686d31ecb7b8177914e9e9f17ba16debddd6fbf3..80996d78a6fe9816eb9e48a5143c6ea7a6856b69"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 799018d0..e69de29b 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1 +0,0 @@",
"-y.x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "80996d78a6fe9816eb9e48a5143c6ea7a6856b69..4f4ca4d777cec4816fc7903df7a6f611fff474ce"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-member-access-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Added the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index e69de29b..3c837c9a 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -0,0 +1 @@",
"+x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3ec83ab3d4454bf8ab6eaf1766606e79e75fdf4c..aa4ec5d840935494fce118bd41353549d0cdbbf8"
}
,{
"testCaseDescription": "javascript-member-access-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Added the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 3c837c9a..858131af 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1 +1,3 @@",
"+x.someOtherProperty",
"+x.someProperty;",
" x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "aa4ec5d840935494fce118bd41353549d0cdbbf8..d3cc313b46cc25cb09913b017581322ba11d1701"
}
,{
"testCaseDescription": "javascript-member-access-delete-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
20
]
},
{
"start": [
1,
3
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'someOtherProperty' identifier with the 'someProperty' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 858131af..5ed8a8d2 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,3 +1,3 @@",
"-x.someOtherProperty",
"+x.someProperty;",
" x.someProperty;",
" x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d3cc313b46cc25cb09913b017581322ba11d1701..239fe4dae6ad065f0ce7559ae832137be4385543"
}
,{
"testCaseDescription": "javascript-member-access-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
15
]
},
{
"start": [
1,
3
],
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'someProperty' identifier with the 'someOtherProperty' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 5ed8a8d2..858131af 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,3 +1,3 @@",
"-x.someProperty;",
"+x.someOtherProperty",
" x.someProperty;",
" x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "239fe4dae6ad065f0ce7559ae832137be4385543..42c2a2c8ffc1f9e92daff27331e9024c2cf7a2a7"
}
,{
"testCaseDescription": "javascript-member-access-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 858131af..81f5f468 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,3 +1,2 @@",
"-x.someOtherProperty",
"-x.someProperty;",
" x.someProperty;",
"+x.someOtherProperty"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "42c2a2c8ffc1f9e92daff27331e9024c2cf7a2a7..2c88d1b7f6db2fa2292f17ba70d2f5c81f59d84f"
}
,{
"testCaseDescription": "javascript-member-access-delete-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 81f5f468..8329c770 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,2 +1 @@",
"-x.someProperty;",
" x.someOtherProperty"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2c88d1b7f6db2fa2292f17ba70d2f5c81f59d84f..13f524d2ecd23e8eae275bb915c62659711e986f"
}
,{
"testCaseDescription": "javascript-member-access-delete-rest-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 8329c770..e69de29b 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1 +0,0 @@",
"-x.someOtherProperty"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "13f524d2ecd23e8eae275bb915c62659711e986f..9df9c3aa803afb96ac83c93c8dcc1ae206dae105"
}]

View File

@ -1,347 +0,0 @@
[{
"testCaseDescription": "javascript-method-call-insert-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"patch": [
"diff --git a/method-call.js b/method-call.js",
"index e69de29b..07ab90c6 100644",
"--- a/method-call.js",
"+++ b/method-call.js",
"@@ -0,0 +1 @@",
"+object.someMethod(arg1, \"arg2\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "7ac818c08ed7e0badc60f225f6a1db12b6876c10..f07c470368dda0b08622e147a64591a14a9f163c"
}
,{
"testCaseDescription": "javascript-method-call-replacement-insert-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' function call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"patch": [
"diff --git a/method-call.js b/method-call.js",
"index 07ab90c6..9341e175 100644",
"--- a/method-call.js",
"+++ b/method-call.js",
"@@ -1 +1,3 @@",
"+object.someMethod(arg1, \"arg3\");",
"+object.someMethod(arg1, \"arg2\");",
" object.someMethod(arg1, \"arg2\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "f07c470368dda0b08622e147a64591a14a9f163c..c297bda9adafb39d18305a150a206915a4eb4d6a"
}
,{
"testCaseDescription": "javascript-method-call-delete-insert-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
25
],
"end": [
1,
31
]
},
{
"start": [
1,
25
],
"end": [
1,
31
]
}
]
},
"summary": "Replaced the \"arg3\" string with the \"arg2\" string in the object.someMethod(arg1, \"arg2\") function call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"patch": [
"diff --git a/method-call.js b/method-call.js",
"index 9341e175..f6ada2d1 100644",
"--- a/method-call.js",
"+++ b/method-call.js",
"@@ -1,3 +1,3 @@",
"-object.someMethod(arg1, \"arg3\");",
"+object.someMethod(arg1, \"arg2\");",
" object.someMethod(arg1, \"arg2\");",
" object.someMethod(arg1, \"arg2\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c297bda9adafb39d18305a150a206915a4eb4d6a..3d0c6b728a19077d5ae027c66817c7d2c008fdfa"
}
,{
"testCaseDescription": "javascript-method-call-replacement-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
25
],
"end": [
1,
31
]
},
{
"start": [
1,
25
],
"end": [
1,
31
]
}
]
},
"summary": "Replaced the \"arg2\" string with the \"arg3\" string in the object.someMethod(arg1, \"arg3\") function call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"patch": [
"diff --git a/method-call.js b/method-call.js",
"index f6ada2d1..9341e175 100644",
"--- a/method-call.js",
"+++ b/method-call.js",
"@@ -1,3 +1,3 @@",
"-object.someMethod(arg1, \"arg2\");",
"+object.someMethod(arg1, \"arg3\");",
" object.someMethod(arg1, \"arg2\");",
" object.someMethod(arg1, \"arg2\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3d0c6b728a19077d5ae027c66817c7d2c008fdfa..9ef786702b39599695e9b6094310e252f10c145f"
}
,{
"testCaseDescription": "javascript-method-call-delete-replacement-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' function call"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' function call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"patch": [
"diff --git a/method-call.js b/method-call.js",
"index 9341e175..894dcf66 100644",
"--- a/method-call.js",
"+++ b/method-call.js",
"@@ -1,3 +1,2 @@",
"-object.someMethod(arg1, \"arg3\");",
"-object.someMethod(arg1, \"arg2\");",
" object.someMethod(arg1, \"arg2\");",
"+object.someMethod(arg1, \"arg3\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9ef786702b39599695e9b6094310e252f10c145f..55854134d28004d4d4143a3361d185264b8d7366"
}
,{
"testCaseDescription": "javascript-method-call-delete-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"patch": [
"diff --git a/method-call.js b/method-call.js",
"index 894dcf66..a82528c8 100644",
"--- a/method-call.js",
"+++ b/method-call.js",
"@@ -1,2 +1 @@",
"-object.someMethod(arg1, \"arg2\");",
" object.someMethod(arg1, \"arg3\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "55854134d28004d4d4143a3361d185264b8d7366..9459037ebf06a74ce9a64a546617fb290c7799fe"
}
,{
"testCaseDescription": "javascript-method-call-delete-rest-test",
"expectedResult": {
"changes": {
"method-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"method-call.js"
],
"patch": [
"diff --git a/method-call.js b/method-call.js",
"index a82528c8..e69de29b 100644",
"--- a/method-call.js",
"+++ b/method-call.js",
"@@ -1 +0,0 @@",
"-object.someMethod(arg1, \"arg3\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "9459037ebf06a74ce9a64a546617fb290c7799fe..c81796cd087e4f62be538eda89091e76ae3fa5a7"
}]

View File

@ -1,467 +0,0 @@
[{
"testCaseDescription": "javascript-named-function-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Added the 'myFunction' function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"patch": [
"diff --git a/named-function.js b/named-function.js",
"index e69de29b..94b19f8e 100644",
"--- a/named-function.js",
"+++ b/named-function.js",
"@@ -0,0 +1 @@",
"+function myFunction(arg1, arg2) { arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "e2bc5f41752affe43a52e069b9eb8b2a96177c3d..39d91ed8e9d663018f3eca928754c6817bccc7e1"
}
,{
"testCaseDescription": "javascript-named-function-replacement-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
45
]
}
},
"summary": "Added the 'anotherFunction' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Added the 'myFunction' function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"patch": [
"diff --git a/named-function.js b/named-function.js",
"index 94b19f8e..cb766a0e 100644",
"--- a/named-function.js",
"+++ b/named-function.js",
"@@ -1 +1,3 @@",
"+function anotherFunction() { return false; };",
"+function myFunction(arg1, arg2) { arg2; };",
" function myFunction(arg1, arg2) { arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "39d91ed8e9d663018f3eca928754c6817bccc7e1..5db9ac6e8e408333016c40634199e32b87e11743"
}
,{
"testCaseDescription": "javascript-named-function-delete-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
25
]
},
{
"start": [
1,
10
],
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'anotherFunction' identifier with the 'myFunction' identifier in the myFunction function"
},
{
"span": {
"insert": {
"start": [
1,
21
],
"end": [
1,
25
]
}
},
"summary": "Added the 'arg1' identifier in the myFunction function"
},
{
"span": {
"insert": {
"start": [
1,
27
],
"end": [
1,
31
]
}
},
"summary": "Added the 'arg2' identifier in the myFunction function"
},
{
"span": {
"insert": {
"start": [
1,
35
],
"end": [
1,
39
]
}
},
"summary": "Added the 'arg2' identifier in the myFunction function"
},
{
"span": {
"delete": {
"start": [
1,
30
],
"end": [
1,
43
]
}
},
"summary": "Deleted the 'false' return statement in the myFunction function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"patch": [
"diff --git a/named-function.js b/named-function.js",
"index cb766a0e..c9cff077 100644",
"--- a/named-function.js",
"+++ b/named-function.js",
"@@ -1,3 +1,3 @@",
"-function anotherFunction() { return false; };",
"+function myFunction(arg1, arg2) { arg2; };",
" function myFunction(arg1, arg2) { arg2; };",
" function myFunction(arg1, arg2) { arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "5db9ac6e8e408333016c40634199e32b87e11743..a137cdf1491fd4dcd1d2d8488457b0b4268885d6"
}
,{
"testCaseDescription": "javascript-named-function-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
20
]
},
{
"start": [
1,
10
],
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'myFunction' identifier with the 'anotherFunction' identifier in the anotherFunction function"
},
{
"span": {
"delete": {
"start": [
1,
21
],
"end": [
1,
25
]
}
},
"summary": "Deleted the 'arg1' identifier in the anotherFunction function"
},
{
"span": {
"delete": {
"start": [
1,
27
],
"end": [
1,
31
]
}
},
"summary": "Deleted the 'arg2' identifier in the anotherFunction function"
},
{
"span": {
"insert": {
"start": [
1,
30
],
"end": [
1,
43
]
}
},
"summary": "Added the 'false' return statement in the anotherFunction function"
},
{
"span": {
"delete": {
"start": [
1,
35
],
"end": [
1,
39
]
}
},
"summary": "Deleted the 'arg2' identifier in the anotherFunction function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"patch": [
"diff --git a/named-function.js b/named-function.js",
"index c9cff077..cb766a0e 100644",
"--- a/named-function.js",
"+++ b/named-function.js",
"@@ -1,3 +1,3 @@",
"-function myFunction(arg1, arg2) { arg2; };",
"+function anotherFunction() { return false; };",
" function myFunction(arg1, arg2) { arg2; };",
" function myFunction(arg1, arg2) { arg2; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "a137cdf1491fd4dcd1d2d8488457b0b4268885d6..26cbf606ef723c3d86016fdc847b01b8598ea5b8"
}
,{
"testCaseDescription": "javascript-named-function-delete-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
45
]
}
},
"summary": "Deleted the 'anotherFunction' function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Deleted the 'myFunction' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
45
]
}
},
"summary": "Added the 'anotherFunction' function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"patch": [
"diff --git a/named-function.js b/named-function.js",
"index cb766a0e..148bcc77 100644",
"--- a/named-function.js",
"+++ b/named-function.js",
"@@ -1,3 +1,2 @@",
"-function anotherFunction() { return false; };",
"-function myFunction(arg1, arg2) { arg2; };",
" function myFunction(arg1, arg2) { arg2; };",
"+function anotherFunction() { return false; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "26cbf606ef723c3d86016fdc847b01b8598ea5b8..b7e66f951f5e353eea7c2a000d75fb1b48b1d891"
}
,{
"testCaseDescription": "javascript-named-function-delete-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'myFunction' function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"patch": [
"diff --git a/named-function.js b/named-function.js",
"index 148bcc77..80e11b02 100644",
"--- a/named-function.js",
"+++ b/named-function.js",
"@@ -1,2 +1 @@",
"-function myFunction(arg1, arg2) { arg2; };",
" function anotherFunction() { return false; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b7e66f951f5e353eea7c2a000d75fb1b48b1d891..b4f70929674495233eb104375e3e72b7d49e19a9"
}
,{
"testCaseDescription": "javascript-named-function-delete-rest-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
45
]
}
},
"summary": "Deleted the 'anotherFunction' function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"patch": [
"diff --git a/named-function.js b/named-function.js",
"index 80e11b02..e69de29b 100644",
"--- a/named-function.js",
"+++ b/named-function.js",
"@@ -1 +0,0 @@",
"-function anotherFunction() { return false; };"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b4f70929674495233eb104375e3e72b7d49e19a9..3ec83ab3d4454bf8ab6eaf1766606e79e75fdf4c"
}]

View File

@ -1,401 +0,0 @@
[{
"testCaseDescription": "javascript-nested-do-while-in-function-insert-test",
"expectedResult": {
"changes": {
"nested-do-while-in-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
65
]
}
},
"summary": "Added the 'f' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-do-while-in-function.js"
],
"patch": [
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
"index e69de29b..d205614e 100644",
"--- a/nested-do-while-in-function.js",
"+++ b/nested-do-while-in-function.js",
"@@ -0,0 +1 @@",
"+function f(arg1, arg2) { do { something(arg1); } while (arg2); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "70cf6162f7fd2ac244c6fa15d737d0774e4a8573..927c65eb062891a77d81ea7d721df841577e19bc"
}
,{
"testCaseDescription": "javascript-nested-do-while-in-function-replacement-insert-test",
"expectedResult": {
"changes": {
"nested-do-while-in-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
65
]
}
},
"summary": "Added the 'f' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
65
]
}
},
"summary": "Added the 'f' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-do-while-in-function.js"
],
"patch": [
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
"index d205614e..5dfcca69 100644",
"--- a/nested-do-while-in-function.js",
"+++ b/nested-do-while-in-function.js",
"@@ -1 +1,3 @@",
"+function f(arg1, arg2) { do { something(arg2); } while (arg1); }",
"+function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "927c65eb062891a77d81ea7d721df841577e19bc..622d3ead473debf32e9b4567910e996f8376e78f"
}
,{
"testCaseDescription": "javascript-nested-do-while-in-function-delete-insert-test",
"expectedResult": {
"changes": {
"nested-do-while-in-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
41
],
"end": [
1,
45
]
},
{
"start": [
1,
41
],
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'arg2' identifier with the 'arg1' identifier in the something(arg1) function call of the 'f' function"
},
{
"span": {
"replace": [
{
"start": [
1,
57
],
"end": [
1,
61
]
},
{
"start": [
1,
57
],
"end": [
1,
61
]
}
]
},
"summary": "Replaced the 'arg1' identifier with the 'arg2' identifier in the arg2 do/while statement of the 'f' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-do-while-in-function.js"
],
"patch": [
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
"index 5dfcca69..49cff7e6 100644",
"--- a/nested-do-while-in-function.js",
"+++ b/nested-do-while-in-function.js",
"@@ -1,3 +1,3 @@",
"-function f(arg1, arg2) { do { something(arg2); } while (arg1); }",
"+function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "622d3ead473debf32e9b4567910e996f8376e78f..537177a54837f185a743e5ef597a1816aeedd3b5"
}
,{
"testCaseDescription": "javascript-nested-do-while-in-function-replacement-test",
"expectedResult": {
"changes": {
"nested-do-while-in-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
41
],
"end": [
1,
45
]
},
{
"start": [
1,
41
],
"end": [
1,
45
]
}
]
},
"summary": "Replaced the 'arg1' identifier with the 'arg2' identifier in the something(arg2) function call of the 'f' function"
},
{
"span": {
"replace": [
{
"start": [
1,
57
],
"end": [
1,
61
]
},
{
"start": [
1,
57
],
"end": [
1,
61
]
}
]
},
"summary": "Replaced the 'arg2' identifier with the 'arg1' identifier in the arg1 do/while statement of the 'f' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-do-while-in-function.js"
],
"patch": [
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
"index 49cff7e6..5dfcca69 100644",
"--- a/nested-do-while-in-function.js",
"+++ b/nested-do-while-in-function.js",
"@@ -1,3 +1,3 @@",
"-function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
"+function f(arg1, arg2) { do { something(arg2); } while (arg1); }",
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "537177a54837f185a743e5ef597a1816aeedd3b5..ea1d96bc194133b907c2f0a34b17279c754411b9"
}
,{
"testCaseDescription": "javascript-nested-do-while-in-function-delete-replacement-test",
"expectedResult": {
"changes": {
"nested-do-while-in-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
65
]
}
},
"summary": "Deleted the 'f' function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
65
]
}
},
"summary": "Deleted the 'f' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
65
]
}
},
"summary": "Added the 'f' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-do-while-in-function.js"
],
"patch": [
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
"index 5dfcca69..babb1e64 100644",
"--- a/nested-do-while-in-function.js",
"+++ b/nested-do-while-in-function.js",
"@@ -1,3 +1,2 @@",
"-function f(arg1, arg2) { do { something(arg2); } while (arg1); }",
"-function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
" function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
"+function f(arg1, arg2) { do { something(arg2); } while (arg1); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ea1d96bc194133b907c2f0a34b17279c754411b9..bee9ae3f7c290e5e030495e708808b03ce6c547f"
}
,{
"testCaseDescription": "javascript-nested-do-while-in-function-delete-test",
"expectedResult": {
"changes": {
"nested-do-while-in-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
65
]
}
},
"summary": "Deleted the 'f' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-do-while-in-function.js"
],
"patch": [
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
"index babb1e64..2b155808 100644",
"--- a/nested-do-while-in-function.js",
"+++ b/nested-do-while-in-function.js",
"@@ -1,2 +1 @@",
"-function f(arg1, arg2) { do { something(arg1); } while (arg2); }",
" function f(arg1, arg2) { do { something(arg2); } while (arg1); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "bee9ae3f7c290e5e030495e708808b03ce6c547f..92f5118883df9ee1d8ebb05177479fe27adb0610"
}
,{
"testCaseDescription": "javascript-nested-do-while-in-function-delete-rest-test",
"expectedResult": {
"changes": {
"nested-do-while-in-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
65
]
}
},
"summary": "Deleted the 'f' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-do-while-in-function.js"
],
"patch": [
"diff --git a/nested-do-while-in-function.js b/nested-do-while-in-function.js",
"index 2b155808..e69de29b 100644",
"--- a/nested-do-while-in-function.js",
"+++ b/nested-do-while-in-function.js",
"@@ -1 +0,0 @@",
"-function f(arg1, arg2) { do { something(arg2); } while (arg1); }"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "92f5118883df9ee1d8ebb05177479fe27adb0610..5c937ca5ea01346dc9dd7236aa749f2f7d2df48d"
}]

Some files were not shown because too many files have changed in this diff Show More