mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Merge branch 'master' into ci-profiling
This commit is contained in:
commit
1a064ec79c
@ -48,6 +48,7 @@ library
|
||||
, Renderer.Split
|
||||
, Renderer.Summary
|
||||
, Renderer.SExpression
|
||||
, Renderer.TOC
|
||||
, SemanticDiff
|
||||
, SES
|
||||
, Source
|
||||
|
@ -13,7 +13,7 @@ data Category
|
||||
-- | The top-level branch node.
|
||||
= Program
|
||||
-- | A node indicating syntax errors.
|
||||
| Error
|
||||
| ParseError
|
||||
-- | A boolean expression.
|
||||
| Boolean
|
||||
-- | A bitwise operator.
|
||||
@ -240,7 +240,7 @@ instance (StringConv Category Text) where
|
||||
instance Listable Category where
|
||||
tiers
|
||||
= cons0 Program
|
||||
\/ cons0 Error
|
||||
\/ cons0 ParseError
|
||||
\/ cons0 Boolean
|
||||
\/ cons0 BooleanOperator
|
||||
\/ cons0 MathOperator
|
||||
|
@ -16,6 +16,7 @@ import Category as C
|
||||
import Data.Functor.Both hiding (fst, snd)
|
||||
import qualified Data.Functor.Both as Both
|
||||
import Data.Functor.Listable
|
||||
import Data.List.NonEmpty (nonEmpty)
|
||||
import qualified Data.Text as Text
|
||||
import Data.Text.Listable
|
||||
import Data.Record
|
||||
@ -196,10 +197,10 @@ toTermName source term = case unwrap term of
|
||||
S.Defer expr -> toTermName' expr
|
||||
S.AnonymousFunction params _ -> "anonymous" <> paramsToArgNames params
|
||||
S.Fixed children -> termNameFromChildren term children
|
||||
S.Indexed children -> fromMaybe "branch" $ (toCategoryName . category) . extract <$> head children
|
||||
S.Indexed children -> maybe "branch" sconcat (nonEmpty (intersperse ", " (toTermName' <$> children)))
|
||||
Leaf leaf -> toS leaf
|
||||
S.Assignment identifier _ -> toTermName' identifier
|
||||
S.Function identifier _ _ -> toTermName' identifier
|
||||
S.Function identifier _ _ _ -> toTermName' identifier
|
||||
S.ParameterDecl _ _ -> termNameFromSource term
|
||||
S.FunctionCall i args -> case unwrap i of
|
||||
S.AnonymousFunction params _ ->
|
||||
@ -231,7 +232,7 @@ toTermName source term = case unwrap term of
|
||||
-- TODO: We should remove Case from Syntax since I don't think we should ever
|
||||
-- evaluate Case as a single toTermName Text - joshvera
|
||||
S.Case expr _ -> termNameFromSource expr
|
||||
S.Switch expr _ -> maybe "" toTermName' expr
|
||||
S.Switch exprs _ -> maybe "" toTermName' (fmap snd (unsnoc exprs))
|
||||
S.Ternary expr _ -> toTermName' expr
|
||||
S.OperatorAssignment id _ -> toTermName' id
|
||||
S.Operator _ -> termNameFromSource term
|
||||
@ -239,7 +240,7 @@ toTermName source term = case unwrap term of
|
||||
S.Pair k v -> toKeyName k <> toArgName v
|
||||
S.Return children -> Text.intercalate ", " (termNameFromSource <$> children)
|
||||
S.Yield children -> Text.intercalate ", " (termNameFromSource <$> children)
|
||||
S.Error _ -> termNameFromSource term
|
||||
S.ParseError _ -> termNameFromSource term
|
||||
S.If expr _ -> termNameFromSource expr
|
||||
S.For clauses _ -> termNameFromChildren term clauses
|
||||
S.While expr _ -> toTermName' expr
|
||||
@ -266,7 +267,7 @@ toTermName source term = case unwrap term of
|
||||
S.Continue expr -> maybe "" toTermName' expr
|
||||
S.BlockStatement children -> termNameFromChildren term children
|
||||
S.DefaultCase children -> termNameFromChildren term children
|
||||
S.FieldDecl id expr tag -> termNameFromSource id <> (maybe "" (\expr' -> " " <> termNameFromSource expr') expr) <> (maybe "" ((" " <>) . termNameFromSource) tag)
|
||||
S.FieldDecl id expr tag -> termNameFromSource id <> maybe "" (\expr' -> " " <> termNameFromSource expr') expr <> maybe "" ((" " <>) . termNameFromSource) tag
|
||||
where toTermName' = toTermName source
|
||||
termNameFromChildren term children = termNameFromRange (unionRangesFrom (range term) (range <$> children))
|
||||
termNameFromSource term = termNameFromRange (range term)
|
||||
@ -328,7 +329,7 @@ termToDiffInfo blob term = case unwrap term of
|
||||
S.AnonymousFunction _ _ -> LeafInfo C.AnonymousFunction (toTermName' term) (getField $ extract term)
|
||||
S.Comment _ -> HideInfo
|
||||
S.Commented cs leaf -> BranchInfo (termToDiffInfo' <$> cs <> maybeToList leaf) (category $ extract term) BCommented
|
||||
S.Error _ -> ErrorInfo (getField $ extract term) (toTermName' term)
|
||||
S.ParseError _ -> ErrorInfo (getField $ extract term) (toTermName' term)
|
||||
_ -> toLeafInfo term
|
||||
where toTermName' = toTermName blob
|
||||
termToDiffInfo' = termToDiffInfo blob
|
||||
@ -372,7 +373,7 @@ instance HasCategory Category where
|
||||
Boolean -> "boolean"
|
||||
DictionaryLiteral -> "dictionary"
|
||||
C.Comment -> "comment"
|
||||
C.Error -> "error"
|
||||
C.ParseError -> "error"
|
||||
ExpressionStatements -> "expression statements"
|
||||
C.Assignment -> "assignment"
|
||||
C.Function -> "function"
|
||||
|
@ -18,6 +18,7 @@ import Renderer.Patch
|
||||
import Renderer.Split
|
||||
import Renderer.Summary
|
||||
import Renderer.SExpression
|
||||
import Renderer.TOC
|
||||
import Source
|
||||
import Syntax
|
||||
import System.Directory
|
||||
@ -78,6 +79,7 @@ textDiff parser arguments = diffFiles parser $ case format arguments of
|
||||
SExpression -> sExpression
|
||||
JSON -> json
|
||||
Summary -> summary
|
||||
TOC -> toc
|
||||
|
||||
-- | Returns a truncated diff given diff arguments and two source blobs.
|
||||
truncatedDiff :: DiffArguments -> Both SourceBlob -> IO Output
|
||||
@ -87,6 +89,7 @@ truncatedDiff arguments sources = pure $ case format arguments of
|
||||
SExpression -> SExpressionOutput mempty
|
||||
JSON -> JSONOutput mempty
|
||||
Summary -> SummaryOutput mempty
|
||||
TOC -> TOCOutput mempty
|
||||
|
||||
-- | Prints a rendered diff to stdio or a filepath given a parser, diff arguments and two source blobs.
|
||||
printDiff :: (ToJSON (Record fields), DefaultFields fields, HasField fields Cost) => Parser (Syntax Text) (Record fields) -> DiffArguments -> Both SourceBlob -> IO ()
|
||||
@ -99,6 +102,7 @@ printDiff parser arguments sources = do
|
||||
SExpressionOutput text -> text
|
||||
JSONOutput series -> encodingToText (toJSON series)
|
||||
SummaryOutput summaries -> encodingToText (toJSON summaries)
|
||||
TOCOutput summaries -> encodingToText (toJSON summaries)
|
||||
where
|
||||
-- TODO: Don't go from Value to Text?
|
||||
encodingToText = toS . encodingToLazyByteString . toEncoding
|
||||
|
30
src/Info.hs
30
src/Info.hs
@ -1,5 +1,22 @@
|
||||
{-# LANGUAGE DataKinds, GeneralizedNewtypeDeriving #-}
|
||||
module Info (Range(..), characterRange, setCharacterRange, Category(..), category, setCategory, Cost(..), cost, setCost, SourceSpan(..), SourcePos(..), SourceSpans(..), SourceText(..), sourceText) where
|
||||
module Info
|
||||
( Range(..)
|
||||
, characterRange
|
||||
, setCharacterRange
|
||||
, Category(..)
|
||||
, category
|
||||
, setCategory
|
||||
, Cost(..)
|
||||
, cost
|
||||
, setCost
|
||||
, SourceSpan(..)
|
||||
, SourcePos(..)
|
||||
, SourceSpans(..)
|
||||
, sourceSpan
|
||||
, setSourceSpan
|
||||
, SourceText(..)
|
||||
, sourceText
|
||||
) where
|
||||
|
||||
import Data.Functor.Listable
|
||||
import Data.Record
|
||||
@ -30,12 +47,17 @@ setCategory = setField
|
||||
cost :: HasField fields Cost => Record fields -> Cost
|
||||
cost = getField
|
||||
|
||||
sourceText :: HasField fields SourceText => Record fields -> SourceText
|
||||
sourceText = getField
|
||||
|
||||
setCost :: HasField fields Cost => Record fields -> Cost -> Record fields
|
||||
setCost = setField
|
||||
|
||||
sourceText :: HasField fields SourceText => Record fields -> SourceText
|
||||
sourceText = getField
|
||||
|
||||
sourceSpan :: HasField fields SourceSpan => Record fields -> SourceSpan
|
||||
sourceSpan = getField
|
||||
|
||||
setSourceSpan :: HasField fields SourceSpan => Record fields -> SourceSpan -> Record fields
|
||||
setSourceSpan = setField
|
||||
|
||||
-- Instances
|
||||
|
||||
|
@ -63,7 +63,7 @@ algorithmWithTerms construct t1 t2 = maybe (recursively t1 t2) (fmap annotate) $
|
||||
S.FunctionCall <$> recursively identifierA identifierB
|
||||
<*> bySimilarity argsA argsB
|
||||
(S.Switch exprA casesA, S.Switch exprB casesB) -> Just $
|
||||
S.Switch <$> maybeRecursively exprA exprB
|
||||
S.Switch <$> bySimilarity exprA exprB
|
||||
<*> bySimilarity casesA casesB
|
||||
(S.Object tyA a, S.Object tyB b) -> Just $
|
||||
S.Object <$> maybeRecursively tyA tyB
|
||||
@ -83,9 +83,10 @@ algorithmWithTerms construct t1 t2 = maybe (recursively t1 t2) (fmap annotate) $
|
||||
<*> maybeRecursively tyA tyB
|
||||
<*> bySimilarity paramsA paramsB
|
||||
<*> bySimilarity expressionsA expressionsB
|
||||
(S.Function idA paramsA bodyA, S.Function idB paramsB bodyB) -> Just $
|
||||
(S.Function idA paramsA tyA bodyA, S.Function idB paramsB tyB bodyB) -> Just $
|
||||
S.Function <$> recursively idA idB
|
||||
<*> bySimilarity paramsA paramsB
|
||||
<*> maybeRecursively tyA tyB
|
||||
<*> bySimilarity bodyA bodyB
|
||||
_ -> Nothing
|
||||
where
|
||||
|
@ -4,7 +4,6 @@ module Language where
|
||||
import Data.Record
|
||||
import Info
|
||||
import Prologue
|
||||
import Source
|
||||
import qualified Syntax as S
|
||||
import Term
|
||||
|
||||
@ -41,23 +40,6 @@ languageForType mediaType = case mediaType of
|
||||
".go" -> Just Language.Go
|
||||
_ -> Nothing
|
||||
|
||||
termConstructor
|
||||
:: Source Char -- ^ The source that the term occurs within.
|
||||
-> SourceSpan -- ^ The span that the term occupies.
|
||||
-> Category -- ^ The node’s Category.
|
||||
-> Range -- ^ The character range that the term occupies.
|
||||
-> [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ The child nodes of the term.
|
||||
-> IO [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ All child nodes (included unnamed productions) of the term as 'IO'. Only use this if you need it.
|
||||
-> IO (SyntaxTerm Text '[Range, Category, SourceSpan]) -- ^ The resulting term, in IO.
|
||||
termConstructor source sourceSpan category range children _ =
|
||||
withDefaultInfo $ case (category, children) of
|
||||
(Error, _) -> S.Error children
|
||||
(_, []) -> S.Leaf (toText $ slice range source)
|
||||
_ -> S.Indexed children
|
||||
where
|
||||
withDefaultInfo syntax =
|
||||
pure $! cofree ((range :. category :. sourceSpan :. Nil) :< syntax)
|
||||
|
||||
toVarDecl :: (HasField fields Category) => Term (S.Syntax Text) (Record fields) -> Term (S.Syntax Text) (Record fields)
|
||||
toVarDecl child = cofree $ setCategory (extract child) VarDecl :< S.VarDecl child Nothing
|
||||
|
||||
|
@ -1,28 +1,19 @@
|
||||
{-# LANGUAGE DataKinds #-}
|
||||
module Language.C where
|
||||
|
||||
import Data.Record
|
||||
import Info
|
||||
import Prologue
|
||||
import Source
|
||||
import qualified Syntax as S
|
||||
import Term
|
||||
|
||||
termConstructor
|
||||
:: Source Char -- ^ The source that the term occurs within.
|
||||
-> SourceSpan -- ^ The span that the term occupies.
|
||||
-> Category -- ^ The node’s Category.
|
||||
-> Range -- ^ The character range that the term occupies.
|
||||
termAssignment
|
||||
:: Source Char -- ^ The source of the term.
|
||||
-> Category -- ^ The category for the term.
|
||||
-> [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ The child nodes of the term.
|
||||
-> IO [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ All child nodes (included unnamed productions) of the term as 'IO'. Only use this if you need it.
|
||||
-> IO (SyntaxTerm Text '[Range, Category, SourceSpan]) -- ^ The resulting term, in IO.
|
||||
termConstructor source sourceSpan category range children _
|
||||
| category == Error = withDefaultInfo (S.Error children)
|
||||
| otherwise = withDefaultInfo $ case children of
|
||||
[] -> S.Leaf . toText $ slice range source
|
||||
_ -> S.Indexed children
|
||||
where
|
||||
withDefaultInfo syntax = pure $! cofree ((range :. category :. sourceSpan :. Nil) :< syntax)
|
||||
-> Maybe (S.Syntax Text (SyntaxTerm Text '[Range, Category, SourceSpan])) -- ^ The resulting term, in Maybe.
|
||||
termAssignment _ _ _ = Nothing
|
||||
|
||||
|
||||
categoryForCProductionName :: Text -> Category
|
||||
categoryForCProductionName = Other
|
||||
|
@ -6,242 +6,72 @@ import Info
|
||||
import Source
|
||||
import Term
|
||||
import qualified Syntax as S
|
||||
import Data.Record
|
||||
import Range (unionRangesFrom)
|
||||
import SourceSpan (unionSourceSpansFrom)
|
||||
|
||||
termConstructor
|
||||
:: Source Char -- ^ The source that the term occurs within.
|
||||
-> SourceSpan -- ^ The span that the term occupies.
|
||||
-> Category -- ^ The node’s Category.
|
||||
-> Range -- ^ The character range that the term occupies.
|
||||
termAssignment
|
||||
:: Source Char -- ^ The source of the term.
|
||||
-> Category -- ^ The category for the term.
|
||||
-> [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ The child nodes of the term.
|
||||
-> IO [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ All child nodes (included unnamed productions) of the term as 'IO'. Only use this if you need it.
|
||||
-> IO (SyntaxTerm Text '[Range, Category, SourceSpan]) -- ^ The resulting term, in IO.
|
||||
termConstructor source sourceSpan category range children _ = pure $! case category of
|
||||
Return -> withDefaultInfo $ S.Return children
|
||||
Module -> case Prologue.break (\node -> Info.category (extract node) == Other "package_clause") children of
|
||||
(comments, packageName : rest) -> case unwrap packageName of
|
||||
S.Indexed [id] ->
|
||||
let module' = withCategory Module (S.Module id rest)
|
||||
in withCategory Program (S.Indexed (comments <> [module']))
|
||||
_ -> withRanges range Error children (S.Error children)
|
||||
_ -> withRanges range Error children (S.Error children)
|
||||
Other "import_declaration" -> toImports children
|
||||
Function -> withDefaultInfo $ case children of
|
||||
[id, params, block] -> S.Function id (toList $ unwrap params) (toList $ unwrap block)
|
||||
rest -> S.Error rest
|
||||
For ->
|
||||
withDefaultInfo $ case children of
|
||||
[body] | Info.category (extract body) == Other "block" ->
|
||||
S.For [] (toList $ unwrap body)
|
||||
[forClause, body] | Info.category (extract forClause) == Other "for_clause" ->
|
||||
S.For (toList $ unwrap forClause) (toList $ unwrap body)
|
||||
[rangeClause, body] | Info.category (extract rangeClause) == Other "range_clause" ->
|
||||
S.For (toList $ unwrap rangeClause) (toList $ unwrap body)
|
||||
other -> S.Error other
|
||||
TypeDecl -> toTypeDecl children
|
||||
StructTy -> toStructTy children
|
||||
FieldDecl -> toFieldDecl children
|
||||
Switch ->
|
||||
case Prologue.break isCaseClause children of
|
||||
(clauses, cases) -> withDefaultInfo $ case clauses of
|
||||
[id] -> S.Switch (Just id) cases -- type_switch_statement
|
||||
[] -> S.Switch Nothing (toCase <$> cases)
|
||||
_ -> S.Switch (Just (withCategory ExpressionStatements (S.Indexed clauses))) (toCase <$> cases)
|
||||
where
|
||||
isCaseClause = (== Case) . Info.category . extract
|
||||
toCase clause = case toList (unwrap clause) of
|
||||
clause' : rest -> case toList (unwrap clause') of
|
||||
[clause''] -> withCategory Case $ S.Case clause'' rest
|
||||
[] -> withCategory DefaultCase $ S.DefaultCase rest
|
||||
rest -> withCategory Error $ S.Error rest
|
||||
[] -> withCategory Error $ S.Error [clause]
|
||||
ParameterDecl -> withDefaultInfo $ case children of
|
||||
[param, ty] -> S.ParameterDecl (Just ty) param
|
||||
[param] -> S.ParameterDecl Nothing param
|
||||
_ -> S.Error children
|
||||
Assignment -> toVarAssignment children
|
||||
Select -> withDefaultInfo $ S.Select (toCommunicationCase =<< children)
|
||||
where toCommunicationCase = toList . unwrap
|
||||
Go -> withDefaultInfo $ toExpression S.Go children
|
||||
Defer -> withDefaultInfo $ toExpression S.Defer children
|
||||
SubscriptAccess -> withDefaultInfo $ toSubscriptAccess children
|
||||
IndexExpression -> withDefaultInfo $ toSubscriptAccess children
|
||||
Slice -> sliceToSubscriptAccess children
|
||||
Other "composite_literal" -> toLiteral children
|
||||
TypeAssertion -> withDefaultInfo $ case children of
|
||||
[a, b] -> S.TypeAssertion a b
|
||||
rest -> S.Error rest
|
||||
TypeConversion -> withDefaultInfo $ case children of
|
||||
[a, b] -> S.TypeConversion a b
|
||||
rest -> S.Error rest
|
||||
-> Maybe (S.Syntax Text (SyntaxTerm Text '[Range, Category, SourceSpan])) -- ^ The resulting term, in Maybe.
|
||||
termAssignment source category children = case (category, children) of
|
||||
(Module, [moduleName]) -> Just $ S.Module moduleName []
|
||||
(Import, [importName]) -> Just $ S.Import importName []
|
||||
(Function, [id, params, block]) -> Just $ S.Function id (toList (unwrap params)) Nothing (toList (unwrap block))
|
||||
(Function, [id, params, ty, block]) -> Just $ S.Function id (toList (unwrap params)) (Just ty) (toList (unwrap block))
|
||||
(For, [body]) | Other "block" <- Info.category (extract body) -> Just $ S.For [] (toList (unwrap body))
|
||||
(For, [forClause, body]) | Other "for_clause" <- Info.category (extract forClause) -> Just $ S.For (toList (unwrap forClause)) (toList (unwrap body))
|
||||
(For, [rangeClause, body]) | Other "range_clause" <- Info.category (extract rangeClause) -> Just $ S.For (toList (unwrap rangeClause)) (toList (unwrap body))
|
||||
(TypeDecl, [identifier, ty]) -> Just $ S.TypeDecl identifier ty
|
||||
(StructTy, _) -> Just (S.Ty children)
|
||||
(FieldDecl, [idList])
|
||||
| [ident] <- toList (unwrap idList)
|
||||
-> Just (S.FieldDecl ident Nothing Nothing)
|
||||
(FieldDecl, [idList, ty])
|
||||
| [ident] <- toList (unwrap idList)
|
||||
-> Just $ case Info.category (extract ty) of
|
||||
StringLiteral -> S.FieldDecl ident Nothing (Just ty)
|
||||
_ -> S.FieldDecl ident (Just ty) Nothing
|
||||
(FieldDecl, [idList, ty, tag])
|
||||
| [ident] <- toList (unwrap idList)
|
||||
-> Just (S.FieldDecl ident (Just ty) (Just tag))
|
||||
(ParameterDecl, param : ty) -> Just $ S.ParameterDecl (listToMaybe ty) param
|
||||
(Assignment, [identifier, expression]) -> Just $ S.VarAssignment identifier expression
|
||||
(Select, _) -> Just $ S.Select (children >>= toList . unwrap)
|
||||
(Go, [expr]) -> Just $ S.Go expr
|
||||
(Defer, [expr]) -> Just $ S.Defer expr
|
||||
(SubscriptAccess, [a, b]) -> Just $ S.SubscriptAccess a b
|
||||
(IndexExpression, [a, b]) -> Just $ S.SubscriptAccess a b
|
||||
(Slice, [a, rest]) -> Just $ S.SubscriptAccess a rest
|
||||
(Other "composite_literal", [ty, values])
|
||||
| ArrayTy <- Info.category (extract ty)
|
||||
-> Just $ S.Array (Just ty) (toList (unwrap values))
|
||||
| DictionaryTy <- Info.category (extract ty)
|
||||
-> Just $ S.Object (Just ty) (toList (unwrap values))
|
||||
| SliceTy <- Info.category (extract ty)
|
||||
-> Just $ S.SubscriptAccess ty values
|
||||
(Other "composite_literal", []) -> Just $ S.Struct Nothing []
|
||||
(Other "composite_literal", [ty]) -> Just $ S.Struct (Just ty) []
|
||||
(Other "composite_literal", [ty, values]) -> Just $ S.Struct (Just ty) (toList (unwrap values))
|
||||
(TypeAssertion, [a, b]) -> Just $ S.TypeAssertion a b
|
||||
(TypeConversion, [a, b]) -> Just $ S.TypeConversion a b
|
||||
-- TODO: Handle multiple var specs
|
||||
Other "var_declaration" -> toVarDecls children
|
||||
VarAssignment -> toVarAssignment children
|
||||
VarDecl -> toVarAssignment children
|
||||
If -> toIfStatement children
|
||||
FunctionCall -> withDefaultInfo $ case children of
|
||||
[id] -> S.FunctionCall id []
|
||||
id : rest -> S.FunctionCall id rest
|
||||
rest -> S.Error rest
|
||||
Other "const_declaration" -> toConsts children
|
||||
AnonymousFunction -> withDefaultInfo $ case children of
|
||||
[params, _, body] -> case toList (unwrap params) of
|
||||
[params'] -> S.AnonymousFunction (toList $ unwrap params') (toList $ unwrap body)
|
||||
rest -> S.Error rest
|
||||
rest -> S.Error rest
|
||||
PointerTy -> withDefaultInfo $ case children of
|
||||
[ty] -> S.Ty ty
|
||||
rest -> S.Error rest
|
||||
ChannelTy -> withDefaultInfo $ case children of
|
||||
[ty] -> S.Ty ty
|
||||
rest -> S.Error rest
|
||||
Send -> withDefaultInfo $ case children of
|
||||
[channel, expr] -> S.Send channel expr
|
||||
rest -> S.Error rest
|
||||
Operator -> withDefaultInfo $ S.Operator children
|
||||
FunctionTy ->
|
||||
let params = withRanges range Params children $ S.Indexed children
|
||||
in withDefaultInfo $ S.Ty params
|
||||
IncrementStatement ->
|
||||
withDefaultInfo $ S.Leaf . toText $ slice range source
|
||||
DecrementStatement ->
|
||||
withDefaultInfo $ S.Leaf . toText $ slice range source
|
||||
QualifiedIdentifier ->
|
||||
withDefaultInfo $ S.Leaf . toText $ slice range source
|
||||
Break -> toBreak children
|
||||
Continue -> toContinue children
|
||||
Pair -> toPair children
|
||||
Method -> toMethod children
|
||||
_ -> withDefaultInfo $ case children of
|
||||
[] -> S.Leaf . toText $ slice range source
|
||||
_ -> S.Indexed children
|
||||
where
|
||||
toMethod = \case
|
||||
[params, name, fun] -> withDefaultInfo (S.Method name Nothing (toList $ unwrap params) (toList $ unwrap fun))
|
||||
[params, name, outParams, fun] ->
|
||||
let params' = toList (unwrap params)
|
||||
outParams' = toList (unwrap outParams)
|
||||
allParams = params' <> outParams'
|
||||
in withDefaultInfo (S.Method name Nothing allParams (toList $ unwrap fun))
|
||||
[params, name, outParams, ty, fun] ->
|
||||
let params' = toList (unwrap params)
|
||||
outParams' = toList (unwrap outParams)
|
||||
allParams = params' <> outParams'
|
||||
in withDefaultInfo (S.Method name (Just ty) allParams (toList $ unwrap fun))
|
||||
rest -> withCategory Error (S.Error rest)
|
||||
toPair = \case
|
||||
[key, value] -> withDefaultInfo (S.Pair key value)
|
||||
rest -> withCategory Error (S.Error rest)
|
||||
toBreak = \case
|
||||
[label] -> withDefaultInfo (S.Break (Just label))
|
||||
[] -> withDefaultInfo (S.Break Nothing)
|
||||
rest -> withCategory Error (S.Error rest)
|
||||
toContinue = \case
|
||||
[label] -> withDefaultInfo (S.Continue (Just label))
|
||||
[] -> withDefaultInfo (S.Continue Nothing)
|
||||
rest -> withCategory Error (S.Error rest)
|
||||
|
||||
toStructTy children =
|
||||
withDefaultInfo (S.Ty (withRanges range FieldDeclarations children (S.Indexed children)))
|
||||
|
||||
toLiteral = \case
|
||||
children@[ty, _] -> case Info.category (extract ty) of
|
||||
ArrayTy -> toImplicitArray children
|
||||
DictionaryTy -> toMap children
|
||||
SliceTy -> sliceToSubscriptAccess children
|
||||
_ -> toStruct children
|
||||
rest -> withRanges range Error rest $ S.Error rest
|
||||
toImplicitArray = \case
|
||||
[ty, values] -> withCategory ArrayLiteral (S.Array (Just ty) (toList $ unwrap values))
|
||||
rest -> withRanges range Error rest $ S.Error rest
|
||||
toMap = \case
|
||||
[ty, values] -> withCategory DictionaryLiteral (S.Object (Just ty) (toList $ unwrap values))
|
||||
rest -> withRanges range Error rest $ S.Error rest
|
||||
toStruct = \case
|
||||
[] -> withCategory Struct (S.Struct Nothing [])
|
||||
[ty] -> withCategory Struct (S.Struct (Just ty) [])
|
||||
[ty, values] -> withCategory Struct (S.Struct (Just ty) (toList $ unwrap values))
|
||||
rest -> withRanges range Error rest $ S.Error rest
|
||||
toFieldDecl = \case
|
||||
[idList, ty] ->
|
||||
case Info.category (extract ty) of
|
||||
StringLiteral -> withCategory FieldDecl (S.FieldDecl (toIdent (toList (unwrap idList))) Nothing (Just ty))
|
||||
_ -> withCategory FieldDecl (S.FieldDecl (toIdent (toList (unwrap idList))) (Just ty) Nothing)
|
||||
[idList] ->
|
||||
withCategory FieldDecl (S.FieldDecl (toIdent (toList (unwrap idList))) Nothing Nothing)
|
||||
[idList, ty, tag] ->
|
||||
withCategory FieldDecl (S.FieldDecl (toIdent (toList (unwrap idList))) (Just ty) (Just tag))
|
||||
rest -> withRanges range Error rest (S.Error rest)
|
||||
|
||||
where
|
||||
toIdent = \case
|
||||
[ident] -> ident
|
||||
rest -> withRanges range Error rest (S.Error rest)
|
||||
|
||||
|
||||
toExpression f = \case
|
||||
[expr] -> f expr
|
||||
rest -> S.Error rest
|
||||
toSubscriptAccess = \case
|
||||
[a, b] -> S.SubscriptAccess a b
|
||||
rest -> S.Error rest
|
||||
sliceToSubscriptAccess = \case
|
||||
a : rest ->
|
||||
let sliceElement = withRanges range Element rest $ S.Fixed rest
|
||||
in withCategory Slice (S.SubscriptAccess a sliceElement)
|
||||
rest -> withRanges range Error rest $ S.Error rest
|
||||
|
||||
toIfStatement children = case Prologue.break ((Other "block" ==) . Info.category . extract) children of
|
||||
(clauses, blocks) ->
|
||||
let clauses' = withRanges range ExpressionStatements clauses (S.Indexed clauses)
|
||||
blocks' = foldMap (toList . unwrap) blocks
|
||||
in withDefaultInfo (S.If clauses' blocks')
|
||||
|
||||
toTypeDecl = \case
|
||||
[identifier, ty] -> withDefaultInfo $ S.TypeDecl identifier ty
|
||||
rest -> withRanges range Error rest $ S.Error rest
|
||||
|
||||
toImports imports =
|
||||
withDefaultInfo $ S.Indexed (imports >>= toImport)
|
||||
where
|
||||
toImport i = case toList (unwrap i) of
|
||||
[importName] -> [ withCategory Import (S.Import importName []) ]
|
||||
rest@(_:_) -> [ withRanges range Error rest (S.Error rest)]
|
||||
[] -> []
|
||||
|
||||
toVarDecls children = withDefaultInfo (S.Indexed children)
|
||||
|
||||
toConsts constSpecs = withDefaultInfo (S.Indexed constSpecs)
|
||||
|
||||
toVarAssignment = \case
|
||||
[idList, ty] | Info.category (extract ty) == Identifier ->
|
||||
let ids = toList (unwrap idList)
|
||||
idList' = (\id -> withRanges range VarDecl [id] (S.VarDecl id (Just ty))) <$> ids
|
||||
in withRanges range ExpressionStatements idList' (S.Indexed idList')
|
||||
[idList, expressionList] | Info.category (extract expressionList) == Other "expression_list" ->
|
||||
let assignments' = zipWith (\id expr ->
|
||||
withCategory VarAssignment $ S.VarAssignment id expr)
|
||||
(toList $ unwrap idList) (toList $ unwrap expressionList)
|
||||
in withRanges range ExpressionStatements assignments' (S.Indexed assignments')
|
||||
[idList, _, expressionList] ->
|
||||
let assignments' = zipWith (\id expr ->
|
||||
withCategory VarAssignment $ S.VarAssignment id expr) (toList $ unwrap idList) (toList $ unwrap expressionList)
|
||||
in withRanges range ExpressionStatements assignments' (S.Indexed assignments')
|
||||
[idList] -> withDefaultInfo (S.Indexed [idList])
|
||||
rest -> withRanges range Error rest (S.Error rest)
|
||||
|
||||
withRanges originalRange category' terms syntax =
|
||||
let ranges' = getField . extract <$> terms
|
||||
sourceSpans' = getField . extract <$> terms
|
||||
in
|
||||
cofree ((unionRangesFrom originalRange ranges' :. category' :. unionSourceSpansFrom sourceSpan sourceSpans' :. Nil) :< syntax)
|
||||
|
||||
withCategory category syntax =
|
||||
cofree ((range :. category :. sourceSpan :. Nil) :< syntax)
|
||||
|
||||
withDefaultInfo = withCategory category
|
||||
(VarAssignment, [identifier, expression]) -> Just $ S.VarAssignment identifier expression
|
||||
(VarDecl, [idList, ty]) | Identifier <- Info.category (extract ty) -> Just $ S.VarDecl idList (Just ty)
|
||||
(FunctionCall, id : rest) -> Just $ S.FunctionCall id rest
|
||||
(AnonymousFunction, [params, _, body])
|
||||
| [params'] <- toList (unwrap params)
|
||||
-> Just $ S.AnonymousFunction (toList (unwrap params')) (toList (unwrap body))
|
||||
(PointerTy, _) -> Just $ S.Ty children
|
||||
(ChannelTy, _) -> Just $ S.Ty children
|
||||
(Send, [channel, expr]) -> Just $ S.Send channel expr
|
||||
(Operator, _) -> Just $ S.Operator children
|
||||
(FunctionTy, _) -> Just $ S.Ty children
|
||||
(IncrementStatement, _) -> Just $ S.Leaf $ toText source
|
||||
(DecrementStatement, _) -> Just $ S.Leaf $ toText source
|
||||
(QualifiedIdentifier, _) -> Just $ S.Leaf $ toText source
|
||||
(Method, [params, name, fun]) -> Just (S.Method name Nothing (toList (unwrap params)) (toList (unwrap fun)))
|
||||
(Method, [params, name, outParams, fun]) -> Just (S.Method name Nothing (toList (unwrap params) <> toList (unwrap outParams)) (toList (unwrap fun)))
|
||||
(Method, [params, name, outParams, ty, fun]) -> Just (S.Method name (Just ty) (toList (unwrap params) <> toList (unwrap outParams)) (toList (unwrap fun)))
|
||||
_ -> Nothing
|
||||
|
||||
categoryForGoName :: Text -> Category
|
||||
categoryForGoName = \case
|
||||
@ -264,7 +94,8 @@ categoryForGoName = \case
|
||||
"var_spec" -> VarAssignment
|
||||
"const_spec" -> VarAssignment
|
||||
"assignment_statement" -> Assignment
|
||||
"source_file" -> Module
|
||||
"source_file" -> Program
|
||||
"package_clause" -> Module
|
||||
"if_statement" -> If
|
||||
"for_statement" -> For
|
||||
"expression_switch_statement" -> Switch
|
||||
@ -293,7 +124,6 @@ categoryForGoName = \case
|
||||
"channel_type" -> ChannelTy
|
||||
"send_statement" -> Send
|
||||
"unary_expression" -> Operator
|
||||
"ERROR" -> Error
|
||||
"function_type" -> FunctionTy
|
||||
"inc_statement" -> IncrementStatement
|
||||
"dec_statement" -> DecrementStatement
|
||||
@ -302,4 +132,6 @@ categoryForGoName = \case
|
||||
"continue_statement" -> Continue
|
||||
"rune_literal" -> RuneLiteral
|
||||
"method_declaration" -> Method
|
||||
"import_spec" -> Import
|
||||
"block" -> ExpressionStatements
|
||||
s -> Other (toS s)
|
||||
|
@ -1,7 +1,6 @@
|
||||
{-# LANGUAGE DataKinds #-}
|
||||
module Language.JavaScript where
|
||||
|
||||
import Data.Record
|
||||
import Info
|
||||
import Prologue
|
||||
import Source
|
||||
@ -9,104 +8,60 @@ import Language
|
||||
import qualified Syntax as S
|
||||
import Term
|
||||
|
||||
operators :: [Category]
|
||||
operators = [ Operator, BooleanOperator, MathOperator, RelationalOperator, BitwiseOperator ]
|
||||
|
||||
termConstructor
|
||||
:: Source Char -- ^ The source that the term occurs within.
|
||||
-> SourceSpan -- ^ The span that the term occupies.
|
||||
-> Category -- ^ The node’s Category.
|
||||
-> Range -- ^ The character range that the term occupies.
|
||||
termAssignment
|
||||
:: Source Char -- ^ The source of the term.
|
||||
-> Category -- ^ The category for the term.
|
||||
-> [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ The child nodes of the term.
|
||||
-> IO [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ All child nodes (included unnamed productions) of the term as 'IO'. Only use this if you need it.
|
||||
-> IO (SyntaxTerm Text '[Range, Category, SourceSpan]) -- ^ The resulting term, in IO.
|
||||
termConstructor source sourceSpan category range children allChildren
|
||||
| category == Error = withDefaultInfo (S.Error children)
|
||||
| category `elem` operators = do
|
||||
allChildren' <- allChildren
|
||||
withDefaultInfo $ S.Operator allChildren'
|
||||
| otherwise = withDefaultInfo $ case (category, children) of
|
||||
(Return, _) -> S.Return children
|
||||
(Assignment, [ identifier, value ]) -> S.Assignment identifier value
|
||||
(Assignment, _ ) -> S.Error children
|
||||
(MathAssignment, [ identifier, value ]) -> S.OperatorAssignment identifier value
|
||||
(MathAssignment, _ ) -> S.Error children
|
||||
(MemberAccess, [ base, property ]) -> S.MemberAccess base property
|
||||
(MemberAccess, _ ) -> S.Error children
|
||||
(SubscriptAccess, [ base, element ]) -> S.SubscriptAccess base element
|
||||
(SubscriptAccess, _ ) -> S.Error children
|
||||
(CommaOperator, [ a, b ]) -> case unwrap b of
|
||||
S.Indexed rest -> S.Indexed $ a : rest
|
||||
_ -> S.Indexed children
|
||||
(CommaOperator, _ ) -> S.Error children
|
||||
(FunctionCall, _) -> case children of
|
||||
member : args | Info.category (extract member) == MemberAccess -> case toList (unwrap member) of
|
||||
[target, method] -> S.MethodCall target method (toList . unwrap =<< args)
|
||||
_ -> S.Error children
|
||||
function : args -> S.FunctionCall function (toList . unwrap =<< args)
|
||||
_ -> S.Error children
|
||||
(Ternary, condition : cases) -> S.Ternary condition cases
|
||||
(Ternary, _ ) -> S.Error children
|
||||
(VarAssignment, [ x, y ]) -> S.VarAssignment x y
|
||||
(VarAssignment, _ ) -> S.Error children
|
||||
(VarDecl, _) -> S.Indexed $ toVarDecl <$> children
|
||||
(Switch, expr : rest) -> S.Switch (Just expr) rest
|
||||
(Switch, _ ) -> S.Error children
|
||||
(Case, [ expr, body ]) -> S.Case expr [body]
|
||||
(Case, _ ) -> S.Error children
|
||||
(Object, _) -> S.Object Nothing $ foldMap toTuple children
|
||||
(Pair, _) -> S.Fixed children
|
||||
(Comment, _) -> S.Comment . toText $ slice range source
|
||||
(If, expr : rest ) -> S.If expr rest
|
||||
(If, _ ) -> S.Error children
|
||||
(While, expr : rest ) -> S.While expr rest
|
||||
(While, _ ) -> S.Error children
|
||||
(DoWhile, [ expr, body ]) -> S.DoWhile expr body
|
||||
(DoWhile, _ ) -> S.Error children
|
||||
(Throw, [ expr ]) -> S.Throw expr
|
||||
(Throw, _ ) -> S.Error children
|
||||
(Constructor, [ expr ]) -> S.Constructor expr
|
||||
(Constructor, _ ) -> S.Error children
|
||||
(Try, _) -> case children of
|
||||
[ body ] -> S.Try [body] [] Nothing Nothing
|
||||
[ body, catch ] | Catch <- Info.category (extract catch) -> S.Try [body] [catch] Nothing Nothing
|
||||
[ body, finally ] | Finally <- Info.category (extract finally) -> S.Try [body] [] Nothing (Just finally)
|
||||
[ body, catch, finally ]
|
||||
| Catch <- Info.category (extract catch)
|
||||
, Finally <- Info.category (extract finally) -> S.Try [body] [catch] Nothing (Just finally)
|
||||
_ -> S.Error children
|
||||
(ArrayLiteral, _) -> S.Array Nothing children
|
||||
(Method, [ identifier, params, exprs ]) -> S.Method identifier Nothing (toList (unwrap params)) (toList (unwrap exprs))
|
||||
(Method, [ identifier, exprs ]) -> S.Method identifier Nothing [] (toList (unwrap exprs))
|
||||
(Method, _ ) -> S.Error children
|
||||
(Class, [ identifier, superclass, definitions ]) -> S.Class identifier (Just superclass) (toList (unwrap definitions))
|
||||
(Class, [ identifier, definitions ]) -> S.Class identifier Nothing (toList (unwrap definitions))
|
||||
(Class, _ ) -> S.Error children
|
||||
(Import, [ statements, identifier ] ) -> S.Import identifier (toList (unwrap statements))
|
||||
(Import, [ identifier ] ) -> S.Import identifier []
|
||||
(Import, _ ) -> S.Error children
|
||||
(Export, [ statements, identifier] ) -> S.Export (Just identifier) (toList (unwrap statements))
|
||||
(Export, [ statements ] ) -> case unwrap statements of
|
||||
S.Indexed _ -> S.Export Nothing (toList (unwrap statements))
|
||||
_ -> S.Export (Just statements) []
|
||||
(Export, _ ) -> S.Error children
|
||||
(Break, [ expr ] ) -> S.Break (Just expr)
|
||||
(Yield, _ ) -> S.Yield children
|
||||
(For, _) -> case unsnoc children of
|
||||
Just (exprs, body) -> S.For exprs [body]
|
||||
_ -> S.Error children
|
||||
(Function, _) -> case children of
|
||||
[ body ] -> S.AnonymousFunction [] [body]
|
||||
[ params, body ] -> S.AnonymousFunction (toList (unwrap params)) [body]
|
||||
[ id, params, body ] -> S.Function id (toList (unwrap params)) [body]
|
||||
_ -> S.Error children
|
||||
(_, []) -> S.Leaf . toText $ slice range source
|
||||
_ -> S.Indexed children
|
||||
where
|
||||
withDefaultInfo syntax =
|
||||
pure $! case syntax of
|
||||
S.MethodCall{} -> cofree ((range :. MethodCall :. sourceSpan :. Nil) :< syntax)
|
||||
_ -> cofree ((range :. category :. sourceSpan :. Nil) :< syntax)
|
||||
-> Maybe (S.Syntax Text (SyntaxTerm Text '[Range, Category, SourceSpan])) -- ^ The resulting term, in Maybe.
|
||||
termAssignment _ category children
|
||||
= case (category, children) of
|
||||
(Assignment, [ identifier, value ]) -> Just $ S.Assignment identifier value
|
||||
(MathAssignment, [ identifier, value ]) -> Just $ S.OperatorAssignment identifier value
|
||||
(MemberAccess, [ base, property ]) -> Just $ S.MemberAccess base property
|
||||
(SubscriptAccess, [ base, element ]) -> Just $ S.SubscriptAccess base element
|
||||
(CommaOperator, [ a, b ])
|
||||
| S.Indexed rest <- unwrap b
|
||||
-> Just $ S.Indexed $ a : rest
|
||||
(FunctionCall, member : args)
|
||||
| S.MemberAccess target method <- unwrap member
|
||||
-> Just $ S.MethodCall target method (toList . unwrap =<< args)
|
||||
(FunctionCall, function : args) -> Just $ S.FunctionCall function (toList . unwrap =<< args)
|
||||
(Ternary, condition : cases) -> Just $ S.Ternary condition cases
|
||||
(VarAssignment, [ x, y ]) -> Just $ S.VarAssignment x y
|
||||
(VarDecl, _) -> Just . S.Indexed $ toVarDecl <$> children
|
||||
(Object, _) -> Just . S.Object Nothing $ foldMap toTuple children
|
||||
(DoWhile, [ expr, body ]) -> Just $ S.DoWhile expr body
|
||||
(Constructor, [ expr ]) -> Just $ S.Constructor expr
|
||||
(Try, [ body ]) -> Just $ S.Try [body] [] Nothing Nothing
|
||||
(Try, [ body, catch ])
|
||||
| Catch <- Info.category (extract catch)
|
||||
-> Just $ S.Try [body] [catch] Nothing Nothing
|
||||
(Try, [ body, finally ])
|
||||
| Finally <- Info.category (extract finally)
|
||||
-> Just $ S.Try [body] [] Nothing (Just finally)
|
||||
(Try, [ body, catch, finally ])
|
||||
| Catch <- Info.category (extract catch)
|
||||
, Finally <- Info.category (extract finally)
|
||||
-> Just $ S.Try [body] [catch] Nothing (Just finally)
|
||||
(ArrayLiteral, _) -> Just $ S.Array Nothing children
|
||||
(Method, [ identifier, params, exprs ]) -> Just $ S.Method identifier Nothing (toList (unwrap params)) (toList (unwrap exprs))
|
||||
(Method, [ identifier, exprs ]) -> Just $ S.Method identifier Nothing [] (toList (unwrap exprs))
|
||||
(Class, [ identifier, superclass, definitions ]) -> Just $ S.Class identifier (Just superclass) (toList (unwrap definitions))
|
||||
(Class, [ identifier, definitions ]) -> Just $ S.Class identifier Nothing (toList (unwrap definitions))
|
||||
(Import, [ statements, identifier ] ) -> Just $ S.Import identifier (toList (unwrap statements))
|
||||
(Import, [ identifier ] ) -> Just $ S.Import identifier []
|
||||
(Export, [ statements, identifier] ) -> Just $ S.Export (Just identifier) (toList (unwrap statements))
|
||||
(Export, [ statements ] )
|
||||
| S.Indexed _ <- unwrap statements
|
||||
-> Just $ S.Export Nothing (toList (unwrap statements))
|
||||
| otherwise -> Just $ S.Export (Just statements) []
|
||||
(For, _)
|
||||
| Just (exprs, body) <- unsnoc children
|
||||
-> Just $ S.For exprs [body]
|
||||
(Function, [ body ]) -> Just $ S.AnonymousFunction [] [body]
|
||||
(Function, [ params, body ]) -> Just $ S.AnonymousFunction (toList (unwrap params)) [body]
|
||||
(Function, [ id, params, body ]) -> Just $ S.Function id (toList (unwrap params)) Nothing [body]
|
||||
_ -> Nothing
|
||||
|
||||
categoryForJavaScriptProductionName :: Text -> Category
|
||||
categoryForJavaScriptProductionName name = case name of
|
||||
@ -138,7 +93,6 @@ categoryForJavaScriptProductionName name = case name of
|
||||
"trailing_if_statement" -> If
|
||||
"empty_statement" -> Empty
|
||||
"program" -> Program
|
||||
"ERROR" -> Error
|
||||
"function_call" -> FunctionCall
|
||||
"pair" -> Pair
|
||||
"string" -> StringLiteral
|
||||
|
@ -1,7 +1,6 @@
|
||||
{-# LANGUAGE DataKinds #-}
|
||||
module Language.Ruby where
|
||||
|
||||
import Data.Record
|
||||
import Data.List (partition)
|
||||
import Info
|
||||
import Prologue
|
||||
@ -10,35 +9,22 @@ import Language
|
||||
import qualified Syntax as S
|
||||
import Term
|
||||
|
||||
operators :: [Category]
|
||||
operators = [ Binary, Unary, RangeExpression, ScopeOperator ]
|
||||
|
||||
termConstructor
|
||||
:: Source Char -- ^ The source that the term occurs within.
|
||||
-> SourceSpan -- ^ The span that the term occupies.
|
||||
-> Category -- ^ The node’s Category.
|
||||
-> Range -- ^ The character range that the term occupies.
|
||||
termAssignment
|
||||
:: Source Char -- ^ The source of the term.
|
||||
-> Category -- ^ The category for the term.
|
||||
-> [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ The child nodes of the term.
|
||||
-> IO [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -- ^ All child nodes (included unnamed productions) of the term as 'IO'. Only use this if you need it.
|
||||
-> IO (SyntaxTerm Text '[Range, Category, SourceSpan]) -- ^ The resulting term, in IO.
|
||||
termConstructor source sourceSpan category range children allChildren
|
||||
| category == Error = pure $! withDefaultInfo (S.Error children)
|
||||
| category `elem` operators = do
|
||||
allChildren' <- allChildren
|
||||
pure $! withDefaultInfo $ S.Operator allChildren'
|
||||
| otherwise = pure . withDefaultInfo $ case (category, children) of
|
||||
(ArgumentPair, [ k, v ] ) -> S.Pair k v
|
||||
(ArgumentPair, _ ) -> S.Error children
|
||||
(KeywordParameter, [ k, v ] ) -> S.Pair k v
|
||||
-> Maybe (S.Syntax Text (SyntaxTerm Text '[Range, Category, SourceSpan])) -- ^ The resulting term, in Maybe.
|
||||
termAssignment _ category children
|
||||
= case (category, children) of
|
||||
(ArgumentPair, [ k, v ] ) -> Just $ S.Pair k v
|
||||
(KeywordParameter, [ k, v ] ) -> Just $ S.Pair k v
|
||||
-- NB: ("keyword_parameter", k) is a required keyword parameter, e.g.:
|
||||
-- def foo(name:); end
|
||||
-- Let it fall through to generate an Indexed syntax.
|
||||
(OptionalParameter, [ k, v ] ) -> S.Pair k v
|
||||
(OptionalParameter, _ ) -> S.Error children
|
||||
(ArrayLiteral, _ ) -> S.Array Nothing children
|
||||
(Assignment, [ identifier, value ]) -> S.Assignment identifier value
|
||||
(Assignment, _ ) -> S.Error children
|
||||
(Begin, _ ) -> case partition (\x -> Info.category (extract x) == Rescue) children of
|
||||
(OptionalParameter, [ k, v ] ) -> Just $ S.Pair k v
|
||||
(ArrayLiteral, _ ) -> Just $ S.Array Nothing children
|
||||
(Assignment, [ identifier, value ]) -> Just $ S.Assignment identifier value
|
||||
(Begin, _ ) -> Just $ case partition (\x -> Info.category (extract x) == Rescue) children of
|
||||
(rescues, rest) -> case partition (\x -> Info.category (extract x) == Ensure || Info.category (extract x) == Else) rest of
|
||||
(ensureElse, body) -> case ensureElse of
|
||||
[ elseBlock, ensure ]
|
||||
@ -50,84 +36,59 @@ termConstructor source sourceSpan category range children allChildren
|
||||
[ elseBlock ] | Else <- Info.category (extract elseBlock) -> S.Try body rescues (Just elseBlock) Nothing
|
||||
[ ensure ] | Ensure <- Info.category (extract ensure) -> S.Try body rescues Nothing (Just ensure)
|
||||
_ -> S.Try body rescues Nothing Nothing
|
||||
(Case, expr : body ) -> S.Switch (Just expr) body
|
||||
(Case, _ ) -> S.Error children
|
||||
(When, condition : body ) -> S.Case condition body
|
||||
(When, _ ) -> S.Error children
|
||||
(Class, constant : rest ) -> case rest of
|
||||
( superclass : body ) | Superclass <- Info.category (extract superclass) -> S.Class constant (Just superclass) body
|
||||
_ -> S.Class constant Nothing rest
|
||||
(Class, _ ) -> S.Error children
|
||||
(SingletonClass, identifier : rest ) -> S.Class identifier Nothing rest
|
||||
(SingletonClass, _ ) -> S.Error children
|
||||
(Comment, _ ) -> S.Comment . toText $ slice range source
|
||||
(Ternary, condition : cases) -> S.Ternary condition cases
|
||||
(Ternary, _ ) -> S.Error children
|
||||
(Constant, _ ) -> S.Fixed children
|
||||
(MethodCall, _ ) -> case children of
|
||||
member : args | MemberAccess <- Info.category (extract member) -> case toList (unwrap member) of
|
||||
[target, method] -> S.MethodCall target method (toList . unwrap =<< args)
|
||||
_ -> S.Error children
|
||||
function : args -> S.FunctionCall function (toList . unwrap =<< args)
|
||||
_ -> S.Error children
|
||||
(Other "lambda", _) -> case children of
|
||||
[ body ] -> S.AnonymousFunction [] [body]
|
||||
( params : body ) -> S.AnonymousFunction (toList (unwrap params)) body
|
||||
_ -> S.Error children
|
||||
(Object, _ ) -> S.Object Nothing $ foldMap toTuple children
|
||||
(Modifier If, [ lhs, condition ]) -> S.If condition [lhs]
|
||||
(Modifier If, _) -> S.Error children
|
||||
(If, condition : body ) -> S.If condition body
|
||||
(If, _ ) -> S.Error children
|
||||
(Modifier Unless, [lhs, rhs]) -> S.If (withRecord (setCategory (extract rhs) Negate) (S.Negate rhs)) [lhs]
|
||||
(Modifier Unless, _) -> S.Error children
|
||||
(Unless, expr : rest) -> S.If (withRecord (setCategory (extract expr) Negate) (S.Negate expr)) rest
|
||||
(Unless, _) -> S.Error children
|
||||
(Modifier Until, [ lhs, rhs ]) -> S.While (withRecord (setCategory (extract rhs) Negate) (S.Negate rhs)) [lhs]
|
||||
(Modifier Until, _) -> S.Error children
|
||||
(Until, expr : rest) -> S.While (withRecord (setCategory (extract expr) Negate) (S.Negate expr)) rest
|
||||
(Until, _) -> S.Error children
|
||||
(Elsif, condition : body ) -> S.If condition body
|
||||
(Elsif, _ ) -> S.Error children
|
||||
(SubscriptAccess, [ base, element ]) -> S.SubscriptAccess base element
|
||||
(SubscriptAccess, _ ) -> S.Error children
|
||||
(For, lhs : expr : rest ) -> S.For [lhs, expr] rest
|
||||
(For, _ ) -> S.Error children
|
||||
(OperatorAssignment, [ identifier, value ]) -> S.OperatorAssignment identifier value
|
||||
(OperatorAssignment, _ ) -> S.Error children
|
||||
(MemberAccess, [ base, property ]) -> S.MemberAccess base property
|
||||
(MemberAccess, _ ) -> S.Error children
|
||||
(Method, _ ) -> case children of
|
||||
identifier : params : body | Params <- Info.category (extract params) -> S.Method identifier Nothing (toList (unwrap params)) body
|
||||
identifier : body -> S.Method identifier Nothing [] body
|
||||
_ -> S.Error children
|
||||
(Module, constant : body ) -> S.Module constant body
|
||||
(Module, _ ) -> S.Error children
|
||||
(Modifier Rescue, [lhs, rhs] ) -> S.Rescue [lhs] [rhs]
|
||||
(Modifier Rescue, _) -> S.Error children
|
||||
(Rescue, _ ) -> case children of
|
||||
exceptions : exceptionVar : rest
|
||||
| RescueArgs <- Info.category (extract exceptions)
|
||||
, RescuedException <- Info.category (extract exceptionVar) -> S.Rescue (toList (unwrap exceptions) <> [exceptionVar]) rest
|
||||
exceptionVar : rest | RescuedException <- Info.category (extract exceptionVar) -> S.Rescue [exceptionVar] rest
|
||||
exceptions : body | RescueArgs <- Info.category (extract exceptions) -> S.Rescue (toList (unwrap exceptions)) body
|
||||
body -> S.Rescue [] body
|
||||
(Return, _ ) -> S.Return children
|
||||
(Modifier While, [ lhs, condition ]) -> S.While condition [lhs]
|
||||
(Modifier While, _) -> S.Error children
|
||||
(While, expr : rest ) -> S.While expr rest
|
||||
(While, _ ) -> S.Error children
|
||||
(Yield, _ ) -> S.Yield children
|
||||
_ | category `elem` [ BeginBlock, EndBlock ] -> S.BlockStatement children
|
||||
(_, []) -> S.Leaf . toText $ slice range source
|
||||
_ -> S.Indexed children
|
||||
(Class, constant : superclass : body)
|
||||
| Superclass <- Info.category (extract superclass)
|
||||
-> Just $ S.Class constant (Just superclass) body
|
||||
(Class, constant : rest) -> Just $ S.Class constant Nothing rest
|
||||
(SingletonClass, identifier : rest) -> Just $ S.Class identifier Nothing rest
|
||||
(Case, _) -> Just $ uncurry S.Switch (Prologue.break ((== When) . Info.category . extract) children)
|
||||
(When, expr : body) -> Just $ S.Case expr body
|
||||
(Ternary, condition : cases) -> Just $ S.Ternary condition cases
|
||||
(Constant, _ ) -> Just $ S.Fixed children
|
||||
(MethodCall, fn : args)
|
||||
| MemberAccess <- Info.category (extract fn)
|
||||
, [target, method] <- toList (unwrap fn)
|
||||
-> Just $ S.MethodCall target method (toList . unwrap =<< args)
|
||||
| otherwise
|
||||
-> Just $ S.FunctionCall fn (toList . unwrap =<< args)
|
||||
(Other "lambda", first : rest)
|
||||
| null rest -> Just $ S.AnonymousFunction [] [first]
|
||||
| otherwise -> Just $ S.AnonymousFunction (toList (unwrap first)) rest
|
||||
(Object, _ ) -> Just . S.Object Nothing $ foldMap toTuple children
|
||||
(Modifier If, [ lhs, condition ]) -> Just $ S.If condition [lhs]
|
||||
(Modifier Unless, [lhs, rhs]) -> Just $ S.If (withRecord (setCategory (extract rhs) Negate) (S.Negate rhs)) [lhs]
|
||||
(Unless, expr : rest) -> Just $ S.If (withRecord (setCategory (extract expr) Negate) (S.Negate expr)) rest
|
||||
(Modifier Until, [ lhs, rhs ]) -> Just $ S.While (withRecord (setCategory (extract rhs) Negate) (S.Negate rhs)) [lhs]
|
||||
(Until, expr : rest) -> Just $ S.While (withRecord (setCategory (extract expr) Negate) (S.Negate expr)) rest
|
||||
(Elsif, condition : body ) -> Just $ S.If condition body
|
||||
(SubscriptAccess, [ base, element ]) -> Just $ S.SubscriptAccess base element
|
||||
(For, lhs : expr : rest ) -> Just $ S.For [lhs, expr] rest
|
||||
(OperatorAssignment, [ identifier, value ]) -> Just $ S.OperatorAssignment identifier value
|
||||
(MemberAccess, [ base, property ]) -> Just $ S.MemberAccess base property
|
||||
(Method, identifier : rest)
|
||||
| params : body <- rest
|
||||
, Params <- Info.category (extract params)
|
||||
-> Just $ S.Method identifier Nothing (toList (unwrap params)) body
|
||||
| otherwise
|
||||
-> Just $ S.Method identifier Nothing [] rest
|
||||
(Module, constant : body ) -> Just $ S.Module constant body
|
||||
(Modifier Rescue, [lhs, rhs] ) -> Just $ S.Rescue [lhs] [rhs]
|
||||
(Rescue, exceptions : exceptionVar : rest)
|
||||
| RescueArgs <- Info.category (extract exceptions)
|
||||
, RescuedException <- Info.category (extract exceptionVar)
|
||||
-> Just $ S.Rescue (toList (unwrap exceptions) <> [exceptionVar]) rest
|
||||
(Rescue, exceptionVar : rest)
|
||||
| RescuedException <- Info.category (extract exceptionVar)
|
||||
-> Just $ S.Rescue [exceptionVar] rest
|
||||
(Rescue, exceptions : body)
|
||||
| RescueArgs <- Info.category (extract exceptions)
|
||||
-> Just $ S.Rescue (toList (unwrap exceptions)) body
|
||||
(Rescue, body) -> Just $ S.Rescue [] body
|
||||
(Modifier While, [ lhs, condition ]) -> Just $ S.While condition [lhs]
|
||||
_ | category `elem` [ BeginBlock, EndBlock ] -> Just $ S.BlockStatement children
|
||||
_ -> Nothing
|
||||
where
|
||||
withRecord record syntax = cofree (record :< syntax)
|
||||
withCategory category syntax =
|
||||
cofree ((range :. category :. sourceSpan :. Nil) :< syntax)
|
||||
withDefaultInfo syntax = case syntax of
|
||||
S.MethodCall{} -> withCategory MethodCall syntax
|
||||
_ -> withCategory category syntax
|
||||
|
||||
categoryForRubyName :: Text -> Category
|
||||
categoryForRubyName = \case
|
||||
@ -151,7 +112,6 @@ categoryForRubyName = \case
|
||||
"elsif" -> Elsif
|
||||
"end_block" -> EndBlock
|
||||
"ensure" -> Ensure
|
||||
"ERROR" -> Error
|
||||
"exception_variable" -> RescuedException
|
||||
"exceptions" -> RescueArgs
|
||||
"false" -> Boolean
|
||||
|
13
src/Patch.hs
13
src/Patch.hs
@ -6,11 +6,13 @@ module Patch
|
||||
, deleting
|
||||
, after
|
||||
, before
|
||||
, afterOrBefore
|
||||
, unPatch
|
||||
, patchSum
|
||||
, maybeFst
|
||||
, maybeSnd
|
||||
, mapPatch
|
||||
, patchType
|
||||
) where
|
||||
|
||||
import Data.Functor.Listable
|
||||
@ -48,6 +50,12 @@ after = maybeSnd . unPatch
|
||||
before :: Patch a -> Maybe a
|
||||
before = maybeFst . unPatch
|
||||
|
||||
afterOrBefore :: Patch a -> Maybe a
|
||||
afterOrBefore patch = case (before patch, after patch) of
|
||||
(_, Just after) -> Just after
|
||||
(Just before, _) -> Just before
|
||||
(_, _) -> Nothing
|
||||
|
||||
-- | Return both sides of a patch.
|
||||
unPatch :: Patch a -> These a a
|
||||
unPatch (Replace a b) = These a b
|
||||
@ -71,6 +79,11 @@ maybeFst = these Just (const Nothing) ((Just .) . const)
|
||||
maybeSnd :: These a b -> Maybe b
|
||||
maybeSnd = these (const Nothing) Just ((Just .) . flip const)
|
||||
|
||||
patchType :: Patch a -> Text
|
||||
patchType = \case
|
||||
Replace{} -> "modified"
|
||||
Insert{} -> "added"
|
||||
Delete{} -> "removed"
|
||||
|
||||
-- Instances
|
||||
|
||||
|
11
src/Range.hs
11
src/Range.hs
@ -2,6 +2,7 @@ module Range where
|
||||
|
||||
import qualified Data.Char as Char
|
||||
import Data.List (span)
|
||||
import Data.List.NonEmpty (nonEmpty)
|
||||
import Data.Semigroup
|
||||
import Data.String
|
||||
import Prologue
|
||||
@ -60,17 +61,9 @@ intersectionRange range1 range2 = Range (max (start range1) (start range2)) (min
|
||||
unionRange :: Range -> Range -> Range
|
||||
unionRange (Range start1 end1) (Range start2 end2) = Range (min start1 start2) (max end1 end2)
|
||||
|
||||
-- | Return a range that contains all the ranges in a Foldable, or Range 0 0 if it’s empty.
|
||||
unionRanges :: Foldable f => f Range -> Range
|
||||
unionRanges = unionRangesFrom (Range 0 0)
|
||||
|
||||
-- | Return Just the concatenation of any elements in a Foldable, or Nothing if it is empty.
|
||||
maybeConcat :: (Foldable f, Semigroup a) => f a -> Maybe a
|
||||
maybeConcat = getOption . foldMap (Option . Just)
|
||||
|
||||
-- | Return a range that contains all the ranges in a Foldable, or the passed Range if the Foldable is empty.
|
||||
unionRangesFrom :: Foldable f => Range -> f Range -> Range
|
||||
unionRangesFrom range = fromMaybe range . maybeConcat
|
||||
unionRangesFrom range = maybe range sconcat . nonEmpty . toList
|
||||
|
||||
|
||||
-- Instances
|
||||
|
@ -17,10 +17,10 @@ data DiffArguments = DiffArguments { format :: Format, output :: Maybe FilePath
|
||||
deriving (Show)
|
||||
|
||||
-- | The available types of diff rendering.
|
||||
data Format = Split | Patch | JSON | Summary | SExpression
|
||||
data Format = Split | Patch | JSON | Summary | SExpression | TOC
|
||||
deriving (Show)
|
||||
|
||||
data Output = SplitOutput Text | PatchOutput Text | JSONOutput (Map Text Value) | SummaryOutput (Map Text (Map Text [Value])) | SExpressionOutput Text
|
||||
data Output = SplitOutput Text | PatchOutput Text | JSONOutput (Map Text Value) | SummaryOutput (Map Text (Map Text [Value])) | SExpressionOutput Text | TOCOutput (Map Text (Map Text [Value]))
|
||||
deriving (Show)
|
||||
|
||||
-- Returns a key representing the filename. If the filenames are different,
|
||||
@ -49,6 +49,7 @@ concatOutputs list | isSummary list = toS . encodingToLazyByteString . toEncodin
|
||||
where
|
||||
concatSummaries :: [Output] -> Map Text (Map Text [Value])
|
||||
concatSummaries (SummaryOutput hash : rest) = Map.unionWith (Map.unionWith (<>)) hash (concatSummaries rest)
|
||||
concatSummaries (TOCOutput hash : rest) = Map.unionWith (Map.unionWith (<>)) hash (concatSummaries rest)
|
||||
concatSummaries _ = mempty
|
||||
concatOutputs list | isText list = T.intercalate "\n" (toText <$> list)
|
||||
concatOutputs _ = mempty
|
||||
@ -59,6 +60,7 @@ isJSON _ = False
|
||||
|
||||
isSummary :: [Output] -> Bool
|
||||
isSummary (SummaryOutput _ : _) = True
|
||||
isSummary (TOCOutput _ : _) = True
|
||||
isSummary _ = False
|
||||
|
||||
isText :: [Output] -> Bool
|
||||
|
@ -104,7 +104,7 @@ syntaxToTermField syntax = case syntax of
|
||||
S.FunctionCall identifier parameters -> [ "identifier" .= identifier ] <> [ "parameters" .= parameters ]
|
||||
S.Ternary expression cases -> [ "expression" .= expression ] <> [ "cases" .= cases ]
|
||||
S.AnonymousFunction parameters c -> [ "parameters" .= parameters ] <> childrenFields c
|
||||
S.Function identifier parameters c -> [ "identifier" .= identifier ] <> [ "parameters" .= parameters ] <> childrenFields c
|
||||
S.Function identifier parameters ty c -> [ "identifier" .= identifier ] <> [ "parameters" .= parameters ] <> [ "type" .= ty ] <> childrenFields c
|
||||
S.Assignment assignmentId value -> [ "identifier" .= assignmentId ] <> [ "value" .= value ]
|
||||
S.OperatorAssignment identifier value -> [ "identifier" .= identifier ] <> [ "value" .= value ]
|
||||
S.MemberAccess identifier value -> [ "identifier" .= identifier ] <> [ "value" .= value ]
|
||||
@ -119,7 +119,7 @@ syntaxToTermField syntax = case syntax of
|
||||
S.Pair a b -> childrenFields [a, b]
|
||||
S.Comment _ -> []
|
||||
S.Commented comments child -> childrenFields (comments <> maybeToList child)
|
||||
S.Error c -> childrenFields c
|
||||
S.ParseError c -> childrenFields c
|
||||
S.For expressions body -> [ "expressions" .= expressions ] <> [ "body" .= body ]
|
||||
S.DoWhile expression body -> [ "expression" .= expression ] <> [ "body" .= body ]
|
||||
S.While expression body -> [ "expression" .= expression ] <> [ "body" .= body ]
|
||||
|
@ -33,7 +33,7 @@ classifyMarkup category element = (element !) . A.class_ . textValue $ styleName
|
||||
styleName :: Category -> Text
|
||||
styleName category = "category-" <> case category of
|
||||
Program -> "program"
|
||||
C.Error -> "error"
|
||||
C.ParseError -> "error"
|
||||
BooleanOperator -> "boolean_operator"
|
||||
MathOperator -> "math_operator"
|
||||
BitwiseOperator -> "bitwise_operator"
|
||||
|
161
src/Renderer/TOC.hs
Normal file
161
src/Renderer/TOC.hs
Normal file
@ -0,0 +1,161 @@
|
||||
{-# LANGUAGE ScopedTypeVariables #-}
|
||||
module Renderer.TOC (toc) where
|
||||
|
||||
import Category as C
|
||||
import Data.Aeson
|
||||
import Data.Functor.Both hiding (fst, snd)
|
||||
import qualified Data.Functor.Both as Both
|
||||
import Data.Record
|
||||
import Diff
|
||||
import Info
|
||||
import Prologue
|
||||
import qualified Data.List as List
|
||||
import qualified Data.Map as Map hiding (null)
|
||||
import Renderer
|
||||
import Source
|
||||
import Syntax as S
|
||||
import Term
|
||||
import Patch
|
||||
import Unsafe (unsafeHead)
|
||||
|
||||
data JSONSummary = JSONSummary { info :: Summarizable }
|
||||
| ErrorSummary { error :: Text, errorSpan :: SourceSpan }
|
||||
deriving (Generic, Eq, Show)
|
||||
|
||||
instance ToJSON JSONSummary where
|
||||
toJSON JSONSummary{..} = object $ case info of
|
||||
InSummarizable{..} -> [ "changeType" .= ("modified" :: Text), "category" .= (show parentCategory :: Text), "term" .= parentTermName, "span" .= parentSourceSpan ]
|
||||
Summarizable{..} -> [ "changeType" .= summarizableChangeType, "category" .= (show summarizableCategory :: Text), "term" .= summarizableTermName, "span" .= summarizableSourceSpan ]
|
||||
NotSummarizable -> panic "NotSummarizable should have been pruned"
|
||||
toJSON ErrorSummary{..} = object [ "error" .= error, "span" .= errorSpan ]
|
||||
|
||||
isErrorSummary :: JSONSummary -> Bool
|
||||
isErrorSummary ErrorSummary{} = True
|
||||
isErrorSummary _ = False
|
||||
|
||||
data DiffInfo = LeafInfo { leafCategory :: Category, termName :: Text, leafSourceSpan :: SourceSpan }
|
||||
| BranchInfo { branches :: [ DiffInfo ], branchCategory :: Category }
|
||||
| ErrorInfo { infoSpan :: SourceSpan, termName :: Text }
|
||||
deriving (Eq, Show)
|
||||
|
||||
data TOCSummary a = TOCSummary {
|
||||
summaryPatch :: Patch a,
|
||||
parentInfo :: Summarizable
|
||||
} deriving (Eq, Functor, Show, Generic)
|
||||
|
||||
data Summarizable = Summarizable { summarizableCategory :: Category, summarizableTermName :: Text, summarizableSourceSpan :: SourceSpan, summarizableChangeType :: Text }
|
||||
| InSummarizable { parentCategory :: Category, parentTermName :: Text, parentSourceSpan :: SourceSpan }
|
||||
| NotSummarizable
|
||||
deriving (Eq, Show)
|
||||
|
||||
data SummarizableTerm a = SummarizableTerm a | NotSummarizableTerm a
|
||||
|
||||
toc :: (DefaultFields fields) => Renderer (Record fields)
|
||||
toc blobs diff = TOCOutput $ Map.fromList [
|
||||
("changes", changes),
|
||||
("errors", errors)
|
||||
]
|
||||
where
|
||||
changes = if null changes' then mempty else Map.singleton summaryKey (toJSON <$> changes')
|
||||
errors = if null errors' then mempty else Map.singleton summaryKey (toJSON <$> errors')
|
||||
(errors', changes') = List.partition isErrorSummary summaries
|
||||
summaryKey = toSummaryKey (path <$> blobs)
|
||||
summaries = diffTOC blobs diff
|
||||
|
||||
diffTOC :: (StringConv leaf Text, DefaultFields fields) => Both SourceBlob -> SyntaxDiff leaf fields -> [JSONSummary]
|
||||
diffTOC blobs diff = do
|
||||
noDupes <- removeDupes (diffToTOCSummaries (source <$> blobs) diff)
|
||||
toJSONSummaries noDupes
|
||||
where
|
||||
removeDupes :: [TOCSummary DiffInfo] -> [TOCSummary DiffInfo]
|
||||
removeDupes [] = []
|
||||
removeDupes xs = (fmap unsafeHead . List.groupBy (\a b -> parentInfo a == parentInfo b)) xs
|
||||
|
||||
diffToTOCSummaries :: (StringConv leaf Text, DefaultFields fields) => Both (Source Char) -> SyntaxDiff leaf fields -> [TOCSummary DiffInfo]
|
||||
diffToTOCSummaries sources = para $ \diff ->
|
||||
let
|
||||
diff' = free (Prologue.fst <$> diff)
|
||||
patch' = mapPatch (termToDiffInfo beforeSource) (termToDiffInfo afterSource)
|
||||
(beforeSource, afterSource) = runJoin sources
|
||||
in case diff of
|
||||
(Free (_ :< syntax)) -> mapToInSummarizable sources diff' (toList syntax >>= snd)
|
||||
(Pure patch) -> toTOCSummaries (patch' patch)
|
||||
|
||||
-- Mark which leaves are summarizable.
|
||||
toTOCSummaries :: Patch DiffInfo -> [TOCSummary DiffInfo]
|
||||
toTOCSummaries patch = case afterOrBefore patch of
|
||||
Just diffInfo -> toTOCSummaries' patch diffInfo
|
||||
Nothing -> panic "No diff"
|
||||
where
|
||||
toTOCSummaries' patch' diffInfo = case diffInfo of
|
||||
ErrorInfo{..} -> pure $ TOCSummary patch' NotSummarizable
|
||||
BranchInfo{..} -> join $ zipWith toTOCSummaries' (flattenPatch patch') branches
|
||||
LeafInfo{..} -> pure . TOCSummary patch' $ case leafCategory of
|
||||
C.Function -> Summarizable leafCategory termName leafSourceSpan (patchType patch')
|
||||
C.Method -> Summarizable leafCategory termName leafSourceSpan (patchType patch')
|
||||
_ -> NotSummarizable
|
||||
|
||||
flattenPatch :: Patch DiffInfo -> [Patch DiffInfo]
|
||||
flattenPatch = \case
|
||||
Replace i1 i2 -> zipWith Replace (toLeafInfos' i1) (toLeafInfos' i2)
|
||||
Insert info -> Insert <$> toLeafInfos' info
|
||||
Delete info -> Delete <$> toLeafInfos' info
|
||||
|
||||
toLeafInfos' :: DiffInfo -> [DiffInfo]
|
||||
toLeafInfos' BranchInfo{..} = branches >>= toLeafInfos'
|
||||
toLeafInfos' leaf = [leaf]
|
||||
|
||||
mapToInSummarizable :: DefaultFields fields => Both (Source Char) -> SyntaxDiff leaf fields -> [TOCSummary DiffInfo] -> [TOCSummary DiffInfo]
|
||||
mapToInSummarizable sources diff children = case (beforeTerm diff, afterTerm diff) of
|
||||
(_, Just diff') -> mapToInSummarizable' (Both.snd sources) diff' <$> children
|
||||
(Just diff', _) -> mapToInSummarizable' (Both.fst sources) diff' <$> children
|
||||
(Nothing, Nothing) -> []
|
||||
where
|
||||
mapToInSummarizable' :: DefaultFields fields => Source Char -> SyntaxTerm leaf fields -> TOCSummary DiffInfo -> TOCSummary DiffInfo
|
||||
mapToInSummarizable' source term summary =
|
||||
case (parentInfo summary, summarizable term) of
|
||||
(NotSummarizable, SummarizableTerm _) ->
|
||||
summary { parentInfo = InSummarizable (category (extract term)) (toTermName source term) (Info.sourceSpan (extract term)) }
|
||||
(_, _) -> summary
|
||||
|
||||
summarizable :: ComonadCofree (Syntax t) w => w a -> SummarizableTerm (w a)
|
||||
summarizable term = go (unwrap term) term
|
||||
where go = \case
|
||||
S.Method{} -> SummarizableTerm
|
||||
S.Function{} -> SummarizableTerm
|
||||
_ -> NotSummarizableTerm
|
||||
|
||||
toJSONSummaries :: TOCSummary DiffInfo -> [JSONSummary]
|
||||
toJSONSummaries TOCSummary{..} = case afterOrBefore summaryPatch of
|
||||
Just diffInfo -> toJSONSummaries' diffInfo
|
||||
Nothing -> panic "No diff"
|
||||
where
|
||||
toJSONSummaries' = \case
|
||||
ErrorInfo{..} -> pure $ ErrorSummary termName infoSpan
|
||||
BranchInfo{..} -> branches >>= toJSONSummaries'
|
||||
LeafInfo{..} -> case parentInfo of
|
||||
NotSummarizable -> []
|
||||
_ -> pure $ JSONSummary parentInfo
|
||||
|
||||
termToDiffInfo :: (StringConv leaf Text, DefaultFields fields) => Source Char -> SyntaxTerm leaf fields -> DiffInfo
|
||||
termToDiffInfo blob term = case unwrap term of
|
||||
S.Indexed children -> BranchInfo (termToDiffInfo' <$> children) (category $ extract term)
|
||||
S.Fixed children -> BranchInfo (termToDiffInfo' <$> children) (category $ extract term)
|
||||
S.AnonymousFunction _ _ -> LeafInfo C.AnonymousFunction (toTermName' term) (getField $ extract term)
|
||||
S.Commented cs leaf -> BranchInfo (termToDiffInfo' <$> cs <> maybeToList leaf) (category $ extract term)
|
||||
S.ParseError _ -> ErrorInfo (getField $ extract term) (toTermName' term)
|
||||
_ -> toLeafInfo term
|
||||
where toTermName' = toTermName blob
|
||||
termToDiffInfo' = termToDiffInfo blob
|
||||
toLeafInfo term = LeafInfo (category $ extract term) (toTermName' term) (getField $ extract term)
|
||||
|
||||
toTermName :: forall leaf fields. DefaultFields fields => Source Char -> SyntaxTerm leaf fields -> Text
|
||||
toTermName source term = case unwrap term of
|
||||
S.Function identifier _ _ _ -> toTermName' identifier
|
||||
S.Method identifier _ _ _ -> toTermName' identifier
|
||||
_ -> termNameFromSource term
|
||||
where
|
||||
toTermName' = toTermName source
|
||||
termNameFromSource term = termNameFromRange (range term)
|
||||
termNameFromRange range = toText $ Source.slice range source
|
||||
range = characterRange . extract
|
@ -51,7 +51,8 @@ argumentsParser = info (version <*> helper <*> argumentsP)
|
||||
<|> flag R.Split R.JSON (long "json" <> help "output a json diff")
|
||||
<|> flag' R.Split (long "split" <> help "output a split diff")
|
||||
<|> flag' R.Summary (long "summary" <> help "output a diff summary")
|
||||
<|> flag' R.SExpression (long "sexpression" <> help "output an s-expression diff tree"))
|
||||
<|> flag' R.SExpression (long "sexpression" <> help "output an s-expression diff tree")
|
||||
<|> flag' R.TOC (long "toc" <> help "output a table of contents diff summary"))
|
||||
<*> optional (option auto (long "timeout" <> help "timeout for per-file diffs in seconds, defaults to 7 seconds"))
|
||||
<*> optional (strOption (long "output" <> short 'o' <> help "output directory for split diffs, defaults to stdout if unspecified"))
|
||||
<*> switch (long "no-index" <> help "compare two paths on the filesystem")
|
||||
|
@ -8,6 +8,7 @@ module SourceSpan where
|
||||
|
||||
import Data.Aeson ((.=), (.:))
|
||||
import qualified Data.Aeson as A
|
||||
import Data.List.NonEmpty (nonEmpty)
|
||||
import Data.Semigroup
|
||||
import Data.These
|
||||
import Prologue
|
||||
@ -55,13 +56,7 @@ displayStartEndPos sp =
|
||||
displaySourcePos (spanStart sp) <> " - " <> displaySourcePos (spanEnd sp)
|
||||
|
||||
unionSourceSpansFrom :: Foldable f => SourceSpan -> f SourceSpan -> SourceSpan
|
||||
unionSourceSpansFrom sourceSpan = fromMaybe sourceSpan . maybeConcat
|
||||
|
||||
maybeConcat :: (Foldable f, Semigroup a) => f a -> Maybe a
|
||||
maybeConcat = getOption . foldMap (Option . Just)
|
||||
|
||||
unionSourceSpans :: Foldable f => f SourceSpan -> SourceSpan
|
||||
unionSourceSpans = unionSourceSpansFrom emptySourceSpan
|
||||
unionSourceSpansFrom sourceSpan = maybe sourceSpan sconcat . nonEmpty . toList
|
||||
|
||||
unionSourceSpan :: SourceSpan -> SourceSpan -> SourceSpan
|
||||
unionSourceSpan (SourceSpan start1 end1) (SourceSpan start2 end2) = SourceSpan (min start1 start2) (max end1 end2)
|
||||
|
@ -25,7 +25,7 @@ data Syntax a f
|
||||
-- | An anonymous function has a list of expressions and params.
|
||||
| AnonymousFunction { params :: [f], expressions :: [f] }
|
||||
-- | A function has a list of expressions.
|
||||
| Function { id :: f, params :: [f], expressions :: [f] }
|
||||
| Function { id :: f, params :: [f], ty :: (Maybe f), expressions :: [f] }
|
||||
-- | An assignment has an identifier where f can be a member access, and the value is another syntax element (function call, leaf, etc.)
|
||||
| Assignment { assignmentId :: f, value :: f }
|
||||
-- | An operator assignment represents expressions with operators like math (e.g x += 1) or conditional (e.g. x ||= 1) assignment.
|
||||
@ -45,7 +45,7 @@ data Syntax a f
|
||||
-- | A subscript access contains a syntax, and another syntax that indefies a property or value in the first syntax.
|
||||
-- | e.g. in Javascript x["y"] represents a subscript access syntax.
|
||||
| SubscriptAccess { subscriptId :: f, subscriptElement :: f }
|
||||
| Switch { switchExpr :: (Maybe f), cases :: [f] }
|
||||
| Switch { switchExpr :: [f], cases :: [f] }
|
||||
| Case { caseExpr :: f, caseStatements :: [f] }
|
||||
-- | A default case in a switch statement.
|
||||
| DefaultCase [f]
|
||||
@ -57,7 +57,7 @@ data Syntax a f
|
||||
| Comment a
|
||||
-- | A term preceded or followed by any number of comments.
|
||||
| Commented [f] (Maybe f)
|
||||
| Error [f]
|
||||
| ParseError [f]
|
||||
-- | A for statement has a list of expressions to setup the iteration and then a list of expressions in the body.
|
||||
| For [f] [f]
|
||||
| DoWhile { doWhileBody :: f, doWhileExpr :: f }
|
||||
@ -101,7 +101,7 @@ data Syntax a f
|
||||
-- | A field declaration with an optional type, and an optional tag.
|
||||
| FieldDecl f (Maybe f) (Maybe f)
|
||||
-- | A type.
|
||||
| Ty f
|
||||
| Ty [f]
|
||||
-- | A send statement has a channel and an expression in Go.
|
||||
| Send f f
|
||||
deriving (Eq, Foldable, Functor, Generic, Generic1, Mergeable, Ord, Show, Traversable, ToJSON)
|
||||
@ -117,7 +117,7 @@ instance Listable2 Syntax where
|
||||
\/ liftCons2 recur (liftTiers recur) FunctionCall
|
||||
\/ liftCons2 recur (liftTiers recur) Ternary
|
||||
\/ liftCons2 (liftTiers recur) (liftTiers recur) AnonymousFunction
|
||||
\/ liftCons3 recur (liftTiers recur) (liftTiers recur) Function
|
||||
\/ liftCons4 recur (liftTiers recur) (liftTiers recur) (liftTiers recur) Function
|
||||
\/ liftCons2 recur recur Assignment
|
||||
\/ liftCons2 recur recur OperatorAssignment
|
||||
\/ liftCons2 recur recur MemberAccess
|
||||
@ -133,7 +133,7 @@ instance Listable2 Syntax where
|
||||
\/ liftCons2 recur recur Pair
|
||||
\/ liftCons1 leaf Comment
|
||||
\/ liftCons2 (liftTiers recur) (liftTiers recur) Commented
|
||||
\/ liftCons1 (liftTiers recur) Syntax.Error
|
||||
\/ liftCons1 (liftTiers recur) Syntax.ParseError
|
||||
\/ liftCons2 (liftTiers recur) (liftTiers recur) For
|
||||
\/ liftCons2 recur recur DoWhile
|
||||
\/ liftCons2 recur (liftTiers recur) While
|
||||
@ -161,7 +161,7 @@ instance Listable2 Syntax where
|
||||
\/ liftCons2 (liftTiers recur) recur ParameterDecl
|
||||
\/ liftCons2 recur recur TypeDecl
|
||||
\/ liftCons3 recur (liftTiers recur) (liftTiers recur) FieldDecl
|
||||
\/ liftCons1 recur Ty
|
||||
\/ liftCons1 (liftTiers recur) Ty
|
||||
\/ liftCons2 recur recur Send
|
||||
\/ liftCons1 (liftTiers recur) DefaultCase
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
{-# LANGUAGE DataKinds #-}
|
||||
module TreeSitter (treeSitterParser) where
|
||||
module TreeSitter
|
||||
( treeSitterParser
|
||||
, defaultTermAssignment
|
||||
) where
|
||||
|
||||
import Prologue hiding (Constructor)
|
||||
import Category
|
||||
@ -15,6 +18,8 @@ import Source
|
||||
import qualified Syntax
|
||||
import Foreign
|
||||
import Foreign.C.String
|
||||
import qualified Syntax as S
|
||||
import Term
|
||||
import Text.Parser.TreeSitter hiding (Language(..))
|
||||
import qualified Text.Parser.TreeSitter as TS
|
||||
import SourceSpan
|
||||
@ -56,23 +61,73 @@ documentToTerm language document SourceBlob{..} = alloca $ \ root -> do
|
||||
-- Without it, we may not evaluate the value until after we’ve exited
|
||||
-- the scope that `node` was allocated within, meaning `alloca` will
|
||||
-- free it & other stack data may overwrite it.
|
||||
range `seq` sourceSpan `seq` termConstructor source sourceSpan (categoryForLanguageProductionName language (toS name)) range children allChildren
|
||||
range `seq` sourceSpan `seq` assignTerm language (slice range source) (range :. categoryForLanguageProductionName language (toS name) :. sourceSpan :. Nil) children allChildren
|
||||
getChild node n out = ts_node_p_named_child node n out >> toTerm out
|
||||
{-# INLINE getChild #-}
|
||||
getUnnamedChild node n out = ts_node_p_child node n out >> toTerm out
|
||||
{-# INLINE getUnnamedChild #-}
|
||||
termConstructor = case language of
|
||||
JavaScript -> JS.termConstructor
|
||||
C -> C.termConstructor
|
||||
Language.Go -> Go.termConstructor
|
||||
Ruby -> Ruby.termConstructor
|
||||
_ -> Language.termConstructor
|
||||
isNonEmpty child = category (extract child) /= Empty
|
||||
|
||||
assignTerm :: Language -> Source Char -> Record '[Range, Category, SourceSpan] -> [ SyntaxTerm Text '[ Range, Category, SourceSpan ] ] -> IO [ SyntaxTerm Text '[ Range, Category, SourceSpan ] ] -> IO (SyntaxTerm Text '[ Range, Category, SourceSpan ])
|
||||
assignTerm language source annotation children allChildren =
|
||||
cofree . (annotation :<) <$> case assignTermByLanguage language source (category annotation) children of
|
||||
Just a -> pure a
|
||||
_ -> defaultTermAssignment source (category annotation) children allChildren
|
||||
where assignTermByLanguage :: Language -> Source Char -> Category -> [ SyntaxTerm Text '[ Range, Category, SourceSpan ] ] -> Maybe (S.Syntax Text (SyntaxTerm Text '[ Range, Category, SourceSpan ]))
|
||||
assignTermByLanguage = \case
|
||||
JavaScript -> JS.termAssignment
|
||||
C -> C.termAssignment
|
||||
Language.Go -> Go.termAssignment
|
||||
Ruby -> Ruby.termAssignment
|
||||
_ -> \ _ _ _ -> Nothing
|
||||
|
||||
defaultTermAssignment :: Source Char -> Category -> [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -> IO [ SyntaxTerm Text '[Range, Category, SourceSpan] ] -> IO (S.Syntax Text (SyntaxTerm Text '[Range, Category, SourceSpan]))
|
||||
defaultTermAssignment source category children allChildren
|
||||
| category `elem` operatorCategories = S.Operator <$> allChildren
|
||||
| otherwise = pure $! case (category, children) of
|
||||
(ParseError, children) -> S.ParseError children
|
||||
|
||||
(Comment, _) -> S.Comment (toText source)
|
||||
|
||||
(Pair, [key, value]) -> S.Pair key value
|
||||
|
||||
-- Control flow statements
|
||||
(If, condition : body) -> S.If condition body
|
||||
(Switch, _) -> uncurry S.Switch (Prologue.break ((== Case) . Info.category . extract) children)
|
||||
(Case, expr : body) -> S.Case expr body
|
||||
(While, expr : rest) -> S.While expr rest
|
||||
|
||||
-- Statements
|
||||
(Return, _) -> S.Return children
|
||||
(Yield, _) -> S.Yield children
|
||||
(Throw, [expr]) -> S.Throw expr
|
||||
(Break, [label]) -> S.Break (Just label)
|
||||
(Break, []) -> S.Break Nothing
|
||||
(Continue, [label]) -> S.Continue (Just label)
|
||||
(Continue, []) -> S.Continue Nothing
|
||||
|
||||
(_, []) -> S.Leaf (toText source)
|
||||
(_, children) -> S.Indexed children
|
||||
where operatorCategories =
|
||||
[ Operator
|
||||
, Binary
|
||||
, Unary
|
||||
, RangeExpression
|
||||
, ScopeOperator
|
||||
, BooleanOperator
|
||||
, MathOperator
|
||||
, RelationalOperator
|
||||
, BitwiseOperator
|
||||
]
|
||||
|
||||
|
||||
categoryForLanguageProductionName :: Language -> Text -> Category
|
||||
categoryForLanguageProductionName = \case
|
||||
categoryForLanguageProductionName = withDefaults . \case
|
||||
JavaScript -> JS.categoryForJavaScriptProductionName
|
||||
C -> C.categoryForCProductionName
|
||||
Ruby -> Ruby.categoryForRubyName
|
||||
Language.Go -> Go.categoryForGoName
|
||||
_ -> Other
|
||||
where withDefaults productionMap = \case
|
||||
"ERROR" -> ParseError
|
||||
s -> productionMap s
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "95b89b9b110156a8ff35bda066874de1c055bb2c..ae58e611b00e778cdc8a242378790d935889bbc0"
|
||||
"shas": "26a0f67120f1cf6fc8e13694d29195177fe1040e..c78b61e9c9b8281f97e59c9c8f20975e41409ed6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-array-types-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'a' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -81,7 +96,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ae58e611b00e778cdc8a242378790d935889bbc0..c813e84861bc89f360c0fa64743061968ba5686c"
|
||||
"shas": "c78b61e9c9b8281f97e59c9c8f20975e41409ed6..2309b08e406723f9c132aa816d302bf8cc88ed71"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-array-types-replacement-test",
|
||||
@ -190,7 +205,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c813e84861bc89f360c0fa64743061968ba5686c..c2f4e78ca2195544a4e0c0d572c9aa9b13828975"
|
||||
"shas": "2309b08e406723f9c132aa816d302bf8cc88ed71..c474dfe7ba478f742c76c8ad39a8ea012b94cd0a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-array-types-delete-replacement-test",
|
||||
@ -299,7 +314,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c2f4e78ca2195544a4e0c0d572c9aa9b13828975..133740a949b9891053624b8a9d519e2244e6d2ac"
|
||||
"shas": "c474dfe7ba478f742c76c8ad39a8ea012b94cd0a..00ced47bbecee34a07334faeb92f0093e2de599f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-array-types-delete-insert-test",
|
||||
@ -319,7 +334,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -342,7 +357,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "133740a949b9891053624b8a9d519e2244e6d2ac..cc78ad7555ca4ccf1239b7be96f8219bd37aed0f"
|
||||
"shas": "00ced47bbecee34a07334faeb92f0093e2de599f..5ef5fdfe7d8f7c1cd02153ff01390ec3a5261233"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-array-types-teardown-test",
|
||||
@ -357,12 +372,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -384,5 +414,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "cc78ad7555ca4ccf1239b7be96f8219bd37aed0f..311f299ee4b5dcd8c757aaf89a1230d369bda6e3"
|
||||
"shas": "5ef5fdfe7d8f7c1cd02153ff01390ec3a5261233..242b339cd8dd07d6f1232ff7f96ee2eb324516d9"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "99d38d0dd43a990f37c709b49fa2eae7137a4acc..211a36fc067131cefd434c813f3d075171d40847"
|
||||
"shas": "576026694b333d8935d7a3e88a32dbd0ed0b3fa4..e880dbc369823d4b5c4e1643d1301395af59040b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-array-with-implicit-length-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a1' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'a1' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -81,7 +96,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "211a36fc067131cefd434c813f3d075171d40847..00142c98da414f4b9b004938c766a865ef9ca9cc"
|
||||
"shas": "e880dbc369823d4b5c4e1643d1301395af59040b..b5893374f1fc215bc0e9639fbff6745b22594bc0"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-array-with-implicit-length-replacement-test",
|
||||
@ -101,7 +116,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added '4' in the [...]int array of the 'main' function"
|
||||
"summary": "Added '4' in the [...]int composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -128,7 +143,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '1' with '5' in the [...]int array of the 'main' function"
|
||||
"summary": "Replaced '1' with '5' in the [...]int composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -143,7 +158,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added '6' in the [...]int array of the 'main' function"
|
||||
"summary": "Added '6' in the [...]int composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -158,7 +173,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted '2' in the [...]int array of the 'main' function"
|
||||
"summary": "Deleted '2' in the [...]int composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -173,7 +188,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted '3' in the [...]int array of the 'main' function"
|
||||
"summary": "Deleted '3' in the [...]int composite_literal of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -196,7 +211,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "00142c98da414f4b9b004938c766a865ef9ca9cc..3118925a075454560fa69ce5ebfacc1ab4a1fc22"
|
||||
"shas": "b5893374f1fc215bc0e9639fbff6745b22594bc0..235fa8a9d47005f230e6db96c1d2bf4d8e935851"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-array-with-implicit-length-delete-replacement-test",
|
||||
@ -216,7 +231,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added '1' in the [...]int array of the 'main' function"
|
||||
"summary": "Added '1' in the [...]int composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -231,7 +246,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added '2' in the [...]int array of the 'main' function"
|
||||
"summary": "Added '2' in the [...]int composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -246,7 +261,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added '3' in the [...]int array of the 'main' function"
|
||||
"summary": "Added '3' in the [...]int composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -261,7 +276,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted '4' in the [...]int array of the 'main' function"
|
||||
"summary": "Deleted '4' in the [...]int composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -276,7 +291,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted '5' in the [...]int array of the 'main' function"
|
||||
"summary": "Deleted '5' in the [...]int composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -291,7 +306,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted '6' in the [...]int array of the 'main' function"
|
||||
"summary": "Deleted '6' in the [...]int composite_literal of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -314,7 +329,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "3118925a075454560fa69ce5ebfacc1ab4a1fc22..ede962753105dbc124a103ff601756358a811053"
|
||||
"shas": "235fa8a9d47005f230e6db96c1d2bf4d8e935851..2dce176e86c49d2fd4be864e3a388ac25674f9d1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-array-with-implicit-length-delete-insert-test",
|
||||
@ -334,7 +349,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a1' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a1' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -357,7 +372,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ede962753105dbc124a103ff601756358a811053..12750762f7c4a8ec1281438c128961c29ff33b44"
|
||||
"shas": "2dce176e86c49d2fd4be864e3a388ac25674f9d1..b98fb6db21b918f40b3caf936b11bb72c07cb9dd"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-array-with-implicit-length-teardown-test",
|
||||
@ -372,12 +387,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -399,5 +429,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "12750762f7c4a8ec1281438c128961c29ff33b44..64841687a4cbcda7d1eda64e527648f5cef1bf73"
|
||||
"shas": "b98fb6db21b918f40b3caf936b11bb72c07cb9dd..b8e41392436d04ec37de7c7358f5c6f016fc7726"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d1b8d8617e07c628530185580966f2422d6ac7c7..e414eec18264d8961bb33da56e0257e2f395b8e0"
|
||||
"shas": "65295513fb69f053f466c62e25b12d37872a7543..90d5492eca694a1db6462f9037889549357c3854"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-assignment-statements-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'a' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,22 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'b' var assignment in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'b, c' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -103,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'd' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'd' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -118,7 +118,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'e' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'e' assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -144,7 +144,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e414eec18264d8961bb33da56e0257e2f395b8e0..015f9e0df9afc9f66f2920fae048007f24e07ddf"
|
||||
"shas": "90d5492eca694a1db6462f9037889549357c3854..98ea82656603de04b6b95f411bdcfd58b63e189e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-assignment-statements-replacement-test",
|
||||
@ -176,7 +176,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a' identifier with the 'x' identifier in the x var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'a' identifier with the 'x' identifier in an assignment to x of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -203,22 +203,34 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'b' identifier with the 'y' identifier in the y var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'b' identifier with the 'y' identifier in an assignment to y, c of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
7
|
||||
]
|
||||
}
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
2
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
2
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Added the 'z' var assignment in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'd' identifier with the 'z' identifier in an assignment to z of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -233,22 +245,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'h' var assignment in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
7
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'd' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'h' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -263,7 +260,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'e' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'e' assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -292,7 +289,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "015f9e0df9afc9f66f2920fae048007f24e07ddf..d665ccee0f9f1e68527999700d02641d2dc0e3c0"
|
||||
"shas": "98ea82656603de04b6b95f411bdcfd58b63e189e..4130e7b48740376e3b3e44d8c622245374813a1f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-assignment-statements-delete-replacement-test",
|
||||
@ -324,7 +321,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'x' identifier with the 'a' identifier in the a var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'x' identifier with the 'a' identifier in an assignment to a of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -351,76 +348,49 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'y' identifier with the 'b' identifier in the b var assignment of the 'main' function"
|
||||
"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": {
|
||||
"insert": {
|
||||
"start": [
|
||||
6,
|
||||
7,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
7,
|
||||
7
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'd' var assignment in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
2
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
7,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
2
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'z' identifier with the 'e' identifier in the e var assignment of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
6,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
7
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
7,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
7
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '3' with '1' in the e var assignment of the 'main' function"
|
||||
"summary": "Added the 'e' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -435,7 +405,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'h' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'h' assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -464,7 +434,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d665ccee0f9f1e68527999700d02641d2dc0e3c0..1d22eacf6e4af6688c82356959d4256233d59e8b"
|
||||
"shas": "4130e7b48740376e3b3e44d8c622245374813a1f..67ba411108a71a2f98e7bc597e4178dbcfac0031"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-assignment-statements-delete-insert-test",
|
||||
@ -484,7 +454,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -499,22 +469,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'b' var assignment in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'b, c' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -529,7 +484,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'd' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'd' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -544,7 +499,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'e' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'e' assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -570,7 +525,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "1d22eacf6e4af6688c82356959d4256233d59e8b..f38f74af737d165d5c24b72046295dab7ca7fe1e"
|
||||
"shas": "67ba411108a71a2f98e7bc597e4178dbcfac0031..36092fdf255e0236862c27135098a4fa4e9dbd75"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-assignment-statements-teardown-test",
|
||||
@ -585,12 +540,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -612,5 +582,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f38f74af737d165d5c24b72046295dab7ca7fe1e..67b21ca4a0eade527376ad1395eb7fd5fc5bea97"
|
||||
"shas": "36092fdf255e0236862c27135098a4fa4e9dbd75..3f2a09bd95dfbff3712c14095a53c1f0a3855648"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "20ca91d3f69487f7d530b334333fdfe2a3743e03..f28c3d5ee5b66191bb89061bd551b60a74ac7c7c"
|
||||
"shas": "d5f8f49ab00e91cf9cf8a71dd94c14b3fa29aad8..0f348f4e761af93c4036be91a81c370254edab79"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-call-expressions-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'x(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'x(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'y(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'y(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'z(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'z(b, c)' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -113,7 +128,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f28c3d5ee5b66191bb89061bd551b60a74ac7c7c..4bf42888f808e158884d8ba275440c1044ac7d9c"
|
||||
"shas": "0f348f4e761af93c4036be91a81c370254edab79..8032ef9f0136e422475ec94f40416071beacb1b3"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-call-expressions-replacement-test",
|
||||
@ -133,7 +148,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'a(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -148,7 +163,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'b(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'b(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -163,7 +178,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'c(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -178,7 +193,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'x(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'x(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -193,7 +208,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'y(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'y(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -208,7 +223,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'z(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'z(b, c)' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -235,7 +250,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "4bf42888f808e158884d8ba275440c1044ac7d9c..65d3fd0c110b229fa26172815f243a53541e4f0b"
|
||||
"shas": "8032ef9f0136e422475ec94f40416071beacb1b3..8dda64263242afa2d8deb5d25140852ebfb07b71"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-call-expressions-delete-replacement-test",
|
||||
@ -255,7 +270,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'x(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'x(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -270,7 +285,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'y(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'y(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -285,7 +300,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'z(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'z(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -300,7 +315,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -315,7 +330,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'b(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'b(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -330,7 +345,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'c(b, c)' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -357,7 +372,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "65d3fd0c110b229fa26172815f243a53541e4f0b..6bf993afa56c99144a874460c89325303fc54b21"
|
||||
"shas": "8dda64263242afa2d8deb5d25140852ebfb07b71..dd71d5503cc5e5b1f7e85ccabd36d64c891e48d2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-call-expressions-delete-insert-test",
|
||||
@ -377,7 +392,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'x(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'x(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -392,7 +407,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'y(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'y(b, c)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -407,7 +422,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'z(b, c)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'z(b, c)' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -432,7 +447,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "6bf993afa56c99144a874460c89325303fc54b21..88b0afbe7ddf59f5ced55be27ce159f7899afd6b"
|
||||
"shas": "dd71d5503cc5e5b1f7e85ccabd36d64c891e48d2..a9a077abbee74593f4f64c4491602102a47e0f0d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-call-expressions-teardown-test",
|
||||
@ -447,12 +462,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -474,5 +504,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "88b0afbe7ddf59f5ced55be27ce159f7899afd6b..ef42f9e80388d7180896d3d04b0140b1760b8cde"
|
||||
"shas": "a9a077abbee74593f4f64c4491602102a47e0f0d..cbd953ad26bc63e3ddd57f753a0d7bf09ed21706"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ef1ac04aeb5238b9f803a01487634a5dbb904dd2..e1760700810736700d364d42190327f8c9096457"
|
||||
"shas": "840ffcc3fb49c5769944cce7b4fc8f444c2b1aed..30e5ee71dd288a98026159bc4762ba813caf1e5a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-case-statements-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added a switch statement in the main function of the 'main' module"
|
||||
"summary": "Added a switch statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -81,7 +96,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e1760700810736700d364d42190327f8c9096457..9b44a85844e0ef23b3b09c30db1cec12d678af5d"
|
||||
"shas": "30e5ee71dd288a98026159bc4762ba813caf1e5a..a7af99836429ee5953956b39612d30c98099952d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-case-statements-replacement-test",
|
||||
@ -93,15 +108,15 @@
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
10
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
26
|
||||
24
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'foo' case statement in a switch statement of the 'main' function"
|
||||
"summary": "Added the 'case foo' case statement in a switch statement of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -124,7 +139,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9b44a85844e0ef23b3b09c30db1cec12d678af5d..31744aa062708c7173fda2a34a2540e25abd163c"
|
||||
"shas": "a7af99836429ee5953956b39612d30c98099952d..ce974189409e1cc2547615421f390b953e234699"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-case-statements-delete-replacement-test",
|
||||
@ -136,15 +151,15 @@
|
||||
"delete": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
10
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
26
|
||||
24
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'foo' case statement in a switch statement of the 'main' function"
|
||||
"summary": "Deleted the 'case foo' case statement in a switch statement of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -167,7 +182,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "31744aa062708c7173fda2a34a2540e25abd163c..71f2924e4064fa5e3ca8ac785dc500921da48ad9"
|
||||
"shas": "ce974189409e1cc2547615421f390b953e234699..84d84920f7bcdff865c2a05d49e6d3d98e633866"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-case-statements-delete-insert-test",
|
||||
@ -187,7 +202,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted a switch statement in the main function of the 'main' module"
|
||||
"summary": "Deleted a switch statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -210,7 +225,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "71f2924e4064fa5e3ca8ac785dc500921da48ad9..108e96251525765a292026d6bf8c51025a38edce"
|
||||
"shas": "84d84920f7bcdff865c2a05d49e6d3d98e633866..c455ac8dfc52ad0fcd50455429971b6e5814a066"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-case-statements-teardown-test",
|
||||
@ -225,12 +240,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -252,5 +282,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "108e96251525765a292026d6bf8c51025a38edce..5deef7045822271505960ed4cec253dedf122c38"
|
||||
"shas": "c455ac8dfc52ad0fcd50455429971b6e5814a066..65bbc171b8f70b289f47abe480d261056b5ea251"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0ba70ac16df68cc3eb0b6318c3b784d701f4b216..7fe54090245afabf60eb382f4d8bc77c74f42fd4"
|
||||
"shas": "8ae798e3c9773e3d5b6af35228d06445dd50426f..6fe1a8a05f8eeab5c979450824cdceb0e994abc8"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-channel-types-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c1' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'c1' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c2' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'c2' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c3' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'c3' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -115,7 +130,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "7fe54090245afabf60eb382f4d8bc77c74f42fd4..f6cd7d55c597210ce2a1acabe04cfd69c89ced1c"
|
||||
"shas": "6fe1a8a05f8eeab5c979450824cdceb0e994abc8..61f2e4717656268758d47a3c63c366ab6478f195"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-channel-types-replacement-test",
|
||||
@ -135,7 +150,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c2' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'c2' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -150,7 +165,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c3' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'c3' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -219,7 +234,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c2' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'c2' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -234,7 +249,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c3' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'c3' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -262,7 +277,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f6cd7d55c597210ce2a1acabe04cfd69c89ced1c..9b13e8ebe672fa8877fc1aee5ad42213d7543071"
|
||||
"shas": "61f2e4717656268758d47a3c63c366ab6478f195..911fb96ddd154bd39c0c4434674776d5c08202f2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-channel-types-delete-replacement-test",
|
||||
@ -282,7 +297,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c1' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'c1' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -351,7 +366,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c4' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'c4' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -379,7 +394,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9b13e8ebe672fa8877fc1aee5ad42213d7543071..27c6d31f84167070386d9afcacf0f4cf4fa0c94a"
|
||||
"shas": "911fb96ddd154bd39c0c4434674776d5c08202f2..d31e3bb2f6b29b37edbb1c325a5511c763a405d1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-channel-types-delete-insert-test",
|
||||
@ -399,7 +414,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c1' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'c1' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -414,7 +429,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c2' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'c2' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -429,7 +444,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c3' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'c3' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -456,7 +471,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "27c6d31f84167070386d9afcacf0f4cf4fa0c94a..1c77393f0b11aa6f61d05d68e5b06e9bdcc8ba10"
|
||||
"shas": "d31e3bb2f6b29b37edbb1c325a5511c763a405d1..e9f2625fc7ae3bb80505b2f21de51da17d92d883"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-channel-types-teardown-test",
|
||||
@ -471,12 +486,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -498,5 +528,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "1c77393f0b11aa6f61d05d68e5b06e9bdcc8ba10..d16d600ec49ecf889ed54e257ff4891e281a3dab"
|
||||
"shas": "e9f2625fc7ae3bb80505b2f21de51da17d92d883..190f44e86419bb122daf395748920e3c5779b66b"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,30 +53,12 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "2ff7aeec9c5efbeaf3a7b681f718640926ca1f90..74e82f0e6d4689ed73a303f79e35a56f42fd47d2"
|
||||
"shas": "67d576bfc545aeab08b6970a41866b4643831ec5..9c970f2efc403f74275b43a78017615dc8d96d34"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-comment-insert-test",
|
||||
"expectedResult": {
|
||||
"changes": {
|
||||
"comment.go": [
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
21
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the '// this is a comment' comment in the main function of the 'main' module"
|
||||
}
|
||||
]
|
||||
},
|
||||
"changes": {},
|
||||
"errors": {}
|
||||
},
|
||||
"filePaths": [
|
||||
@ -81,42 +78,12 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "74e82f0e6d4689ed73a303f79e35a56f42fd47d2..0d4ddf5fe3e61320b81f8c2392116951ac63bc19"
|
||||
"shas": "9c970f2efc403f74275b43a78017615dc8d96d34..10fa1c97aa81bb87a389d1ead5d52eda2754a14b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-comment-replacement-test",
|
||||
"expectedResult": {
|
||||
"changes": {
|
||||
"comment.go": [
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
21
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the '// this is a comment' comment with the '/*\nthis is a block comment\n*/' comment in the main function of the 'main' module"
|
||||
}
|
||||
]
|
||||
},
|
||||
"changes": {},
|
||||
"errors": {}
|
||||
},
|
||||
"filePaths": [
|
||||
@ -138,42 +105,12 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0d4ddf5fe3e61320b81f8c2392116951ac63bc19..910896385d213cb7c06e2ead55a4b9abba069a36"
|
||||
"shas": "10fa1c97aa81bb87a389d1ead5d52eda2754a14b..2fa774b3862130654f8cca4f2be3dac35b209fc5"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-comment-delete-replacement-test",
|
||||
"expectedResult": {
|
||||
"changes": {
|
||||
"comment.go": [
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
3
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
21
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the '/*\nthis is a block comment\n*/' comment with the '// this is a comment' comment in the main function of the 'main' module"
|
||||
}
|
||||
]
|
||||
},
|
||||
"changes": {},
|
||||
"errors": {}
|
||||
},
|
||||
"filePaths": [
|
||||
@ -195,30 +132,12 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "910896385d213cb7c06e2ead55a4b9abba069a36..f129ff19da478611e72dc4a472f1fe440e32d7a8"
|
||||
"shas": "2fa774b3862130654f8cca4f2be3dac35b209fc5..d406d59cc62f4b839107355542037c763747f90b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-comment-delete-insert-test",
|
||||
"expectedResult": {
|
||||
"changes": {
|
||||
"comment.go": [
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
21
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the '// this is a comment' comment in the main function of the 'main' module"
|
||||
}
|
||||
]
|
||||
},
|
||||
"changes": {},
|
||||
"errors": {}
|
||||
},
|
||||
"filePaths": [
|
||||
@ -238,7 +157,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f129ff19da478611e72dc4a472f1fe440e32d7a8..9db6c10b7cd6aeeda4a153ac070d38768258f376"
|
||||
"shas": "d406d59cc62f4b839107355542037c763747f90b..e280c452debf7fa9838e27bbda560e056a973742"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-comment-teardown-test",
|
||||
@ -253,12 +172,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -280,5 +214,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9db6c10b7cd6aeeda4a153ac070d38768258f376..96429faca853f0301df4b0d4d43ce26e3011129c"
|
||||
"shas": "e280c452debf7fa9838e27bbda560e056a973742..f5a9b8a54a3841db93e420bf8eff96b4d2d6858a"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "644992bcb04ee1c62efa585521dfe3bb1afbfe6e..0297a4066d1956454a339a227ecaa544f80c73bb"
|
||||
"shas": "4a6aceb384ae2a8fd0779a62812d50a760f55bda..9b5af2a7e62ee2d129c735f56cc34b089c706020"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-declarations-with-types-insert-test",
|
||||
@ -52,13 +67,43 @@
|
||||
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 the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added '0' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -81,7 +126,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0297a4066d1956454a339a227ecaa544f80c73bb..3f0ce32c60d690ee561e359b990714387959f548"
|
||||
"shas": "9b5af2a7e62ee2d129c735f56cc34b089c706020..e1177c66dfe74dd4143ee6ac133bdd25f82e5786"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-declarations-with-types-replacement-test",
|
||||
@ -113,7 +158,49 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'zero' identifier with the 'one' identifier in the one var assignment of the 'main' function"
|
||||
"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": {
|
||||
@ -140,14 +227,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '0' with '1' in the one var assignment of the 'main' function"
|
||||
"summary": "Replaced '0' with '1' in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
7
|
||||
29
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
@ -155,7 +242,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'two' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added '2' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -178,7 +265,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "3f0ce32c60d690ee561e359b990714387959f548..d6726b3d4b9d3f399970027b9c1f44336005fe5f"
|
||||
"shas": "e1177c66dfe74dd4143ee6ac133bdd25f82e5786..70e5c6a4cfe3fb36ce3d1ff158e8f303d04d8f95"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-declarations-with-types-delete-replacement-test",
|
||||
@ -210,7 +297,49 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'one' identifier with the 'zero' identifier in the zero var assignment of the 'main' function"
|
||||
"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": {
|
||||
@ -237,14 +366,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '1' with '0' in the zero var assignment of the 'main' function"
|
||||
"summary": "Replaced '1' with '0' in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
4,
|
||||
7
|
||||
29
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
@ -252,7 +381,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'two' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted '2' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -275,7 +404,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d6726b3d4b9d3f399970027b9c1f44336005fe5f..b4888b03cfd4e5faafd4fb28038de44168602f45"
|
||||
"shas": "70e5c6a4cfe3fb36ce3d1ff158e8f303d04d8f95..df53cc08219f7164eb848225b84a7baa8f519650"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-declarations-with-types-delete-insert-test",
|
||||
@ -289,13 +418,43 @@
|
||||
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 the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted '0' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -318,7 +477,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "b4888b03cfd4e5faafd4fb28038de44168602f45..9fb1ea0a14644ad80945502ac972cfc78e083a72"
|
||||
"shas": "df53cc08219f7164eb848225b84a7baa8f519650..411866d01813ed979fa88a20ba91c74073c361cb"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-declarations-with-types-teardown-test",
|
||||
@ -333,12 +492,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -360,5 +534,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9fb1ea0a14644ad80945502ac972cfc78e083a72..0d1fc5e6274224d81271e5fc10b3dcd839d2c59e"
|
||||
"shas": "411866d01813ed979fa88a20ba91c74073c361cb..9c509bdfabb537255c810cd09cf45b53bf65628f"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "87617fd8faafd24f6979854f3e3b13694e836665..0ceb7e8e61fc3d084f24c489a88b9dbb6d1d90fa"
|
||||
"shas": "bda742d270e92cc83a8a8f229714661cfae58fee..8fae5b68a9e2dc9d3f96f39c86521f932addd607"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-declarations-without-types-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'zero' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -81,7 +96,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0ceb7e8e61fc3d084f24c489a88b9dbb6d1d90fa..45ad9f7abd0719ce42c5cdccf4628274d2b5d5f7"
|
||||
"shas": "8fae5b68a9e2dc9d3f96f39c86521f932addd607..136dc284d185b35d4482cd64e0c82e1ae86df6d5"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-declarations-without-types-replacement-test",
|
||||
@ -113,7 +128,22 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'zero' identifier with the 'one' identifier in the one var assignment of the 'main' function"
|
||||
"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": {
|
||||
@ -140,14 +170,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '0' with '1' in the one var assignment of the 'main' function"
|
||||
"summary": "Replaced '0' with '1' in the one, two var assignment of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
7
|
||||
21
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
@ -155,7 +185,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'two' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added '2' in the one, two var assignment of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -178,7 +208,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "45ad9f7abd0719ce42c5cdccf4628274d2b5d5f7..1bafc1b266246fd616154a54053daa3ea7b06642"
|
||||
"shas": "136dc284d185b35d4482cd64e0c82e1ae86df6d5..a5bc508cdc3816266f5896654a06d90c8372a929"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-declarations-without-types-delete-replacement-test",
|
||||
@ -212,6 +242,21 @@
|
||||
},
|
||||
"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": [
|
||||
@ -244,7 +289,7 @@
|
||||
"delete": {
|
||||
"start": [
|
||||
4,
|
||||
7
|
||||
21
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
@ -252,7 +297,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'two' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted '2' in the zero var assignment of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -275,7 +320,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "1bafc1b266246fd616154a54053daa3ea7b06642..656d4d3a01b343421bdd2347bf9c81a4eafe2975"
|
||||
"shas": "a5bc508cdc3816266f5896654a06d90c8372a929..eeec9538fdf788ff7220f7c45e18723c8f8c6213"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-declarations-without-types-delete-insert-test",
|
||||
@ -295,7 +340,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'zero' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -318,7 +363,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "656d4d3a01b343421bdd2347bf9c81a4eafe2975..a4ea9bfdc4648c4ab77b9378a7afae80e33c8085"
|
||||
"shas": "eeec9538fdf788ff7220f7c45e18723c8f8c6213..cb36960674fd5af8ce3bb29a4050ad30c517af4a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-declarations-without-types-teardown-test",
|
||||
@ -333,12 +378,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -360,5 +420,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "a4ea9bfdc4648c4ab77b9378a7afae80e33c8085..644992bcb04ee1c62efa585521dfe3bb1afbfe6e"
|
||||
"shas": "cb36960674fd5af8ce3bb29a4050ad30c517af4a..4a6aceb384ae2a8fd0779a62812d50a760f55bda"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "358b31625272f975d35624a18f8337974c7a142d..e107a76ae19047adbef4f2592b27bbaa0763e858"
|
||||
"shas": "8b23ffed2230fe0c2e75c1a02c179c9ff1726d8f..937443c336d969595e6a83ebc8db77307b5961da"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-with-implicit-values-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'zero' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'one' identifier in the main function of the 'main' module"
|
||||
"summary": "Added the 'one' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'two' identifier in the main function of the 'main' module"
|
||||
"summary": "Added the 'two' identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -115,7 +130,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e107a76ae19047adbef4f2592b27bbaa0763e858..5927bf13ce0779493a7306cdab8a1e613616de7a"
|
||||
"shas": "937443c336d969595e6a83ebc8db77307b5961da..389c40207cfccd6a33e8ade86a25334277f5c378"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-with-implicit-values-replacement-test",
|
||||
@ -174,7 +189,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'one' identifier with the 'b' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'one' identifier with the 'b' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -201,7 +216,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'two' identifier with the 'c' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'two' identifier with the 'c' identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -229,7 +244,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "5927bf13ce0779493a7306cdab8a1e613616de7a..181005c8bc218381c82e9554c9b7802f493a2781"
|
||||
"shas": "389c40207cfccd6a33e8ade86a25334277f5c378..efbb02340a4f156d3ca28e917ddb684999f88c29"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-with-implicit-values-delete-replacement-test",
|
||||
@ -288,7 +303,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'b' identifier with the 'one' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'b' identifier with the 'one' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -315,7 +330,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'c' identifier with the 'two' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'c' identifier with the 'two' identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -343,7 +358,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "181005c8bc218381c82e9554c9b7802f493a2781..991bc37844c90993f716c7496c5778ec3ef7f612"
|
||||
"shas": "efbb02340a4f156d3ca28e917ddb684999f88c29..eec730b7debfaa8297c9b4563171986277737960"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-with-implicit-values-delete-insert-test",
|
||||
@ -363,7 +378,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'zero' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -378,7 +393,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'one' identifier in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'one' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -393,7 +408,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'two' identifier in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'two' identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -420,7 +435,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "991bc37844c90993f716c7496c5778ec3ef7f612..2cc4ccb68ae849d4332a1e8c89a17225522db446"
|
||||
"shas": "eec730b7debfaa8297c9b4563171986277737960..4e2c650c7a3af1c7b5e5a22da3548d002c9ad050"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-const-with-implicit-values-teardown-test",
|
||||
@ -435,12 +450,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -462,5 +492,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "2cc4ccb68ae849d4332a1e8c89a17225522db446..d857a5e809451235a1566b3bd2e315a9cdf9213f"
|
||||
"shas": "4e2c650c7a3af1c7b5e5a22da3548d002c9ad050..024afce27e9882ceae4b057bb8bfb8586761a13f"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d857a5e809451235a1566b3bd2e315a9cdf9213f..7f3ea3338ef4b4efa3eb722676645b35bf7e2219"
|
||||
"shas": "024afce27e9882ceae4b057bb8bfb8586761a13f..6fc6c8edcc929af03c8663dc5e5aa3ee5370202c"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-constructors-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'make(chan<- int)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'make(chan<- int)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'make(chan<- int, …)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'make(chan<- int, …)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'make(chan<- int, 5, 10)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'make(chan<- int, 5, 10)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -103,7 +118,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'new(…)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'new(…)' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -129,7 +144,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "7f3ea3338ef4b4efa3eb722676645b35bf7e2219..71ab81613288be4a1bc41470a41213c54fc32d9c"
|
||||
"shas": "6fc6c8edcc929af03c8663dc5e5aa3ee5370202c..e4b0010eb1c1c21136301481d464e9c4b3c114ae"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-constructors-replacement-test",
|
||||
@ -352,7 +367,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "71ab81613288be4a1bc41470a41213c54fc32d9c..ab855120e03c61d6936aa3e7d542b3da4bf08754"
|
||||
"shas": "e4b0010eb1c1c21136301481d464e9c4b3c114ae..56b8228e835ad78277d22d4148192e2ad4111abd"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-constructors-delete-replacement-test",
|
||||
@ -575,7 +590,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ab855120e03c61d6936aa3e7d542b3da4bf08754..35d4317a645faac48756c0097ecb2ddee8eb6f6c"
|
||||
"shas": "56b8228e835ad78277d22d4148192e2ad4111abd..ace430b5760091e3c1bb339eb0452bc93a155e10"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-constructors-delete-insert-test",
|
||||
@ -595,7 +610,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'make(chan<- int)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'make(chan<- int)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -610,7 +625,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'make(chan<- int, …)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'make(chan<- int, …)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -625,7 +640,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'make(chan<- int, 5, 10)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'make(chan<- int, 5, 10)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -640,7 +655,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'new(…)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'new(…)' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -666,7 +681,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "35d4317a645faac48756c0097ecb2ddee8eb6f6c..c4979ddf83c2bf3ef239a79940067fe2af652820"
|
||||
"shas": "ace430b5760091e3c1bb339eb0452bc93a155e10..a5327fc1a6f44c26f33075bb2f294b406574c8a3"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-constructors-teardown-test",
|
||||
@ -681,12 +696,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -708,5 +738,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c4979ddf83c2bf3ef239a79940067fe2af652820..2e1fbc3488b3a5250246698b500360fa5c6cfcf2"
|
||||
"shas": "a5327fc1a6f44c26f33075bb2f294b406574c8a3..eca7c6083f4f3169ebc3bf726c3d936818a2d174"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "2f519cce92d26f6a9c43d21d062dc065afef2bbb..b6beb80d930a2bc6ae6c0d5df76200c507250209"
|
||||
"shas": "6ea06aa1e8431651d63087d1f623f409947a25f1..a03d106f4668e2d39bf52c3e278b68cf682165b1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-float-literals-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f1' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'f1' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f2' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'f2' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f3' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'f3' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -103,7 +118,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f4' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'f4' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -118,7 +133,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f5' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'f5' assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -145,7 +160,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "b6beb80d930a2bc6ae6c0d5df76200c507250209..fea5991ebfc78f18039f803e422e7d6dce4f9201"
|
||||
"shas": "a03d106f4668e2d39bf52c3e278b68cf682165b1..841ab7a1e0173f62bcb428551152d9d47f123025"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-float-literals-replacement-test",
|
||||
@ -154,138 +169,153 @@
|
||||
"float-literals.go": [
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
9
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
9
|
||||
]
|
||||
}
|
||||
]
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
9
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Replaced the '1.5' float with the '2.6' float in the f1 var assignment of the 'main' function"
|
||||
"summary": "Added the 'f1' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
13
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
13
|
||||
]
|
||||
}
|
||||
]
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Replaced the '1.5e100' float with the '2.6e211' float in the f2 var assignment of the 'main' function"
|
||||
"summary": "Added the 'f2' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
6,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
13
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
6,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
13
|
||||
]
|
||||
}
|
||||
]
|
||||
"insert": {
|
||||
"start": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Replaced the '1.5e+50' float with the '2.6e+60' float in the f3 var assignment of the 'main' function"
|
||||
"summary": "Added the 'f3' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
7,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
12
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
7,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
12
|
||||
]
|
||||
}
|
||||
]
|
||||
"insert": {
|
||||
"start": [
|
||||
7,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
12
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Replaced the '1.5e-5' float with the '2.6e-7' float in the f4 var assignment of the 'main' function"
|
||||
"summary": "Added the 'f4' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
8,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
12
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
8,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
12
|
||||
]
|
||||
}
|
||||
]
|
||||
"insert": {
|
||||
"start": [
|
||||
8,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
12
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Replaced the '.5e-50' float with the '.6e-60' float in the f5 var assignment of the 'main' function"
|
||||
"summary": "Added the 'f5' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -316,7 +346,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "fea5991ebfc78f18039f803e422e7d6dce4f9201..3b4830ed00129bac691be2171faa828b86110889"
|
||||
"shas": "841ab7a1e0173f62bcb428551152d9d47f123025..5e8653295137112c6645a93a98308e0c690247b7"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-float-literals-delete-replacement-test",
|
||||
@ -325,138 +355,153 @@
|
||||
"float-literals.go": [
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
9
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
9
|
||||
]
|
||||
}
|
||||
]
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
9
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Replaced the '2.6' float with the '1.5' float in the f1 var assignment of the 'main' function"
|
||||
"summary": "Added the 'f1' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
13
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
13
|
||||
]
|
||||
}
|
||||
]
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Replaced the '2.6e211' float with the '1.5e100' float in the f2 var assignment of the 'main' function"
|
||||
"summary": "Added the 'f2' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
6,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
13
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
6,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
13
|
||||
]
|
||||
}
|
||||
]
|
||||
"insert": {
|
||||
"start": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Replaced the '2.6e+60' float with the '1.5e+50' float in the f3 var assignment of the 'main' function"
|
||||
"summary": "Added the 'f3' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
7,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
12
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
7,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
12
|
||||
]
|
||||
}
|
||||
]
|
||||
"insert": {
|
||||
"start": [
|
||||
7,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
12
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Replaced the '2.6e-7' float with the '1.5e-5' float in the f4 var assignment of the 'main' function"
|
||||
"summary": "Added the 'f4' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
8,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
12
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
8,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
12
|
||||
]
|
||||
}
|
||||
]
|
||||
"insert": {
|
||||
"start": [
|
||||
8,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
12
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Replaced the '.6e-60' float with the '.5e-50' float in the f5 var assignment of the 'main' function"
|
||||
"summary": "Added the 'f5' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -487,7 +532,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "3b4830ed00129bac691be2171faa828b86110889..64c465ac26aef821ef49295f5582cc212f1f1eea"
|
||||
"shas": "5e8653295137112c6645a93a98308e0c690247b7..371f187f2f1bf7fb9a1feff41ea8d1d6c4d3e25e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-float-literals-delete-insert-test",
|
||||
@ -507,7 +552,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f1' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'f1' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -522,7 +567,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f2' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'f2' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -537,7 +582,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f3' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'f3' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -552,7 +597,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f4' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'f4' assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -567,7 +612,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f5' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'f5' assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -594,7 +639,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "64c465ac26aef821ef49295f5582cc212f1f1eea..6b76359426eb9a1c5af1ae948688f187f919c9b0"
|
||||
"shas": "371f187f2f1bf7fb9a1feff41ea8d1d6c4d3e25e..e1f25ce6d6735b3b0590d3cf21f59bb32675ff2d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-float-literals-teardown-test",
|
||||
@ -609,12 +654,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -636,5 +696,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "6b76359426eb9a1c5af1ae948688f187f919c9b0..0b52228e533b01beb1e33054e72003307726533c"
|
||||
"shas": "e1f25ce6d6735b3b0590d3cf21f59bb32675ff2d..663f0278d8c41aca54ae0d1849efc76213f9ba1f"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e8a0a2912cf6fee72c6e0cc0d96c5babf1cd4df1..9ae64fc2be083d6a80c7a2a870ebdb98edc623dd"
|
||||
"shas": "030876029c6aa56a60b06740ec65bec788ad8715..e273179f5e9abd6bc426d0dabf1d847d9fc3e4f6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-for-statements-insert-test",
|
||||
@ -49,16 +64,31 @@
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
2
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
2
|
||||
5,
|
||||
4
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'for {\na()\ngoto loop\n}' for statement in the main function of the 'main' module"
|
||||
"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": {
|
||||
@ -73,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'i := 0; i < 5; i++' for statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'i := 0; i < 5; i++' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +118,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'i < 10; i++' for statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'i < 10; i++' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -103,7 +133,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'for ;; {\na()\ncontinue\n}' for statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'for ;; {\na()\ncontinue\n}' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -118,7 +148,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'x := range y' for statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'x := range y' for statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -160,13 +190,28 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9ae64fc2be083d6a80c7a2a870ebdb98edc623dd..d2d67882694cf618b4b0236fc2d4c1429d5c76da"
|
||||
"shas": "e273179f5e9abd6bc426d0dabf1d847d9fc3e4f6..f25b62b1979ac923c37947e26b12ab7b07772a65"
|
||||
}
|
||||
,{
|
||||
"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": {
|
||||
@ -180,7 +225,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'x := range y' for statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'x := range y' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -195,7 +240,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'for ;; {\na()\ncontinue loop2\n}' for statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'for ;; {\na()\ncontinue loop2\n}' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -210,22 +255,52 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'i < 10; i++' for statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'i < 10; i++' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
20,
|
||||
1
|
||||
21,
|
||||
3
|
||||
],
|
||||
"end": [
|
||||
23,
|
||||
2
|
||||
21,
|
||||
4
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'for {\na(x)\nbreak\n}' for statement in the main function of the 'main' module"
|
||||
"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": {
|
||||
@ -240,7 +315,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'i := 0; i < 5; i++' for statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'i := 0; i < 5; i++' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -255,7 +330,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'i < 10; i++' for statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'i < 10; i++' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -270,7 +345,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'for ;; {\na()\ncontinue\n}' for statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'for ;; {\na()\ncontinue\n}' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -285,7 +360,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'x := range y' for statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'x := range y' for statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -330,13 +405,43 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d2d67882694cf618b4b0236fc2d4c1429d5c76da..3cd84da69fc85aa2b54fffcadd31b818a13593cf"
|
||||
"shas": "f25b62b1979ac923c37947e26b12ab7b07772a65..1d87bb5117646fb05a6eb77fab4add841c79e49c"
|
||||
}
|
||||
,{
|
||||
"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": {
|
||||
@ -350,7 +455,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'i := 0; i < 5; i++' for statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'i := 0; i < 5; i++' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -365,22 +470,34 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'i < 10; i++' for statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'i < 10; i++' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
16,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
19,
|
||||
2
|
||||
]
|
||||
}
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
2
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
2
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
16,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
19,
|
||||
2
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Added the 'for ;; {\na()\ncontinue\n}' for statement in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'for ;; {\na()\ngoto loop\n}' for statement with the 'for ;; {\na()\ncontinue\n}' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -410,7 +527,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'loop' identifier in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'loop' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -425,7 +542,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'for ;; {\na()\ncontinue loop2\n}' for statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'for ;; {\na()\ncontinue loop2\n}' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -440,22 +557,37 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'i < 10; i++' for statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'i < 10; i++' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
20,
|
||||
21,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
23,
|
||||
2
|
||||
21,
|
||||
5
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'for {\na(x)\nbreak\n}' for statement in the main function of the 'main' module"
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -500,7 +632,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "3cd84da69fc85aa2b54fffcadd31b818a13593cf..fa8ef6297ac3ba4df986080f0beee427c3e5faaa"
|
||||
"shas": "1d87bb5117646fb05a6eb77fab4add841c79e49c..1743b5d6f9c95bb0d7dbec59c2e254d7d444ca0f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-for-statements-delete-insert-test",
|
||||
@ -511,16 +643,31 @@
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
4,
|
||||
2
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
2
|
||||
5,
|
||||
4
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'for {\na()\ngoto loop\n}' for statement in the main function of the 'main' module"
|
||||
"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": {
|
||||
@ -535,7 +682,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'i := 0; i < 5; i++' for statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'i := 0; i < 5; i++' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -550,7 +697,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'i < 10; i++' for statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'i < 10; i++' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -565,7 +712,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'for ;; {\na()\ncontinue\n}' for statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'for ;; {\na()\ncontinue\n}' for statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -580,7 +727,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'x := range y' for statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'x := range y' for statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -622,7 +769,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "fa8ef6297ac3ba4df986080f0beee427c3e5faaa..ccc25ba06c31afa638442976a2a83284dd02efa3"
|
||||
"shas": "1743b5d6f9c95bb0d7dbec59c2e254d7d444ca0f..59eb24ea939ad8ac2cf5e8e16edce93aac3981fd"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-for-statements-teardown-test",
|
||||
@ -637,12 +784,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -664,5 +826,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ccc25ba06c31afa638442976a2a83284dd02efa3..6cbe8d53838858e6ff83e2890cd6d51da63e06dd"
|
||||
"shas": "59eb24ea939ad8ac2cf5e8e16edce93aac3981fd..b9e8cbc963d70681826124d682474977bcef4d33"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "6cbe8d53838858e6ff83e2890cd6d51da63e06dd..c9165a22e802c84a4c84603433208209bf8ecd58"
|
||||
"shas": "b9e8cbc963d70681826124d682474977bcef4d33..75b2b30297a1bb14866f352c5291cae0ad1711b6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-declarations-insert-test",
|
||||
@ -54,8 +69,8 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -64,13 +79,13 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
9,
|
||||
1
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'main' module with the 'main' module"
|
||||
"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}\n' at line 1, column 1 - line 9, column 1"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -96,7 +111,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c9165a22e802c84a4c84603433208209bf8ecd58..14ddaf5c44b68da54ac1e6080f651683b00abd0d"
|
||||
"shas": "75b2b30297a1bb14866f352c5291cae0ad1711b6..aced7850a95b463c3083658d0a6b2a9e25021b74"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-declarations-replacement-test",
|
||||
@ -155,7 +170,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'f2' identifier with the 'fb' identifier in the main module"
|
||||
"summary": "Replaced the 'f2' identifier with the 'fb' identifier in the fb function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -182,7 +197,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'f2' identifier with the 'fc' identifier in the main module"
|
||||
"summary": "Replaced the 'f2' identifier with the 'fc' identifier in the fc function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -209,7 +224,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'f2' identifier with the 'fd' identifier in the main module"
|
||||
"summary": "Replaced the 'f2' identifier with the 'fd' identifier in the fd function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -238,7 +253,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "14ddaf5c44b68da54ac1e6080f651683b00abd0d..da31b44611dfde41b3500e215d049e0ae08decd1"
|
||||
"shas": "aced7850a95b463c3083658d0a6b2a9e25021b74..d0160ccee51c30218f5ca3f776ca8c21cf6ccfd2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-declarations-delete-replacement-test",
|
||||
@ -297,7 +312,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'fb' identifier with the 'f2' identifier in the main module"
|
||||
"summary": "Replaced the 'fb' identifier with the 'f2' identifier in the f2 function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -324,7 +339,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'fc' identifier with the 'f2' identifier in the main module"
|
||||
"summary": "Replaced the 'fc' identifier with the 'f2' identifier in the f2 function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -351,7 +366,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'fd' identifier with the 'f2' identifier in the main module"
|
||||
"summary": "Replaced the 'fd' identifier with the 'f2' identifier in the f2 function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -380,7 +395,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "da31b44611dfde41b3500e215d049e0ae08decd1..cd07dffb2fde011ff7d80b7e9fe6319aadafcba7"
|
||||
"shas": "d0160ccee51c30218f5ca3f776ca8c21cf6ccfd2..5e7095ac8137e91c12215c45438bbd29c382290e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-declarations-delete-insert-test",
|
||||
@ -396,7 +411,7 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
9,
|
||||
1
|
||||
]
|
||||
},
|
||||
@ -406,13 +421,13 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'main' module with the 'main' module"
|
||||
"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}\n' at line 1, column 1 - line 9, column 1 with the 'main' module"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -438,7 +453,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "cd07dffb2fde011ff7d80b7e9fe6319aadafcba7..15310f0e4a692c1ebd2a48e7512e71ae63cbd02f"
|
||||
"shas": "5e7095ac8137e91c12215c45438bbd29c382290e..432d945a039effe38996415a0be25ec7a92dc22f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-declarations-teardown-test",
|
||||
@ -453,12 +468,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -480,5 +510,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "15310f0e4a692c1ebd2a48e7512e71ae63cbd02f..15dbaf1c2f3cba362af5abba2a6aa9d2f1a92990"
|
||||
"shas": "432d945a039effe38996415a0be25ec7a92dc22f..7ebca2c2e26873ec2ec3d92c6922446eb95bb61f"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ef42f9e80388d7180896d3d04b0140b1760b8cde..1fb1e9f61f626d60fe3e512332836e31a56fc8b7"
|
||||
"shas": "cbd953ad26bc63e3ddd57f753a0d7bf09ed21706..74d2004a9be4bf5167b1d97e6732bbe137e3a460"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-literals-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's1' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 's1' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -83,7 +98,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "1fb1e9f61f626d60fe3e512332836e31a56fc8b7..3ab7c922ad81c7b10bc94a5a9fd51735a79671f9"
|
||||
"shas": "74d2004a9be4bf5167b1d97e6732bbe137e3a460..04192192923a0a0e3af386c560b3cd34bc1b63ce"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-literals-replacement-test",
|
||||
@ -167,7 +182,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "3ab7c922ad81c7b10bc94a5a9fd51735a79671f9..2c577ddb1557a779eba3c8e71cc1d0fbcb2cba8d"
|
||||
"shas": "04192192923a0a0e3af386c560b3cd34bc1b63ce..0ef7e22a17c2ed105f74e285979fae66528aad70"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-literals-delete-replacement-test",
|
||||
@ -251,7 +266,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "2c577ddb1557a779eba3c8e71cc1d0fbcb2cba8d..7dcf732eb420094b92c6079a6a179d728d2df17c"
|
||||
"shas": "0ef7e22a17c2ed105f74e285979fae66528aad70..ba516525d99d7da0277fccb9f9ff68aec352e5f3"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-literals-delete-insert-test",
|
||||
@ -271,7 +286,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's1' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's1' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -296,7 +311,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "7dcf732eb420094b92c6079a6a179d728d2df17c..c2c89a674013bfa2b8679db2532dee1d1453becb"
|
||||
"shas": "ba516525d99d7da0277fccb9f9ff68aec352e5f3..13743127bcf07e1e88a6fc021b0a8b6a698a4a25"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-literals-teardown-test",
|
||||
@ -311,12 +326,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -338,5 +368,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c2c89a674013bfa2b8679db2532dee1d1453becb..87617fd8faafd24f6979854f3e3b13694e836665"
|
||||
"shas": "13743127bcf07e1e88a6fc021b0a8b6a698a4a25..bda742d270e92cc83a8a8f229714661cfae58fee"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d16d600ec49ecf889ed54e257ff4891e281a3dab..e174b9832330316dd904f215a57a895a427b7baa"
|
||||
"shas": "190f44e86419bb122daf395748920e3c5779b66b..1815f5ac7ccb734cfb2c19bc68c7577305301768"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-types-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'a' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'b' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'b' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -99,7 +114,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e174b9832330316dd904f215a57a895a427b7baa..d3bc3ecfa6fbe86d502f08349e94afba0bb7b3b0"
|
||||
"shas": "1815f5ac7ccb734cfb2c19bc68c7577305301768..3606d9bc10b8730dea35f76b1aa221b078bbadfe"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-types-replacement-test",
|
||||
@ -313,7 +328,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d3bc3ecfa6fbe86d502f08349e94afba0bb7b3b0..4ae6ba4c2226fc206e7bd0616d386ce563e5940f"
|
||||
"shas": "3606d9bc10b8730dea35f76b1aa221b078bbadfe..58b1cdcdee55c272dae229c1c5118cc6a830596c"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-types-delete-replacement-test",
|
||||
@ -527,7 +542,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "4ae6ba4c2226fc206e7bd0616d386ce563e5940f..b0ad7154c547ccfb91b146dfd87c5df80287b982"
|
||||
"shas": "58b1cdcdee55c272dae229c1c5118cc6a830596c..f17fbf867be99922b4ceae5821169d4c80acbd6b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-types-delete-insert-test",
|
||||
@ -547,7 +562,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -562,7 +577,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'b' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'b' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -588,7 +603,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "b0ad7154c547ccfb91b146dfd87c5df80287b982..ff109d3edbe7834f2da3f35579a99c1d06f81a03"
|
||||
"shas": "f17fbf867be99922b4ceae5821169d4c80acbd6b..0426718d4af0fec65a3ffdf23db55358449ba5a2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-function-types-teardown-test",
|
||||
@ -603,12 +618,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -630,5 +660,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ff109d3edbe7834f2da3f35579a99c1d06f81a03..df3298de1cff4cc80875946fc6abeec7bf257f39"
|
||||
"shas": "0426718d4af0fec65a3ffdf23db55358449ba5a2..57bf5ffc56480fbb108aa9d683b4dfd5324acbbf"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c14d55dd062dc340dde5986bd08c8b6aa1173023..278def98e925c3f8c4c39e7b82e6d4e93d3f6f01"
|
||||
"shas": "fa9acd974705290312a7cebdba09b18008dc6093..d00a7d7d9b0063f84a7033c6182913c365412974"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-go-and-defer-statements-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'x[y]()' defer statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'x[y]()' defer statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'x[y]()' go statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'x[y]()' go statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -97,7 +112,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "278def98e925c3f8c4c39e7b82e6d4e93d3f6f01..77af86d247af5374e02a3083387901e4f6055d85"
|
||||
"shas": "d00a7d7d9b0063f84a7033c6182913c365412974..eafca6f1008f09b4b1a1c39a58d69aa84ac352b6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-go-and-defer-statements-replacement-test",
|
||||
@ -235,7 +250,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "77af86d247af5374e02a3083387901e4f6055d85..3195df01c958961855d16db8dd512ca3db0b4cec"
|
||||
"shas": "eafca6f1008f09b4b1a1c39a58d69aa84ac352b6..949b06caae4bd83cfbfd6a4a2af62754e5426afc"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-go-and-defer-statements-delete-replacement-test",
|
||||
@ -373,7 +388,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "3195df01c958961855d16db8dd512ca3db0b4cec..66da4d913b11ceae987aa3dbbcce0da116e3ee12"
|
||||
"shas": "949b06caae4bd83cfbfd6a4a2af62754e5426afc..6a0c93da8aace8b01e5dcd171ecb9482ec200cb9"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-go-and-defer-statements-delete-insert-test",
|
||||
@ -393,7 +408,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'x[y]()' defer statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'x[y]()' defer statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -408,7 +423,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'x[y]()' go statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'x[y]()' go statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -432,7 +447,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "66da4d913b11ceae987aa3dbbcce0da116e3ee12..385153e6284f16b53e7195c7f3e4d8d0299ecc15"
|
||||
"shas": "6a0c93da8aace8b01e5dcd171ecb9482ec200cb9..8b9931aef1a3b18f61b2dee680cdc1d159cb4f36"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-go-and-defer-statements-teardown-test",
|
||||
@ -447,12 +462,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -474,5 +504,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "385153e6284f16b53e7195c7f3e4d8d0299ecc15..f9136e3be46a93bc0e0b6dc467c7b9ced1b97894"
|
||||
"shas": "8b9931aef1a3b18f61b2dee680cdc1d159cb4f36..43ac69d0304e8f5a93bb985e3f4e05d9dff5d2b6"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,13 +53,12 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "6bee120701f5e3c15b3f8a13d4ead70d225091d1..c5b7e7d94b3d71f376c335e1fef631814f11a748"
|
||||
"shas": "126db53cee9459e0927b80ed1af574cc273f948e..6b9c8e7943b9fee465f5ae36a8e60f309fd34f53"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-grouped-import-declarations-insert-test",
|
||||
"expectedResult": {
|
||||
"changes": {},
|
||||
"errors": {
|
||||
"changes": {
|
||||
"grouped-import-declarations.go": [
|
||||
{
|
||||
"span": {
|
||||
@ -54,12 +68,46 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
2
|
||||
4,
|
||||
7
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 4, column 1 - line 8, column 2 in the main function of the 'main' module"
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -85,7 +133,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c5b7e7d94b3d71f376c335e1fef631814f11a748..f7d189cc5f3c9f36ecf1a2e78f21b522b2d5f8fd"
|
||||
"shas": "6b9c8e7943b9fee465f5ae36a8e60f309fd34f53..da13ed2e396030607a1566cd6b4aa3295a2d1221"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-grouped-import-declarations-replacement-test",
|
||||
@ -117,7 +165,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"net/http\" string with the \"net/socket\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"net/http\" string with the \"net/socket\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -144,7 +192,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"some/dsl\" string with the \"types/dsl\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"some/dsl\" string with the \"types/dsl\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -171,7 +219,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"some/package\" string with the \"awesome/package\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"some/package\" string with the \"awesome/package\" string in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -199,7 +247,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f7d189cc5f3c9f36ecf1a2e78f21b522b2d5f8fd..998dec80a305b10415e56b3ee3b87e5204450f83"
|
||||
"shas": "da13ed2e396030607a1566cd6b4aa3295a2d1221..d10a69e54f224c4a48b4ab0489e435f86ac84de1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-grouped-import-declarations-delete-replacement-test",
|
||||
@ -231,7 +279,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"net/socket\" string with the \"net/http\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"net/socket\" string with the \"net/http\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -258,7 +306,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"types/dsl\" string with the \"some/dsl\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"types/dsl\" string with the \"some/dsl\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -285,7 +333,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"awesome/package\" string with the \"some/package\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"awesome/package\" string with the \"some/package\" string in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -313,13 +361,12 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "998dec80a305b10415e56b3ee3b87e5204450f83..de107f343c5ef74a0ffff791e8b1f0a277065bd1"
|
||||
"shas": "d10a69e54f224c4a48b4ab0489e435f86ac84de1..6a25d985a312ed1935f33359735bfc3fad514a37"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-grouped-import-declarations-delete-insert-test",
|
||||
"expectedResult": {
|
||||
"changes": {},
|
||||
"errors": {
|
||||
"changes": {
|
||||
"grouped-import-declarations.go": [
|
||||
{
|
||||
"span": {
|
||||
@ -329,12 +376,46 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
2
|
||||
4,
|
||||
7
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 4, column 1 - line 8, column 2 in the main function of the 'main' module"
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -360,7 +441,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "de107f343c5ef74a0ffff791e8b1f0a277065bd1..81ec082bb841b347028b400c179a10de3b443f10"
|
||||
"shas": "6a25d985a312ed1935f33359735bfc3fad514a37..0b75622a824ba8367f3f6dee95cfdccbfcc4eb8f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-grouped-import-declarations-teardown-test",
|
||||
@ -375,12 +456,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -402,5 +498,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "81ec082bb841b347028b400c179a10de3b443f10..35a378ca062939544c7a2fbd82b9ed4962db60d0"
|
||||
"shas": "0b75622a824ba8367f3f6dee95cfdccbfcc4eb8f..d4d30589c4945d693f9b6b7e327ddbcd45e70321"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "784a2032a8b3f1926b4874446b0dc9672ace15be..23198d8d7b54c07e1f3ebcb5cca172d62d75e934"
|
||||
"shas": "3dba2a559a0cc46933a2663e7b9cdcd4a92808d9..24b5a7da7f83d445e406076f4e5cd0eb29b81187"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-grouped-var-declarations-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'zero' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'one' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'one' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -99,7 +114,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "23198d8d7b54c07e1f3ebcb5cca172d62d75e934..1fdf3278a33b044ce8f71f7c081767f244b6ac04"
|
||||
"shas": "24b5a7da7f83d445e406076f4e5cd0eb29b81187..47a9982c7ce46ecab0a4eea473b1e0e63686a8fd"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-grouped-var-declarations-replacement-test",
|
||||
@ -184,7 +199,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "1fdf3278a33b044ce8f71f7c081767f244b6ac04..b4aed6bf12bb1f171ed58e6b082645e4cd0aeae9"
|
||||
"shas": "47a9982c7ce46ecab0a4eea473b1e0e63686a8fd..e12f033c84f4d6f59ae1e0542ed68873634f85ff"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-grouped-var-declarations-delete-replacement-test",
|
||||
@ -269,7 +284,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "b4aed6bf12bb1f171ed58e6b082645e4cd0aeae9..9a29fa861e06cb7e02d16e7ab8fcd66de3c2f825"
|
||||
"shas": "e12f033c84f4d6f59ae1e0542ed68873634f85ff..0df3b93f76d7331db5126eb444c15d5ef2829485"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-grouped-var-declarations-delete-insert-test",
|
||||
@ -289,7 +304,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'zero' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -304,7 +319,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'one' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'one' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -330,7 +345,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9a29fa861e06cb7e02d16e7ab8fcd66de3c2f825..ace9280be87d31336c3425f6e703c009840e7cfc"
|
||||
"shas": "0df3b93f76d7331db5126eb444c15d5ef2829485..c681a4b6c5b308af84285b1b48b80d02adb0dba3"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-grouped-var-declarations-teardown-test",
|
||||
@ -345,12 +360,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -372,5 +402,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ace9280be87d31336c3425f6e703c009840e7cfc..f5fe5786c0b546d3a5a224d7b5875f31f57db459"
|
||||
"shas": "c681a4b6c5b308af84285b1b48b80d02adb0dba3..08c2e3dcd4ce51ddc9fd673ef182af5f0748761d"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "67b21ca4a0eade527376ad1395eb7fd5fc5bea97..44348782059614a329e455e4c93a15380953b35d"
|
||||
"shas": "3f2a09bd95dfbff3712c14095a53c1f0a3855648..003b74b612db2ce7c8b3cafa4767e2d93c80857b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-if-statements-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a()' if statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'a()' if statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a := b(); c' if statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'a := b()' if statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a()' if statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'a()' if statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -121,7 +136,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "44348782059614a329e455e4c93a15380953b35d..15dfc6156abddf36067e347cc9960195349a924a"
|
||||
"shas": "003b74b612db2ce7c8b3cafa4767e2d93c80857b..90a41d97fa0420b82f8d8d7b550dd92171663b0f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-if-statements-replacement-test",
|
||||
@ -180,7 +195,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a' identifier with the 'y' identifier in the y var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'a' identifier with the 'y' identifier in the 'y := b()' if statement of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -240,7 +255,7 @@
|
||||
" c()"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "15dfc6156abddf36067e347cc9960195349a924a..63f6cb996de5cab0b4c0b6c6d69d26ce44e595df"
|
||||
"shas": "90a41d97fa0420b82f8d8d7b550dd92171663b0f..5b8d17f1bd7bf95dece870548aa1a2dc603ae25c"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-if-statements-delete-replacement-test",
|
||||
@ -299,7 +314,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'y' identifier with the 'a' identifier in the a var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'y' identifier with the 'a' identifier in the 'a := b()' if statement of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -359,7 +374,7 @@
|
||||
" c()"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "63f6cb996de5cab0b4c0b6c6d69d26ce44e595df..1a40ce7a1e45f7ef87ccf0a8a59eaeffaa51a1a5"
|
||||
"shas": "5b8d17f1bd7bf95dece870548aa1a2dc603ae25c..2c0ac08501ad5b8bc5e1383946ac2adc645a1102"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-if-statements-delete-insert-test",
|
||||
@ -379,7 +394,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a()' if statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a()' if statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -394,7 +409,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a := b(); c' if statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a := b()' if statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -409,7 +424,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a()' if statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a()' if statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -442,7 +457,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "1a40ce7a1e45f7ef87ccf0a8a59eaeffaa51a1a5..d4ef05cad7067ddfd19a4b4fc0576226d9adaa5d"
|
||||
"shas": "2c0ac08501ad5b8bc5e1383946ac2adc645a1102..ca18125942a9a260c9187e56d003f1b21e71002f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-if-statements-teardown-test",
|
||||
@ -457,12 +472,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -484,5 +514,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d4ef05cad7067ddfd19a4b4fc0576226d9adaa5d..6ccea258bd2125cbbe34266069b39fc47fe5d4e3"
|
||||
"shas": "ca18125942a9a260c9187e56d003f1b21e71002f..e3c2411f013b063d1c440d3a295be6485170c63d"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "3a475c2e781c97178d1986bf754545dbb051440c..60f0ccdaef54bc0e05404d360648e0588d257a91"
|
||||
"shas": "fd41bb91afdd6087f0c3e6c54566857b7105df8c..5712b1395e13d1c0fa00cffacbf8bc0951053d35"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-imaginary-literals-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'a' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'b' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'b' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -99,7 +114,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "60f0ccdaef54bc0e05404d360648e0588d257a91..58218e7b9abee0cf80f6a9e0b2e2f2a98f94e492"
|
||||
"shas": "5712b1395e13d1c0fa00cffacbf8bc0951053d35..22932b78378effd2b941d482834bf0a72286edec"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-imaginary-literals-replacement-test",
|
||||
@ -184,7 +199,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "58218e7b9abee0cf80f6a9e0b2e2f2a98f94e492..704fd72c32fffccaecb8ff6ca11b809782f39ba0"
|
||||
"shas": "22932b78378effd2b941d482834bf0a72286edec..9f5d0bbee0d79018b1b0187ba73c28d0f9d72c78"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-imaginary-literals-delete-replacement-test",
|
||||
@ -269,7 +284,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "704fd72c32fffccaecb8ff6ca11b809782f39ba0..af8ba14e709eb94413834b2e03a1dd5508cff999"
|
||||
"shas": "9f5d0bbee0d79018b1b0187ba73c28d0f9d72c78..30a750a5c56e53a8f94fcc56d10cca85093b2286"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-imaginary-literals-delete-insert-test",
|
||||
@ -289,7 +304,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -304,7 +319,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'b' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'b' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -330,7 +345,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "af8ba14e709eb94413834b2e03a1dd5508cff999..3d14efd12e0c51ea5f90f6237364665c745de057"
|
||||
"shas": "30a750a5c56e53a8f94fcc56d10cca85093b2286..9b4c1d9f9789b88f196087dafbad93a21508c9c2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-imaginary-literals-teardown-test",
|
||||
@ -345,12 +360,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -372,5 +402,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "3d14efd12e0c51ea5f90f6237364665c745de057..29b7d780794e2ee8d37771310cebb2000b677aec"
|
||||
"shas": "9b4c1d9f9789b88f196087dafbad93a21508c9c2..d39cc6bcd81255864bc210bd0ab92a71c0a80cc2"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "7f8d4e43555f3b5d3f723b58c0fbf874612c614f..aa4d66200c9a9aa7faf6a95a5409a8ffd4adfdd3"
|
||||
"shas": "bb4ba3185a52b92f422411ad6cae97a82e2b2657..16dda00e283e0850677a63b7e489cf83d5c5a5b6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-increment-decrement-statements-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'i++' increment statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'i++' increment statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'j--' decrement statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'j--' decrement statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -97,7 +112,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "aa4d66200c9a9aa7faf6a95a5409a8ffd4adfdd3..7486326aeb5e953caf6a177f94fe81f873dd3f82"
|
||||
"shas": "16dda00e283e0850677a63b7e489cf83d5c5a5b6..741d8660e0bf62db6265e192fd6b90e50b9eef4f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-increment-decrement-statements-replacement-test",
|
||||
@ -129,7 +144,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'i++' increment statement with the 'foo++' increment statement in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'i++' increment statement with the 'foo++' increment statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -144,7 +159,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'x++' increment statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'x++' increment statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -159,7 +174,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'j--' decrement statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'j--' decrement statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -184,7 +199,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "7486326aeb5e953caf6a177f94fe81f873dd3f82..815af0d4d7514f7e49a17dfcfc7cc7d7e2037117"
|
||||
"shas": "741d8660e0bf62db6265e192fd6b90e50b9eef4f..a0c075e89018b1d3e99ed50b0462c9c6fe12e267"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-increment-decrement-statements-delete-replacement-test",
|
||||
@ -216,7 +231,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'foo++' increment statement with the 'i++' increment statement in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'foo++' increment statement with the 'i++' increment statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -231,7 +246,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'j--' decrement statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'j--' decrement statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -246,7 +261,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'x++' increment statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'x++' increment statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -271,7 +286,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "815af0d4d7514f7e49a17dfcfc7cc7d7e2037117..89228c00eab271cd2f80899a63562fc9393d59dc"
|
||||
"shas": "a0c075e89018b1d3e99ed50b0462c9c6fe12e267..251078b70b5dafb8b9a682ec094530dfb8c39572"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-increment-decrement-statements-delete-insert-test",
|
||||
@ -291,7 +306,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'i++' increment statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'i++' increment statement in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -306,7 +321,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'j--' decrement statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'j--' decrement statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -330,7 +345,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "89228c00eab271cd2f80899a63562fc9393d59dc..65de8108663b2ceeaa6c6e5d491ad1c4cb6dc8f6"
|
||||
"shas": "251078b70b5dafb8b9a682ec094530dfb8c39572..759e0718fcbd72afbcc54da11715a66d338f9696"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-increment-decrement-statements-teardown-test",
|
||||
@ -345,12 +360,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -372,5 +402,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "65de8108663b2ceeaa6c6e5d491ad1c4cb6dc8f6..96a2caf2b396eb1844dfd668cb913452ae09c4a6"
|
||||
"shas": "759e0718fcbd72afbcc54da11715a66d338f9696..e86ae4b80ecf2b01260ea4afc56327253ab59646"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "584515bfe655665166b3a9a5db100a4bd4ae398b..49ee4bf0f25a7fb1e2c42d0b6107bcbc4576e208"
|
||||
"shas": "0a55a88480be2cc766ee756b5b5f7bf45704376c..4f60b48123030197c6618ae645a4374972ea4c36"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-indexing-expressions-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a[1]' index expression in the main function of the 'main' module"
|
||||
"summary": "Added the 'a[1]' index expression in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -69,11 +84,11 @@
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
6
|
||||
3
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'b[b[:]]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Added the 'b' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c[1]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Added the 'c[1]' slice literal in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -99,41 +114,146 @@
|
||||
],
|
||||
"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 the 'd[1:2]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Added '3' in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
8,
|
||||
9,
|
||||
2
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
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 the 'e[2:3]' slice literal in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
9,
|
||||
2
|
||||
],
|
||||
"end": [
|
||||
9,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f[1:2:3]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Added '3' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -161,7 +281,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "49ee4bf0f25a7fb1e2c42d0b6107bcbc4576e208..f5c5e4b19f663fcce75b43c825cd80b015e8022e"
|
||||
"shas": "4f60b48123030197c6618ae645a4374972ea4c36..cd7d3053acc66aa2f4d9f3971970b1d3291a7a59"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-indexing-expressions-replacement-test",
|
||||
@ -181,7 +301,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'z[2]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Added the 'z[2]' slice literal in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -196,7 +316,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'y[1]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Added the 'y[1]' slice literal in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -211,7 +331,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'x[1]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Added the 'x[1]' slice literal in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -226,7 +346,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a[1]' index expression in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a[1]' index expression in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -237,11 +357,11 @@
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
6
|
||||
3
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'b[b[:]]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'b' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -256,7 +376,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c[1]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'c[1]' slice literal in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -285,7 +405,7 @@
|
||||
" f[1:2:3]"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f5c5e4b19f663fcce75b43c825cd80b015e8022e..a2027cb09c6afa951fbfaafc7f62680397c78e6d"
|
||||
"shas": "cd7d3053acc66aa2f4d9f3971970b1d3291a7a59..c84e151f812ae561b1912638e0585fe32d854242"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-indexing-expressions-delete-replacement-test",
|
||||
@ -305,7 +425,22 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a[1]' index expression in the main function of the 'main' module"
|
||||
"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": {
|
||||
@ -322,59 +457,59 @@
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
5,
|
||||
6,
|
||||
2
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
6,
|
||||
3
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'z' identifier with the 'b' identifier in the b[b[:]] slice literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
4,
|
||||
4
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
5
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted '2' in the b[b[:]] slice literal of the 'main' function"
|
||||
"summary": "Replaced the 'z' identifier with the 'c' identifier in the c[1] slice literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
5,
|
||||
2
|
||||
4,
|
||||
4
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
3
|
||||
4,
|
||||
5
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
6,
|
||||
2
|
||||
4
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
3
|
||||
5
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'y' identifier with the 'c' identifier in the c[1] slice literal of the 'main' function"
|
||||
"summary": "Replaced '2' with '1' in the c[1] slice literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
2
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
7
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'y[1]' slice literal in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -389,7 +524,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'x[1]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'x[1]' slice literal in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -418,7 +553,7 @@
|
||||
" f[1:2:3]"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "a2027cb09c6afa951fbfaafc7f62680397c78e6d..869a3b6f40ec9b9a432c4e95f94741fb91718cd9"
|
||||
"shas": "c84e151f812ae561b1912638e0585fe32d854242..08a032f27c171ad3d26321259c510b30cf268471"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-indexing-expressions-delete-insert-test",
|
||||
@ -438,7 +573,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a[1]' index expression in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a[1]' index expression in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -449,11 +584,11 @@
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
6
|
||||
3
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'b[b[:]]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'b' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -468,7 +603,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c[1]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'c[1]' slice literal in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -479,41 +614,146 @@
|
||||
],
|
||||
"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 the 'd[1:2]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Deleted '3' in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
8,
|
||||
9,
|
||||
2
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
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 the 'e[2:3]' slice literal in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
9,
|
||||
2
|
||||
],
|
||||
"end": [
|
||||
9,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f[1:2:3]' slice literal in the main function of the 'main' module"
|
||||
"summary": "Deleted '3' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -541,7 +781,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "869a3b6f40ec9b9a432c4e95f94741fb91718cd9..6d143a53bdfcbd5212f7ff9403616263a083a37c"
|
||||
"shas": "08a032f27c171ad3d26321259c510b30cf268471..6f372cae9a7ae4a00c120150faa8316627b50f7d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-indexing-expressions-teardown-test",
|
||||
@ -556,12 +796,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -583,5 +838,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "6d143a53bdfcbd5212f7ff9403616263a083a37c..e4c6a9b9a1f1cbf3dd7a4ce717333fb847b7fbac"
|
||||
"shas": "6f372cae9a7ae4a00c120150faa8316627b50f7d..39c039e08c3764d56d26a74bbc7bb32704cc398c"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,12 +53,13 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "35a378ca062939544c7a2fbd82b9ed4962db60d0..e7432deda0730afa92fc14d0040e4e506261f045"
|
||||
"shas": "d4d30589c4945d693f9b6b7e327ddbcd45e70321..35712f9936e6e990151f65bd8282f587c311283f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-int-literals-insert-test",
|
||||
"expectedResult": {
|
||||
"changes": {
|
||||
"changes": {},
|
||||
"errors": {
|
||||
"int-literals.go": [
|
||||
{
|
||||
"span": {
|
||||
@ -52,32 +68,16 @@
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
9
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' var assignment in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
12
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
20
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the '2' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added 'a = 1, b = 2, c = 3' at line 5, column 1 - line 5, column 20 in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"int-literals.go"
|
||||
@ -98,7 +98,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e7432deda0730afa92fc14d0040e4e506261f045..183d0ecb655c1c289e12f7bfdb573e09814e2b8b"
|
||||
"shas": "35712f9936e6e990151f65bd8282f587c311283f..c4fbea18faece138b1ca16fac7c135aacab7e026"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-int-literals-replacement-test",
|
||||
@ -157,7 +157,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '2' with '5' in the 5 var assignment of the 'main' function"
|
||||
"summary": "Replaced '2' with '5' in an assignment to 5, c of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -184,7 +184,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '3' with '6' in the 5 var assignment of the 'main' function"
|
||||
"summary": "Replaced '3' with '6' in an assignment to 5, c of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -208,7 +208,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "183d0ecb655c1c289e12f7bfdb573e09814e2b8b..6e4687bb2cf85d85865619b7e5d05b14c825074a"
|
||||
"shas": "c4fbea18faece138b1ca16fac7c135aacab7e026..5a4da82a60dae3adac65138408a1c9c13c9341ed"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-int-literals-delete-replacement-test",
|
||||
@ -267,7 +267,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '5' with '2' in the 2 var assignment of the 'main' function"
|
||||
"summary": "Replaced '5' with '2' in an assignment to 2, c of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -294,7 +294,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '6' with '3' in the 2 var assignment of the 'main' function"
|
||||
"summary": "Replaced '6' with '3' in an assignment to 2, c of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -318,12 +318,13 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "6e4687bb2cf85d85865619b7e5d05b14c825074a..0f0762f96d2e9392ffd3748800c1e1a16e83e0a9"
|
||||
"shas": "5a4da82a60dae3adac65138408a1c9c13c9341ed..7afa4043deb1d962815d430c79d37af59f929d69"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-int-literals-delete-insert-test",
|
||||
"expectedResult": {
|
||||
"changes": {
|
||||
"changes": {},
|
||||
"errors": {
|
||||
"int-literals.go": [
|
||||
{
|
||||
"span": {
|
||||
@ -332,32 +333,16 @@
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
9
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' var assignment in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
12
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
20
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the '2' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted 'a = 1, b = 2, c = 3' at line 5, column 1 - line 5, column 20 in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"int-literals.go"
|
||||
@ -378,7 +363,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0f0762f96d2e9392ffd3748800c1e1a16e83e0a9..94ad672147c576dce128e86e59faedfbd95926e9"
|
||||
"shas": "7afa4043deb1d962815d430c79d37af59f929d69..9db47a4be9cce6edd5a54ffc93d311fb8ec7bd84"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-int-literals-teardown-test",
|
||||
@ -393,12 +378,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -420,5 +420,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "94ad672147c576dce128e86e59faedfbd95926e9..d1b8d8617e07c628530185580966f2422d6ac7c7"
|
||||
"shas": "9db47a4be9cce6edd5a54ffc93d311fb8ec7bd84..65295513fb69f053f466c62e25b12d37872a7543"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "8b9132202584b9cb77727d35fc5933c26eca6b3c..05f174ca0361352203a7d61ff484d16b59f7a35a"
|
||||
"shas": "d27aeb5e58d624d463c84b7a506673945bee82fd..6457603d8983b1317a9b928ea207eb6edd64f594"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-interface-types-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'i1' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'i1' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'i2' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'i2' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'i3' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'i3' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -117,7 +132,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "05f174ca0361352203a7d61ff484d16b59f7a35a..a33a0d6ca8ca62b9272edab5ea3d7c95f0abecd3"
|
||||
"shas": "6457603d8983b1317a9b928ea207eb6edd64f594..56cfa1522cfdcdac970e3fafdd705c56945226cf"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-interface-types-replacement-test",
|
||||
@ -232,7 +247,7 @@
|
||||
" SomeMethod(s string) error"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "a33a0d6ca8ca62b9272edab5ea3d7c95f0abecd3..8e1af67f8e4799d33dda9790076d3ebd0f992ae9"
|
||||
"shas": "56cfa1522cfdcdac970e3fafdd705c56945226cf..a0b32c300b7848b5de8c996337254fba410a49ff"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-interface-types-delete-replacement-test",
|
||||
@ -347,7 +362,7 @@
|
||||
" SomeMethod(s string) error"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "8e1af67f8e4799d33dda9790076d3ebd0f992ae9..d38eef21ef5c858651ded42d3546f79843ba436e"
|
||||
"shas": "a0b32c300b7848b5de8c996337254fba410a49ff..e7baf12e7fdd8b0ae0849f70632a5b7730771d40"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-interface-types-delete-insert-test",
|
||||
@ -367,7 +382,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'i1' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'i1' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -382,7 +397,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'i2' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'i2' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -397,7 +412,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'i3' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'i3' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -426,7 +441,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d38eef21ef5c858651ded42d3546f79843ba436e..c3779f6bce6cf4a13e0e123647ff20ecb94a941d"
|
||||
"shas": "e7baf12e7fdd8b0ae0849f70632a5b7730771d40..b3a1c76dfcde365828f3aca43ca12cc93ba6fed7"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-interface-types-teardown-test",
|
||||
@ -441,12 +456,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -468,5 +498,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c3779f6bce6cf4a13e0e123647ff20ecb94a941d..537b856e670ab8ae8aa4d420943369b4ba180c16"
|
||||
"shas": "b3a1c76dfcde365828f3aca43ca12cc93ba6fed7..749bfb72d276ee57a9c014001d350bb1f642f2a9"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f9136e3be46a93bc0e0b6dc467c7b9ced1b97894..d7212f336c9c60b14c59e8e94e1ecd4aede3cc09"
|
||||
"shas": "43ac69d0304e8f5a93bb985e3f4e05d9dff5d2b6..d7bd23e7679d4f3143995c6304e123585877638e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-label-statements-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'insert_label' identifier in the main function of the 'main' module"
|
||||
"summary": "Added the 'insert_label' identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -83,7 +98,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d7212f336c9c60b14c59e8e94e1ecd4aede3cc09..0f74fcb7d75eeebfc2e1a28388fa94535683467b"
|
||||
"shas": "d7bd23e7679d4f3143995c6304e123585877638e..8114f172b2e02c45b8fd463e2091351fe761e226"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-label-statements-replacement-test",
|
||||
@ -115,7 +130,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -139,7 +154,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0f74fcb7d75eeebfc2e1a28388fa94535683467b..a34375d5b52b45a8d48f0540b89d62710a4c6be1"
|
||||
"shas": "8114f172b2e02c45b8fd463e2091351fe761e226..e7b09a82b9ebb4ceefce68cfefe69428b5f0a87c"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-label-statements-delete-replacement-test",
|
||||
@ -171,7 +186,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -195,7 +210,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "a34375d5b52b45a8d48f0540b89d62710a4c6be1..60dc5a9a3a91da069f329c5ae369d80c47e9cc42"
|
||||
"shas": "e7b09a82b9ebb4ceefce68cfefe69428b5f0a87c..876c876dba02766deea4ec644d0006c41d975f2f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-label-statements-delete-insert-test",
|
||||
@ -215,7 +230,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'insert_label' identifier in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'insert_label' identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -240,7 +255,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "60dc5a9a3a91da069f329c5ae369d80c47e9cc42..5a07dfd5ebb6f9aac2fc62a67df29e9f002ae2fb"
|
||||
"shas": "876c876dba02766deea4ec644d0006c41d975f2f..3616fca3cc1bfdda36ba9e5a381194c409872b33"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-label-statements-teardown-test",
|
||||
@ -255,12 +270,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -282,5 +312,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "5a07dfd5ebb6f9aac2fc62a67df29e9f002ae2fb..e8a0a2912cf6fee72c6e0cc0d96c5babf1cd4df1"
|
||||
"shas": "3616fca3cc1bfdda36ba9e5a381194c409872b33..030876029c6aa56a60b06740ec65bec788ad8715"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "64841687a4cbcda7d1eda64e527648f5cef1bf73..b2485087ecf70a7b996361b966bdfb6373510813"
|
||||
"shas": "b8e41392436d04ec37de7c7358f5c6f016fc7726..9fc95fb47a671ca191c3f9160fa69e82af7dcaaa"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-map-literals-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 's' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -84,7 +99,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "b2485087ecf70a7b996361b966bdfb6373510813..dd38ad1ed6fda4e26d6065861e629ba29b8dd33e"
|
||||
"shas": "9fc95fb47a671ca191c3f9160fa69e82af7dcaaa..473f91f7465f2fc52a9fd4956332a44a981fe4cb"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-map-literals-replacement-test",
|
||||
@ -116,7 +131,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'string' identifier with the 'int' identifier in the map[string]int dictionary of the 'main' function"
|
||||
"summary": "Replaced the 'string' identifier with the 'int' identifier in the map[string]int composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -131,7 +146,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the '\"foo\": \"bar\"' pair in the map[string]int dictionary of the 'main' function"
|
||||
"summary": "Added the '\"foo\": \"bar\"' pair in the map[string]int composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -173,7 +188,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the '\"bye\": \"goodbye\"' pair in the map[string]int dictionary of the 'main' function"
|
||||
"summary": "Deleted the '\"bye\": \"goodbye\"' pair in the map[string]int composite_literal of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -201,7 +216,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "dd38ad1ed6fda4e26d6065861e629ba29b8dd33e..c4484b12af87ff7331e23808d5474b9f4534bb71"
|
||||
"shas": "473f91f7465f2fc52a9fd4956332a44a981fe4cb..0ae10bfe6756cfc5348f7d735b0e9fd248e5497f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-map-literals-delete-replacement-test",
|
||||
@ -233,7 +248,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'int' identifier with the 'string' identifier in the map[string]string dictionary of the 'main' function"
|
||||
"summary": "Replaced the 'int' identifier with the 'string' identifier in the map[string]string composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -369,7 +384,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c4484b12af87ff7331e23808d5474b9f4534bb71..fa3a274956f58eb7630b0a1d75d0ee0566068672"
|
||||
"shas": "0ae10bfe6756cfc5348f7d735b0e9fd248e5497f..dba7db8f0794b59b17c9a97ba84030fda238568d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-map-literals-delete-insert-test",
|
||||
@ -389,7 +404,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -415,7 +430,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "fa3a274956f58eb7630b0a1d75d0ee0566068672..6f805cd7db38b8dd4bce3f304e7e11953170db5d"
|
||||
"shas": "dba7db8f0794b59b17c9a97ba84030fda238568d..d758ae59648d8fc240a1c58cc21f32703979e3cb"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-map-literals-teardown-test",
|
||||
@ -430,12 +445,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -457,5 +487,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "6f805cd7db38b8dd4bce3f304e7e11953170db5d..c7c9b52a2e3477a5c5970b67af95fa2a603c8359"
|
||||
"shas": "d758ae59648d8fc240a1c58cc21f32703979e3cb..0c8ae16482a04b19b4a23f3af01e4d9f314b712e"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "537b856e670ab8ae8aa4d420943369b4ba180c16..9ae70588c8e1d6409ce49d3c7e81096bfc7a1d40"
|
||||
"shas": "749bfb72d276ee57a9c014001d350bb1f642f2a9..4b873ee4062abb282e9203b75a1571d5a96f2ab6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-map-types-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'm1' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'm1' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -81,7 +96,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9ae70588c8e1d6409ce49d3c7e81096bfc7a1d40..44568c991c3070bcb1d05df16e1decb8ef8405f8"
|
||||
"shas": "4b873ee4062abb282e9203b75a1571d5a96f2ab6..b8f771d391d6de1c7d0c65c2f97c6086b2651fea"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-map-types-replacement-test",
|
||||
@ -136,7 +151,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "44568c991c3070bcb1d05df16e1decb8ef8405f8..b67e615d6f6edf3c3f181556c6a1bf9d77b80e88"
|
||||
"shas": "b8f771d391d6de1c7d0c65c2f97c6086b2651fea..48ae3c021f6ff0f1870fc91f55ced9d0c767084f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-map-types-delete-replacement-test",
|
||||
@ -191,7 +206,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "b67e615d6f6edf3c3f181556c6a1bf9d77b80e88..8adfcb96271210db7e6ff4d4f8e9614e18a7ea2d"
|
||||
"shas": "48ae3c021f6ff0f1870fc91f55ced9d0c767084f..941e1684bf0345854b50e36d415ca9ddc1bacd79"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-map-types-delete-insert-test",
|
||||
@ -211,7 +226,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'm1' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'm1' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -234,7 +249,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "8adfcb96271210db7e6ff4d4f8e9614e18a7ea2d..d71ece556522fb22d8dce8a04232dd7b084db88a"
|
||||
"shas": "941e1684bf0345854b50e36d415ca9ddc1bacd79..2bdb5f2aec9d251005b91d9e6fa47e9d0ab273ad"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-map-types-teardown-test",
|
||||
@ -249,12 +264,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -276,5 +306,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d71ece556522fb22d8dce8a04232dd7b084db88a..2f35db8e0302874790f1e855b1604464a758129c"
|
||||
"shas": "2bdb5f2aec9d251005b91d9e6fa47e9d0ab273ad..4d24e891d2eff92e45db37ab2270eef8294e9145"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
3,
|
||||
15
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ab4793c039457a689359c3fb317a49df66dfcae9..0aab85d381c6d815597cb70fce68680899d8c22b"
|
||||
"shas": "a8adfaba3e02d1f9416a61ff929abbed0bc123d4..ae946e153675d03124e44ed3b708c539b9a137d7"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-method-declarations-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'Equals(…, …)' method in the main module"
|
||||
"summary": "Added the 'Equals(…, …)' method"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -80,7 +95,7 @@
|
||||
"+func (self Person) Equals(other Person) bool {}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0aab85d381c6d815597cb70fce68680899d8c22b..b60a3cbefce2d299d301563d2944ef8834481c42"
|
||||
"shas": "ae946e153675d03124e44ed3b708c539b9a137d7..f425e8a6f57e66d892e1f41ef0dbb8eead4b2df0"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-method-declarations-replacement-test",
|
||||
@ -112,7 +127,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'Person' identifier with the 'Num' identifier in the 'Equals(…, …)' method of the 'main' module"
|
||||
"summary": "Replaced the 'Person' identifier with the 'Num' identifier in the 'Equals(…, …)' method"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -139,7 +154,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'Person' identifier with the 'Num' identifier in the 'Equals(…, …)' method of the 'main' module"
|
||||
"summary": "Replaced the 'Person' identifier with the 'Num' identifier in the 'Equals(…, …)' method"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -161,7 +176,7 @@
|
||||
"+func (self Num) Equals(other Num) bool {}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "b60a3cbefce2d299d301563d2944ef8834481c42..0936760e2daa8cf4c05b39f00e92c0ff5bb5d25b"
|
||||
"shas": "f425e8a6f57e66d892e1f41ef0dbb8eead4b2df0..8a314273a9e0b9e328c88a98232a005930d054e9"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-method-declarations-delete-replacement-test",
|
||||
@ -193,7 +208,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'Num' identifier with the 'Person' identifier in the 'Equals(…, …)' method of the 'main' module"
|
||||
"summary": "Replaced the 'Num' identifier with the 'Person' identifier in the 'Equals(…, …)' method"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -220,7 +235,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'Num' identifier with the 'Person' identifier in the 'Equals(…, …)' method of the 'main' module"
|
||||
"summary": "Replaced the 'Num' identifier with the 'Person' identifier in the 'Equals(…, …)' method"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -242,7 +257,7 @@
|
||||
"+func (self Person) Equals(other Person) bool {}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0936760e2daa8cf4c05b39f00e92c0ff5bb5d25b..fc3aa3ec6c42297ba67ddcdf38a3e365ac9a3696"
|
||||
"shas": "8a314273a9e0b9e328c88a98232a005930d054e9..65cf1134e9a92c0d5a1b4d6a160fcaf411f99806"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-method-declarations-delete-insert-test",
|
||||
@ -262,7 +277,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'Equals(…, …)' method in the main module"
|
||||
"summary": "Deleted the 'Equals(…, …)' method"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -284,7 +299,7 @@
|
||||
"+"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "fc3aa3ec6c42297ba67ddcdf38a3e365ac9a3696..9c10ec1dcb8029b88ac1f51ee4bd6f0de220e1c2"
|
||||
"shas": "65cf1134e9a92c0d5a1b4d6a160fcaf411f99806..516ad90702a68100aa6a68fc772bc05ef9d21161"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-method-declarations-teardown-test",
|
||||
@ -299,12 +314,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
3,
|
||||
15
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -326,5 +356,5 @@
|
||||
"-"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9c10ec1dcb8029b88ac1f51ee4bd6f0de220e1c2..96c8359530072c03347732bdcc542a967aa6d2b2"
|
||||
"shas": "516ad90702a68100aa6a68fc772bc05ef9d21161..407e4c1852d95bd8c9a3494899d65731e2bbb43f"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "96429faca853f0301df4b0d4d43ce26e3011129c..327d46912a0379199ca874a02de94cbd4822e017"
|
||||
"shas": "f5a9b8a54a3841db93e420bf8eff96b4d2d6858a..94d93d2117a8e57a238a502919ff833d7cf671b9"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-modifying-struct-fields-insert-test",
|
||||
@ -52,13 +67,28 @@
|
||||
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 'ctx' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the '&uploadContext{\n Remote: remote\n}' operator in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -83,7 +113,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "327d46912a0379199ca874a02de94cbd4822e017..edbdc72526206b55a5a68574067653f9a012139e"
|
||||
"shas": "94d93d2117a8e57a238a502919ff833d7cf671b9..a9aa97bd6ac93d93d8e62ca2a59b9ec861b684df"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-modifying-struct-fields-replacement-test",
|
||||
@ -115,7 +145,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'Remote: remote' pair with the 'trackedLocksMu: new(sync.Mutex)' pair in the ctx var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'Remote: remote' pair with the 'trackedLocksMu: new(sync.Mutex)' pair in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -139,7 +169,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "edbdc72526206b55a5a68574067653f9a012139e..d297555f9562fdc2f07263c0d3f4448a2d993af6"
|
||||
"shas": "a9aa97bd6ac93d93d8e62ca2a59b9ec861b684df..d0a359246dac8c80adcb1b4e7bac351462363d18"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-modifying-struct-fields-delete-replacement-test",
|
||||
@ -171,7 +201,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'trackedLocksMu: new(sync.Mutex)' pair with the 'Remote: remote' pair in the ctx var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'trackedLocksMu: new(sync.Mutex)' pair with the 'Remote: remote' pair in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -195,7 +225,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d297555f9562fdc2f07263c0d3f4448a2d993af6..0424e6283242743718ac65313bf399f22e87003f"
|
||||
"shas": "d0a359246dac8c80adcb1b4e7bac351462363d18..261a10edc770e3f40cd33d61dc0d61d0510527a5"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-modifying-struct-fields-delete-insert-test",
|
||||
@ -209,13 +239,28 @@
|
||||
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 'ctx' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the '&uploadContext{\n Remote: remote\n}' operator in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -240,7 +285,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0424e6283242743718ac65313bf399f22e87003f..1e8d55f993118e8493fd77e4029b4126ca55ea76"
|
||||
"shas": "261a10edc770e3f40cd33d61dc0d61d0510527a5..729241bd7988d5e569c4a3384c678328236ba019"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-modifying-struct-fields-teardown-test",
|
||||
@ -255,12 +300,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -282,5 +342,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "1e8d55f993118e8493fd77e4029b4126ca55ea76..cabeb4be978509ff8b604c14a85f64a96314cd7a"
|
||||
"shas": "729241bd7988d5e569c4a3384c678328236ba019..b704517caf7ad227154e0582b74255cd4065e091"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -39,7 +54,7 @@
|
||||
"+"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "df3298de1cff4cc80875946fc6abeec7bf257f39..932c7e3ec9b93568845977a43626bb4a0fd3b90d"
|
||||
"shas": "57bf5ffc56480fbb108aa9d683b4dfd5324acbbf..86bd926b2066a8c508a3fbaea3aea1c44975dbaa"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-parameter-declarations-with-types-insert-test",
|
||||
@ -59,7 +74,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'foo' function in the main module"
|
||||
"summary": "Added the 'foo' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -82,7 +97,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "932c7e3ec9b93568845977a43626bb4a0fd3b90d..a1a774045a4b7922d5e0e70622f298763f8fe5d7"
|
||||
"shas": "86bd926b2066a8c508a3fbaea3aea1c44975dbaa..d06c9a9989b8b0b59b2ca2cdc1eae70936526a0b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-parameter-declarations-with-types-replacement-test",
|
||||
@ -114,7 +129,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'int' identifier with the 'string' identifier in the foo function of the 'main' module"
|
||||
"summary": "Replaced the 'int' identifier with the 'string' identifier in the foo function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -141,7 +156,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a' identifier with the 'x' identifier in the foo function of the 'main' module"
|
||||
"summary": "Replaced the 'a' identifier with the 'x' identifier in the foo function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -168,7 +183,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'string' identifier with the 'uint64' identifier in the foo function of the 'main' module"
|
||||
"summary": "Replaced the 'string' identifier with the 'uint64' identifier in the foo function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -195,7 +210,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'b' identifier with the 'y' identifier in the foo function of the 'main' module"
|
||||
"summary": "Replaced the 'b' identifier with the 'y' identifier in the foo function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -218,7 +233,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "a1a774045a4b7922d5e0e70622f298763f8fe5d7..54ff8e688514bd1a0ee7e588fffff1be0ce47645"
|
||||
"shas": "d06c9a9989b8b0b59b2ca2cdc1eae70936526a0b..7f7499916d8951812d1af4dc3f9edea6512dd4ae"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-parameter-declarations-with-types-delete-replacement-test",
|
||||
@ -238,7 +253,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a int' parameter declaration in the foo function of the 'main' module"
|
||||
"summary": "Added the 'a int' parameter declaration in the foo function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -265,7 +280,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'x' identifier with the 'b' identifier in the foo function of the 'main' module"
|
||||
"summary": "Replaced the 'x' identifier with the 'b' identifier in the foo function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -280,7 +295,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'y uint64' parameter declaration in the foo function of the 'main' module"
|
||||
"summary": "Deleted the 'y uint64' parameter declaration in the foo function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -303,7 +318,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "54ff8e688514bd1a0ee7e588fffff1be0ce47645..ca8a328836cd4073670d5fbb553d60a2d5da5149"
|
||||
"shas": "7f7499916d8951812d1af4dc3f9edea6512dd4ae..84be95e6cce29e23fe13ac460c34d9d3639945c1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-parameter-declarations-with-types-delete-insert-test",
|
||||
@ -323,7 +338,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'foo' function in the main module"
|
||||
"summary": "Deleted the 'foo' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -346,7 +361,7 @@
|
||||
"+"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ca8a328836cd4073670d5fbb553d60a2d5da5149..17afa32d5d35d9b2169715bf8e3cf7b6c8dbfd74"
|
||||
"shas": "84be95e6cce29e23fe13ac460c34d9d3639945c1..a396a786548a4d67126f0631959c0c1b53b66b84"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-parameter-declarations-with-types-teardown-test",
|
||||
@ -361,12 +376,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -389,5 +419,5 @@
|
||||
"-"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "17afa32d5d35d9b2169715bf8e3cf7b6c8dbfd74..ef1ac04aeb5238b9f803a01487634a5dbb904dd2"
|
||||
"shas": "a396a786548a4d67126f0631959c0c1b53b66b84..840ffcc3fb49c5769944cce7b4fc8f444c2b1aed"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "2f35db8e0302874790f1e855b1604464a758129c..e0303fed6749f451d05079830f899ce0f494f614"
|
||||
"shas": "4d24e891d2eff92e45db37ab2270eef8294e9145..116be4b3120f1f63486563e681291568543040a1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-pointer-types-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'p1' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'p1' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'p2' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'p2' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -99,7 +114,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e0303fed6749f451d05079830f899ce0f494f614..a2a702f361a75afe7a57eca5f42338b32f802f8d"
|
||||
"shas": "116be4b3120f1f63486563e681291568543040a1..1d02b1285be95d48289fc2211acb0fa125211c7f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-pointer-types-replacement-test",
|
||||
@ -184,7 +199,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "a2a702f361a75afe7a57eca5f42338b32f802f8d..c29c8cd9b06066a9f9b95f6d90abf0d388121621"
|
||||
"shas": "1d02b1285be95d48289fc2211acb0fa125211c7f..770917a4a293b42b5174083c47c9ff1fe396d74a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-pointer-types-delete-replacement-test",
|
||||
@ -269,7 +284,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c29c8cd9b06066a9f9b95f6d90abf0d388121621..dc43d6e290768816185a12d2bfc43db015eb8960"
|
||||
"shas": "770917a4a293b42b5174083c47c9ff1fe396d74a..44240e8fb91d10af8d97d7680ae5e314f1b9488b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-pointer-types-delete-insert-test",
|
||||
@ -289,7 +304,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'p1' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'p1' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -304,7 +319,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'p2' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'p2' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -330,7 +345,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "dc43d6e290768816185a12d2bfc43db015eb8960..1c982494af2b508fae567a6c441a7a15c54d4a24"
|
||||
"shas": "44240e8fb91d10af8d97d7680ae5e314f1b9488b..5d1dc64c31a4ecafee88706bb1cdda5eb1656f76"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-pointer-types-teardown-test",
|
||||
@ -345,12 +360,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -372,5 +402,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "1c982494af2b508fae567a6c441a7a15c54d4a24..0ba70ac16df68cc3eb0b6318c3b784d701f4b216"
|
||||
"shas": "5d1dc64c31a4ecafee88706bb1cdda5eb1656f76..8ae798e3c9773e3d5b6af35228d06445dd50426f"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "96a2caf2b396eb1844dfd668cb913452ae09c4a6..4aef9a3bb124cee7c7246a2692ef219fdb688a75"
|
||||
"shas": "e86ae4b80ecf2b01260ea4afc56327253ab59646..0b24fa2e9250263fe1f145381ac2c399f2bc23a3"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-qualified-types-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'a' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -81,7 +96,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "4aef9a3bb124cee7c7246a2692ef219fdb688a75..0f7f533345885a7f2cbe3e6215ff7a30da263beb"
|
||||
"shas": "0b24fa2e9250263fe1f145381ac2c399f2bc23a3..126af8d1df2c5faeb2893ac84505890ebe324198"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-qualified-types-replacement-test",
|
||||
@ -163,7 +178,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0f7f533345885a7f2cbe3e6215ff7a30da263beb..aa7d555ba3072f33619a27337bbb9507ad6f70ca"
|
||||
"shas": "126af8d1df2c5faeb2893ac84505890ebe324198..b27f53d7ebab5cff17b7faca0c11a5af4393a993"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-qualified-types-delete-replacement-test",
|
||||
@ -245,7 +260,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "aa7d555ba3072f33619a27337bbb9507ad6f70ca..e1cbca9a58ecb01bc8bda3e35530cc3d579e90c4"
|
||||
"shas": "b27f53d7ebab5cff17b7faca0c11a5af4393a993..f349dcabe71c3355438e8c08830ed229a427dbce"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-qualified-types-delete-insert-test",
|
||||
@ -265,7 +280,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -288,7 +303,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e1cbca9a58ecb01bc8bda3e35530cc3d579e90c4..6abb1901a0a0ffc573d2e8f2fc6d61b22921eb75"
|
||||
"shas": "f349dcabe71c3355438e8c08830ed229a427dbce..138ffc1319221b4f305f24212159aea75438ec8f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-qualified-types-teardown-test",
|
||||
@ -303,12 +318,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -330,5 +360,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "6abb1901a0a0ffc573d2e8f2fc6d61b22921eb75..95b89b9b110156a8ff35bda066874de1c055bb2c"
|
||||
"shas": "138ffc1319221b4f305f24212159aea75438ec8f..26a0f67120f1cf6fc8e13694d29195177fe1040e"
|
||||
}]
|
||||
|
@ -11,8 +11,8 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
3,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
@ -35,7 +35,7 @@
|
||||
"+"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0b52228e533b01beb1e33054e72003307726533c..f03dd1370b43b8725f7d9827112fd522bc66b6f3"
|
||||
"shas": "663f0278d8c41aca54ae0d1849efc76213f9ba1f..1e54211c4612f5a3f6fddae7d3c3eae18327a9cd"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-rune-literals-insert-test",
|
||||
@ -55,7 +55,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' var assignment in the main module"
|
||||
"summary": "Added the 'a' var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -70,7 +70,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'b' var assignment in the main module"
|
||||
"summary": "Added the 'b' var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -85,7 +85,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c' var assignment in the main module"
|
||||
"summary": "Added the 'c' var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -100,7 +100,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'd' var assignment in the main module"
|
||||
"summary": "Added the 'd' var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -115,8 +115,12 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'e' var assignment in the main module"
|
||||
},
|
||||
"summary": "Added the 'e' var assignment"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {
|
||||
"rune-literals.go": [
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
@ -124,62 +128,16 @@
|
||||
8,
|
||||
3
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
4
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f' identifier in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
8,
|
||||
7
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
9
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the ''⌘' error in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
8,
|
||||
9
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'jjjj' identifier in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
8,
|
||||
13
|
||||
],
|
||||
"end": [
|
||||
9,
|
||||
1
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the ''\n' error in the main module"
|
||||
"summary": "Added 'f = '⌘jjjj'\n' at line 8, column 3 - line 9, column 1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"rune-literals.go"
|
||||
@ -202,7 +160,7 @@
|
||||
"+)"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f03dd1370b43b8725f7d9827112fd522bc66b6f3..e6e1d68cbaa666c2681a25a27113902d8f1ee84c"
|
||||
"shas": "1e54211c4612f5a3f6fddae7d3c3eae18327a9cd..7946dc95b2a2eaa4a44da409ed54a82a54ed188a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-rune-literals-replacement-test",
|
||||
@ -234,7 +192,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the ''δ'' rune literal with the ''©'' rune literal in the a var assignment of the 'main' module"
|
||||
"summary": "Replaced the ''δ'' rune literal with the ''©'' rune literal in the a var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -261,7 +219,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the b var assignment of the 'main' module"
|
||||
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the b var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -288,7 +246,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the c var assignment of the 'main' module"
|
||||
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the c var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -315,7 +273,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the d var assignment of the 'main' module"
|
||||
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the d var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -342,7 +300,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the e var assignment of the 'main' module"
|
||||
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the e var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -357,8 +315,12 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f' var assignment in the main module"
|
||||
},
|
||||
"summary": "Added the 'f' var assignment"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {
|
||||
"rune-literals.go": [
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
@ -366,62 +328,16 @@
|
||||
8,
|
||||
3
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
4
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f' identifier in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
8,
|
||||
7
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
9
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the ''⌘' error in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
8,
|
||||
9
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'jjjj' identifier in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
8,
|
||||
13
|
||||
],
|
||||
"end": [
|
||||
9,
|
||||
1
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the ''\n' error in the main module"
|
||||
"summary": "Deleted 'f = '⌘jjjj'\n' at line 8, column 3 - line 9, column 1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"rune-literals.go"
|
||||
@ -449,7 +365,7 @@
|
||||
" )"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e6e1d68cbaa666c2681a25a27113902d8f1ee84c..07b515ef93f8ca7f6d5fd5760d06502b3726fe6f"
|
||||
"shas": "7946dc95b2a2eaa4a44da409ed54a82a54ed188a..9846819cac6a3814f8fc03011b6e0c38af042214"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-rune-literals-delete-replacement-test",
|
||||
@ -481,7 +397,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the ''©'' rune literal with the ''δ'' rune literal in the a var assignment of the 'main' module"
|
||||
"summary": "Replaced the ''©'' rune literal with the ''δ'' rune literal in the a var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -508,7 +424,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the b var assignment of the 'main' module"
|
||||
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the b var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -535,7 +451,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the c var assignment of the 'main' module"
|
||||
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the c var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -562,7 +478,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the d var assignment of the 'main' module"
|
||||
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the d var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -589,67 +505,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the e var assignment of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
8,
|
||||
3
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
4
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f' identifier in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
8,
|
||||
7
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
9
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the ''⌘' error in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
8,
|
||||
9
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'jjjj' identifier in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
8,
|
||||
13
|
||||
],
|
||||
"end": [
|
||||
9,
|
||||
1
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the ''\n' error in the main module"
|
||||
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the e var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -664,11 +520,29 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f' var assignment in the main module"
|
||||
"summary": "Deleted the 'f' var assignment"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
"errors": {
|
||||
"rune-literals.go": [
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
8,
|
||||
3
|
||||
],
|
||||
"end": [
|
||||
9,
|
||||
1
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added 'f = '⌘jjjj'\n' at line 8, column 3 - line 9, column 1"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"rune-literals.go"
|
||||
@ -696,7 +570,7 @@
|
||||
" )"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "07b515ef93f8ca7f6d5fd5760d06502b3726fe6f..29397c86faaf45a301de097d6e051502954906c7"
|
||||
"shas": "9846819cac6a3814f8fc03011b6e0c38af042214..cc35d6332ea1c0dc789bfa7f461eba04824cf783"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-rune-literals-delete-insert-test",
|
||||
@ -716,7 +590,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' var assignment in the main module"
|
||||
"summary": "Deleted the 'a' var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -731,7 +605,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'b' var assignment in the main module"
|
||||
"summary": "Deleted the 'b' var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -746,7 +620,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c' var assignment in the main module"
|
||||
"summary": "Deleted the 'c' var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -761,7 +635,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'd' var assignment in the main module"
|
||||
"summary": "Deleted the 'd' var assignment"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -776,8 +650,12 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'e' var assignment in the main module"
|
||||
},
|
||||
"summary": "Deleted the 'e' var assignment"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {
|
||||
"rune-literals.go": [
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
@ -785,62 +663,16 @@
|
||||
8,
|
||||
3
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
4
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f' identifier in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
8,
|
||||
7
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
9
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the ''⌘' error in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
8,
|
||||
9
|
||||
],
|
||||
"end": [
|
||||
8,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'jjjj' identifier in the main module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
8,
|
||||
13
|
||||
],
|
||||
"end": [
|
||||
9,
|
||||
1
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the ''\n' error in the main module"
|
||||
"summary": "Deleted 'f = '⌘jjjj'\n' at line 8, column 3 - line 9, column 1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"rune-literals.go"
|
||||
@ -863,7 +695,7 @@
|
||||
"+"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "29397c86faaf45a301de097d6e051502954906c7..7c099f8699e7c7742ad383be5ba07326fb3e6087"
|
||||
"shas": "cc35d6332ea1c0dc789bfa7f461eba04824cf783..1cc444aa94d7784497f5d15ca15b1569b467732d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-rune-literals-teardown-test",
|
||||
@ -878,8 +710,8 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
3,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
@ -902,5 +734,5 @@
|
||||
"-"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "7c099f8699e7c7742ad383be5ba07326fb3e6087..3a475c2e781c97178d1986bf754545dbb051440c"
|
||||
"shas": "1cc444aa94d7784497f5d15ca15b1569b467732d..fd41bb91afdd6087f0c3e6c54566857b7105df8c"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "5ef8bc0eb6c5afcf5b71c3773b50aacebffe32d5..fc27fba6f9c1e19251a29214c0bc8599c48a93dc"
|
||||
"shas": "cb913819d62f34c2cc72aa293b39fabca1a0f05c..16284699449cfa8d9ebef6df6c39765b1952a1f5"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-select-statements-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added a select statement in the main function of the 'main' module"
|
||||
"summary": "Added a select statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -90,7 +105,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "fc27fba6f9c1e19251a29214c0bc8599c48a93dc..5b3000889bd5f6fed85f762e41c07c37d058fce5"
|
||||
"shas": "16284699449cfa8d9ebef6df6c39765b1952a1f5..d72bb50ec9a41c5cad553f3a0d9dfb889749dee1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-select-statements-replacement-test",
|
||||
@ -122,7 +137,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'x' identifier with the 'a' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'x' identifier with the 'a' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -149,7 +164,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'y' identifier with the 'b' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'y' identifier with the 'b' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -207,7 +222,7 @@
|
||||
" return"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "5b3000889bd5f6fed85f762e41c07c37d058fce5..cfad5a03e0e5e2b92b80d8013221c57bb8b54dbb"
|
||||
"shas": "d72bb50ec9a41c5cad553f3a0d9dfb889749dee1..6556fe84b67435f6c768377975c181a125a5a9f1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-select-statements-delete-replacement-test",
|
||||
@ -239,7 +254,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a' identifier with the 'x' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'a' identifier with the 'x' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -266,7 +281,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'b' identifier with the 'y' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'b' identifier with the 'y' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -324,7 +339,7 @@
|
||||
" return"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "cfad5a03e0e5e2b92b80d8013221c57bb8b54dbb..ef37033c96b063deb172c7ceb9cbc6c659cb6f70"
|
||||
"shas": "6556fe84b67435f6c768377975c181a125a5a9f1..3882dca1074e6564bc01f79a1b44f2c0db17d3e2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-select-statements-delete-insert-test",
|
||||
@ -344,7 +359,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted a select statement in the main function of the 'main' module"
|
||||
"summary": "Deleted a select statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -376,7 +391,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ef37033c96b063deb172c7ceb9cbc6c659cb6f70..b4c5ae05e9993d2a8f9abcfa1b1a5e1ff4677aed"
|
||||
"shas": "3882dca1074e6564bc01f79a1b44f2c0db17d3e2..51576f63dc98b44fbb1042065c9ab828a27dd5f7"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-select-statements-teardown-test",
|
||||
@ -391,12 +406,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -418,5 +448,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "b4c5ae05e9993d2a8f9abcfa1b1a5e1ff4677aed..c14d55dd062dc340dde5986bd08c8b6aa1173023"
|
||||
"shas": "51576f63dc98b44fbb1042065c9ab828a27dd5f7..fa9acd974705290312a7cebdba09b18008dc6093"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "2e1fbc3488b3a5250246698b500360fa5c6cfcf2..e42a971b5a20ca75eb3c72bde201c371aa234e47"
|
||||
"shas": "eca7c6083f4f3169ebc3bf726c3d936818a2d174..aeb74c519ca8d7d63e6d35cff856d277c571b6f7"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-selector-expressions-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a[b][c]()' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'a[b][c]()' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -81,7 +96,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e42a971b5a20ca75eb3c72bde201c371aa234e47..aca59151a934c5b7d22a87aa964022b68a778cb1"
|
||||
"shas": "aeb74c519ca8d7d63e6d35cff856d277c571b6f7..a59ce1e7d20b1843f9b59495e1a6b3f7d8c096f4"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-selector-expressions-replacement-test",
|
||||
@ -190,7 +205,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "aca59151a934c5b7d22a87aa964022b68a778cb1..dc7fcc07a9355e4a2ec338447082958991a735e2"
|
||||
"shas": "a59ce1e7d20b1843f9b59495e1a6b3f7d8c096f4..9c0b77724a8c467d16ad46f5f184144b65216512"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-selector-expressions-delete-replacement-test",
|
||||
@ -299,7 +314,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "dc7fcc07a9355e4a2ec338447082958991a735e2..7b10b01b498546d1d3e0e6c9b28fdfeb6a1087f7"
|
||||
"shas": "9c0b77724a8c467d16ad46f5f184144b65216512..a2f408b126df5e135832ae9d566dab50031792ec"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-selector-expressions-delete-insert-test",
|
||||
@ -319,7 +334,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a[b][c]()' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a[b][c]()' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -342,7 +357,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "7b10b01b498546d1d3e0e6c9b28fdfeb6a1087f7..a909f7c3616574addb8ffea18320f3bb8d50c85e"
|
||||
"shas": "a2f408b126df5e135832ae9d566dab50031792ec..7ee0dab9d8d593cbca3c6230313f3eaeda0ada55"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-selector-expressions-teardown-test",
|
||||
@ -357,12 +372,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -384,5 +414,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "a909f7c3616574addb8ffea18320f3bb8d50c85e..584515bfe655665166b3a9a5db100a4bd4ae398b"
|
||||
"shas": "7ee0dab9d8d593cbca3c6230313f3eaeda0ada55..0a55a88480be2cc766ee756b5b5f7bf45704376c"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c6c8175bf350bd238c29e1300d79724e6acf5d8f..e9256862e31c38270d1bec9360c4dc47c10838ca"
|
||||
"shas": "1d4f678537c1a2636fd9eba370de9e81de874c72..9ff735e947d0cc8440903c7acee54ccd8de2cbc1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-send-statements-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'foo <- 5' send statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'foo <- 5' send statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -81,7 +96,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e9256862e31c38270d1bec9360c4dc47c10838ca..4b8e19ec7308259990ef6868862ae26f9517c905"
|
||||
"shas": "9ff735e947d0cc8440903c7acee54ccd8de2cbc1..8fc0429afe1c5062f256e0423bf7f7dae8e0b1e2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-send-statements-replacement-test",
|
||||
@ -113,7 +128,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -140,7 +155,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '5' with '6' in the main function of the 'main' module"
|
||||
"summary": "Replaced '5' with '6' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -163,7 +178,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "4b8e19ec7308259990ef6868862ae26f9517c905..71f509fd773bfe971497f7dab87fbb8d5f286c14"
|
||||
"shas": "8fc0429afe1c5062f256e0423bf7f7dae8e0b1e2..54cd41da0c7bb8d56aa5e7cd6f0903908c8e321b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-send-statements-delete-replacement-test",
|
||||
@ -195,7 +210,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -222,7 +237,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '6' with '5' in the main function of the 'main' module"
|
||||
"summary": "Replaced '6' with '5' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -245,7 +260,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "71f509fd773bfe971497f7dab87fbb8d5f286c14..289dff55b2757ee11a20854ec6325e34f53dcb91"
|
||||
"shas": "54cd41da0c7bb8d56aa5e7cd6f0903908c8e321b..3a2b37c02821a9daa3416c419f1efbad8ecb1ce4"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-send-statements-delete-insert-test",
|
||||
@ -265,7 +280,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'foo <- 5' send statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'foo <- 5' send statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -288,7 +303,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "289dff55b2757ee11a20854ec6325e34f53dcb91..d2e4520caddff99d3bc5ba1e63f495a53a6e84d4"
|
||||
"shas": "3a2b37c02821a9daa3416c419f1efbad8ecb1ce4..4be86e6bc27ab2ed64363e832a3291202eecc707"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-send-statements-teardown-test",
|
||||
@ -303,12 +318,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -330,5 +360,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d2e4520caddff99d3bc5ba1e63f495a53a6e84d4..7f8d4e43555f3b5d3f723b58c0fbf874612c614f"
|
||||
"shas": "4be86e6bc27ab2ed64363e832a3291202eecc707..bb4ba3185a52b92f422411ad6cae97a82e2b2657"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "6ccea258bd2125cbbe34266069b39fc47fe5d4e3..d86a797bca0743cdc0eb4671f5b3eb25921e46b5"
|
||||
"shas": "e3c2411f013b063d1c440d3a295be6485170c63d..3f76dd06eb1d09789402bf6941a8d177785db15d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-short-var-declarations-insert-test",
|
||||
@ -54,18 +69,48 @@
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
13
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'a' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
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,
|
||||
@ -73,7 +118,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'b' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added '2' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -96,7 +141,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d86a797bca0743cdc0eb4671f5b3eb25921e46b5..949f040e38e0adb5a87c9b9ea7c42568058a2b32"
|
||||
"shas": "3f76dd06eb1d09789402bf6941a8d177785db15d..187c1b52a8ed9334d34195fc341535c8d021c0d4"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-short-var-declarations-replacement-test",
|
||||
@ -128,34 +173,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a' identifier with the 'x' identifier in the x var assignment of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
9
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
10
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
9
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
10
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '1' with '3' in the x var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'a' identifier with the 'x' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -182,7 +200,34 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'b' identifier with the 'y' identifier in the y var assignment of the 'main' function"
|
||||
"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": {
|
||||
@ -209,7 +254,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '2' with '4' in the y var assignment of the 'main' function"
|
||||
"summary": "Replaced '2' with '4' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -232,7 +277,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "949f040e38e0adb5a87c9b9ea7c42568058a2b32..cee7f55944490cc3fd074d9b92e033c52b44a036"
|
||||
"shas": "187c1b52a8ed9334d34195fc341535c8d021c0d4..cb1ef5208e3c762f6d149a56bea8c42e448e8ef0"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-short-var-declarations-delete-replacement-test",
|
||||
@ -264,34 +309,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'x' identifier with the 'a' identifier in the a var assignment of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
9
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
10
|
||||
]
|
||||
},
|
||||
{
|
||||
"start": [
|
||||
4,
|
||||
9
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
10
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '3' with '1' in the a var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'x' identifier with the 'a' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -318,7 +336,34 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'y' identifier with the 'b' identifier in the b var assignment of the 'main' function"
|
||||
"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": {
|
||||
@ -345,7 +390,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '4' with '2' in the b var assignment of the 'main' function"
|
||||
"summary": "Replaced '4' with '2' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -368,7 +413,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "cee7f55944490cc3fd074d9b92e033c52b44a036..d8c62fa2d207d7d564ca6f2673d47a697ecea20e"
|
||||
"shas": "cb1ef5208e3c762f6d149a56bea8c42e448e8ef0..d7c2a9a102abb7226275c4d464907a4154b782c3"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-short-var-declarations-delete-insert-test",
|
||||
@ -384,18 +429,48 @@
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
13
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
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,
|
||||
@ -403,7 +478,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'b' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted '2' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -426,7 +501,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d8c62fa2d207d7d564ca6f2673d47a697ecea20e..38ed1694da804c308df6058dd3cbc3c4c552418d"
|
||||
"shas": "d7c2a9a102abb7226275c4d464907a4154b782c3..716f05adcb3b0c9c3fcd7166f770fe32c639d348"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-short-var-declarations-teardown-test",
|
||||
@ -441,12 +516,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -468,5 +558,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "38ed1694da804c308df6058dd3cbc3c4c552418d..20ca91d3f69487f7d530b334333fdfe2a3743e03"
|
||||
"shas": "716f05adcb3b0c9c3fcd7166f770fe32c639d348..d5f8f49ab00e91cf9cf8a71dd94c14b3fa29aad8"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,28 +53,13 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "af763902e530bed278bc8bd2365c849366e38e1e..33684cfbcbf7f857d0cf6372e81358ed343475b6"
|
||||
"shas": "6de9ab15bd1a30f31bd2fdd3fefaef8985e7de52..7fefb122c064688a8968f969eac26609be94d94f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-single-import-declarations-insert-test",
|
||||
"expectedResult": {
|
||||
"changes": {
|
||||
"single-import-declarations.go": [
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
7
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'import' identifier in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
@ -73,22 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the \"net/http\" string in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
7
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'import' identifier in the main function of the 'main' module"
|
||||
"summary": "Added the \"net/http\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -103,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the \"some/dsl\" string in the main function of the 'main' module"
|
||||
"summary": "Added the \"some/dsl\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -118,7 +103,41 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'import' identifier in the main function of the 'main' module"
|
||||
"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": {
|
||||
@ -127,32 +146,16 @@
|
||||
6,
|
||||
8
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'alias' identifier in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
6,
|
||||
14
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
28
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the \"some/package\" string in the main function of the 'main' module"
|
||||
"summary": "Added 'alias \"some/package\"' at line 6, column 8 - line 6, column 28 in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"single-import-declarations.go"
|
||||
@ -173,7 +176,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "33684cfbcbf7f857d0cf6372e81358ed343475b6..82413533e0a6e87a167fc5e1e8d954b9ad174170"
|
||||
"shas": "7fefb122c064688a8968f969eac26609be94d94f..6dae7ceccb9cb8e85281d1a4c1d8c5d8c661255c"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-single-import-declarations-replacement-test",
|
||||
@ -205,7 +208,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"net/http\" string with the \"foo/bar\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"net/http\" string with the \"foo/bar\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -232,7 +235,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"some/dsl\" string with the \"types/dsl\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"some/dsl\" string with the \"types/dsl\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -259,7 +262,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"some/package\" string with the \"awesome/packages\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"some/package\" string with the \"awesome/packages\" string in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -286,7 +289,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "82413533e0a6e87a167fc5e1e8d954b9ad174170..5cb40d42444d6e9c304a9f5197b39bdf0d2df990"
|
||||
"shas": "6dae7ceccb9cb8e85281d1a4c1d8c5d8c661255c..ae5e4f4a6a921e1170a9b85ae3b090f15172be85"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-single-import-declarations-delete-replacement-test",
|
||||
@ -318,7 +321,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"foo/bar\" string with the \"net/http\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"foo/bar\" string with the \"net/http\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -345,7 +348,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"types/dsl\" string with the \"some/dsl\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"types/dsl\" string with the \"some/dsl\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -372,7 +375,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"awesome/packages\" string with the \"some/package\" string in the main function of the 'main' module"
|
||||
"summary": "Replaced the \"awesome/packages\" string with the \"some/package\" string in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -399,28 +402,13 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "5cb40d42444d6e9c304a9f5197b39bdf0d2df990..9da104e0d0cd486bb3cbabe632ae91311e49d86f"
|
||||
"shas": "ae5e4f4a6a921e1170a9b85ae3b090f15172be85..be9944b647c93dcdb02ce3d892d04a35c1bd7f52"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-single-import-declarations-delete-insert-test",
|
||||
"expectedResult": {
|
||||
"changes": {
|
||||
"single-import-declarations.go": [
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
7
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'import' identifier in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
@ -434,22 +422,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the \"net/http\" string in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
7
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'import' identifier in the main function of the 'main' module"
|
||||
"summary": "Deleted the \"net/http\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -464,7 +437,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the \"some/dsl\" string in the main function of the 'main' module"
|
||||
"summary": "Deleted the \"some/dsl\" string in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -479,7 +452,41 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'import' identifier in the main function of the 'main' module"
|
||||
"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": {
|
||||
@ -488,32 +495,16 @@
|
||||
6,
|
||||
8
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'alias' identifier in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
6,
|
||||
14
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
28
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the \"some/package\" string in the main function of the 'main' module"
|
||||
"summary": "Deleted 'alias \"some/package\"' at line 6, column 8 - line 6, column 28 in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"single-import-declarations.go"
|
||||
@ -534,7 +525,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9da104e0d0cd486bb3cbabe632ae91311e49d86f..7f99e097d059b403e991c7649ce9bac1b8925333"
|
||||
"shas": "be9944b647c93dcdb02ce3d892d04a35c1bd7f52..d091a3255b8271e218572299738095d3efe19115"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-single-import-declarations-teardown-test",
|
||||
@ -549,12 +540,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -576,5 +582,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "7f99e097d059b403e991c7649ce9bac1b8925333..6bee120701f5e3c15b3f8a13d4ead70d225091d1"
|
||||
"shas": "d091a3255b8271e218572299738095d3efe19115..126db53cee9459e0927b80ed1af574cc273f948e"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,28 +53,13 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "15dbaf1c2f3cba362af5abba2a6aa9d2f1a92990..1cfb73a77cdd0f33c8083b2ba398b88a5768962e"
|
||||
"shas": "7ebca2c2e26873ec2ec3d92c6922446eb95bb61f..cfc5ed7d21deace3c8eabd9d394e916da7e41a46"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-single-line-function-declarations-insert-test",
|
||||
"expectedResult": {
|
||||
"changes": {
|
||||
"single-line-function-declarations.go": [
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f1()' function call in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
@ -73,22 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a()' function call in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f2()' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'a()' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -103,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a()' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'a()' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -118,22 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'b()' function call in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
6,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f3()' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'b()' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -148,7 +118,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a()' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'a()' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -163,11 +133,59 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'b()' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'b()' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
"errors": {
|
||||
"single-line-function-declarations.go": [
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added 'func f1()' at line 4, column 1 - line 4, column 10 in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added 'func f2()' at line 5, column 1 - line 5, column 10 in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added 'func f3()' at line 6, column 1 - line 6, column 10 in the main function"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"single-line-function-declarations.go"
|
||||
@ -188,7 +206,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "1cfb73a77cdd0f33c8083b2ba398b88a5768962e..45325d9bb638e3f0ec912829e4655bb3c55d36b7"
|
||||
"shas": "cfc5ed7d21deace3c8eabd9d394e916da7e41a46..978bbef12122d7954da3d7f7dfa67cfea28a84f9"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-single-line-function-declarations-replacement-test",
|
||||
@ -222,36 +240,6 @@
|
||||
},
|
||||
"summary": "Replaced the 'f1' identifier with the 'g1' identifier in the g1() function call of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'g2()' function call in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f2()' function call in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
@ -281,7 +269,40 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
"errors": {
|
||||
"single-line-function-declarations.go": [
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added 'func g2()' at line 5, column 1 - line 5, column 10 in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted 'func f2()' at line 5, column 1 - line 5, column 10 in the main function"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"single-line-function-declarations.go"
|
||||
@ -304,7 +325,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "45325d9bb638e3f0ec912829e4655bb3c55d36b7..32b04cc1d447c547bd0d358059bb56f72907f26f"
|
||||
"shas": "978bbef12122d7954da3d7f7dfa67cfea28a84f9..2896a28ff80236db618c50ceb2b9d9469a4ea425"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-single-line-function-declarations-delete-replacement-test",
|
||||
@ -338,36 +359,6 @@
|
||||
},
|
||||
"summary": "Replaced the 'g1' identifier with the 'f1' identifier in the f1() function call of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f2()' function call in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'g2()' function call in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"replace": [
|
||||
@ -397,7 +388,40 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
"errors": {
|
||||
"single-line-function-declarations.go": [
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added 'func f2()' at line 5, column 1 - line 5, column 10 in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted 'func g2()' at line 5, column 1 - line 5, column 10 in the main function"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"single-line-function-declarations.go"
|
||||
@ -420,28 +444,13 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "32b04cc1d447c547bd0d358059bb56f72907f26f..d4acd503a8b68f01b4010e16c820e37477878eb7"
|
||||
"shas": "2896a28ff80236db618c50ceb2b9d9469a4ea425..94b20a0aaf7aef755357df422b0f96413e3532f9"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-single-line-function-declarations-delete-insert-test",
|
||||
"expectedResult": {
|
||||
"changes": {
|
||||
"single-line-function-declarations.go": [
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
4,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f1()' function call in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
@ -455,22 +464,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a()' function call in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f2()' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a()' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -485,7 +479,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a()' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a()' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -500,22 +494,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'b()' function call in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
6,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f3()' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'b()' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -530,7 +509,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a()' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a()' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -545,11 +524,59 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'b()' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'b()' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errors": {}
|
||||
"errors": {
|
||||
"single-line-function-declarations.go": [
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
4,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted 'func f1()' at line 4, column 1 - line 4, column 10 in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted 'func f2()' at line 5, column 1 - line 5, column 10 in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted 'func f3()' at line 6, column 1 - line 6, column 10 in the main function"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"filePaths": [
|
||||
"single-line-function-declarations.go"
|
||||
@ -570,7 +597,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d4acd503a8b68f01b4010e16c820e37477878eb7..c91e71f353ff1bb9b14a92330b79cc0f725f8a36"
|
||||
"shas": "94b20a0aaf7aef755357df422b0f96413e3532f9..911d3b87f28310cf84bd22c59757753c61dca6c4"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-single-line-function-declarations-teardown-test",
|
||||
@ -585,12 +612,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -612,5 +654,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c91e71f353ff1bb9b14a92330b79cc0f725f8a36..38625d07b620985fecbe285c34631bd03093d3f1"
|
||||
"shas": "911d3b87f28310cf84bd22c59757753c61dca6c4..aa75d831de9909c8ed71c01ca49d0b4ef4e4b7e8"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "bd87198971225ff85fa587a26c2dd6deb8510b32..c9c6443b2e8022c659cd31c5d86aad9618c51688"
|
||||
"shas": "8db0bd957201afac84d98da63dd95cb8e725c256..0b90f2526d52190d9afeab0e9f7f22fe14c94394"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-slice-literals-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's1' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 's1' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's2' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 's2' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's3' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 's3' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -116,7 +131,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c9c6443b2e8022c659cd31c5d86aad9618c51688..29fdb841b857fda14c6399b67fd61d23832f2e4f"
|
||||
"shas": "0b90f2526d52190d9afeab0e9f7f22fe14c94394..d2ab6b2a6bc827f778accd158152671516e7148b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-slice-literals-replacement-test",
|
||||
@ -148,7 +163,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the '{}' literal with the \"sup\" string in the []string{\"sup\"} slice literal of the 'main' function"
|
||||
"summary": "Replaced the '{}' literal with the \"sup\" string in the []string\"sup\" composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -175,7 +190,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"hi\" string with the \"hello\" string in the []string{\"hello\"} slice literal of the 'main' function"
|
||||
"summary": "Replaced the \"hi\" string with the \"hello\" string in the []string\"hello\" composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -202,7 +217,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"hi\" string with the \"bar\" string in the []string{\n\"bar\",\n \"baz\",\n} slice literal of the 'main' function"
|
||||
"summary": "Replaced the \"hi\" string with the \"bar\" string in the []string\"bar\", \"baz\" composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -229,7 +244,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"hello\" string with the \"baz\" string in the []string{\n\"bar\",\n \"baz\",\n} slice literal of the 'main' function"
|
||||
"summary": "Replaced the \"hello\" string with the \"baz\" string in the []string\"bar\", \"baz\" composite_literal of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -260,7 +275,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "29fdb841b857fda14c6399b67fd61d23832f2e4f..9f0128a9f93aea99042f33f76a6ac5c756959f2c"
|
||||
"shas": "d2ab6b2a6bc827f778accd158152671516e7148b..1df5ade839691a6de61d73b255d3c09de62f6bba"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-slice-literals-delete-replacement-test",
|
||||
@ -292,7 +307,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"sup\" string with the '{}' literal in the []string{} slice literal of the 'main' function"
|
||||
"summary": "Replaced the \"sup\" string with the '{}' literal in the []string{} composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -319,7 +334,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"hello\" string with the \"hi\" string in the []string{\"hi\"} slice literal of the 'main' function"
|
||||
"summary": "Replaced the \"hello\" string with the \"hi\" string in the []string\"hi\" composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -346,7 +361,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"bar\" string with the \"hi\" string in the []string{\n\"hi\",\n \"hello\",\n} slice literal of the 'main' function"
|
||||
"summary": "Replaced the \"bar\" string with the \"hi\" string in the []string\"hi\", \"hello\" composite_literal of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -373,7 +388,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"baz\" string with the \"hello\" string in the []string{\n\"hi\",\n \"hello\",\n} slice literal of the 'main' function"
|
||||
"summary": "Replaced the \"baz\" string with the \"hello\" string in the []string\"hi\", \"hello\" composite_literal of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -404,7 +419,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9f0128a9f93aea99042f33f76a6ac5c756959f2c..777713eba10a1b4a80a2186b41cb42bfae652da8"
|
||||
"shas": "1df5ade839691a6de61d73b255d3c09de62f6bba..d772b054e12dc6500aa60b00277272b757caa6ac"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-slice-literals-delete-insert-test",
|
||||
@ -424,7 +439,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's1' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's1' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -439,7 +454,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's2' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's2' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -454,7 +469,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's3' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's3' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -482,7 +497,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "777713eba10a1b4a80a2186b41cb42bfae652da8..d57127d7aeb6bc75de7dbae9fda7cd75bb47f25f"
|
||||
"shas": "d772b054e12dc6500aa60b00277272b757caa6ac..fb7e33bba45e0fce349cadac8b7fb638c9446dff"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-slice-literals-teardown-test",
|
||||
@ -497,12 +512,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -524,5 +554,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d57127d7aeb6bc75de7dbae9fda7cd75bb47f25f..99d38d0dd43a990f37c709b49fa2eae7137a4acc"
|
||||
"shas": "fb7e33bba45e0fce349cadac8b7fb638c9446dff..576026694b333d8935d7a3e88a32dbd0ed0b3fa4"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "311f299ee4b5dcd8c757aaf89a1230d369bda6e3..5b990ff2106f3abbc479873635bac339a21d6afb"
|
||||
"shas": "242b339cd8dd07d6f1232ff7f96ee2eb324516d9..5b4731f5adac70903edeb633e9e21dd24b5786e4"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-slice-types-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'a' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'c' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -97,7 +112,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "5b990ff2106f3abbc479873635bac339a21d6afb..0e862cac95a31a3480314af2809e1f175461c5fe"
|
||||
"shas": "5b4731f5adac70903edeb633e9e21dd24b5786e4..c9b289da486a64d171721252d096cfe151f30a18"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-slice-types-replacement-test",
|
||||
@ -187,7 +202,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0e862cac95a31a3480314af2809e1f175461c5fe..35cf4e9f2a798bf438bbbed46cd73c1d9ae3cd49"
|
||||
"shas": "c9b289da486a64d171721252d096cfe151f30a18..fe1225e665ec5b7b147bf09bd6692c8092e4e4e2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-slice-types-delete-replacement-test",
|
||||
@ -277,7 +292,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "35cf4e9f2a798bf438bbbed46cd73c1d9ae3cd49..9e465999e8152c5cced37c02e235f8c3d9212832"
|
||||
"shas": "fe1225e665ec5b7b147bf09bd6692c8092e4e4e2..270d41af2f2a6046963eceed150f5d08ea1c986f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-slice-types-delete-insert-test",
|
||||
@ -297,7 +312,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -312,7 +327,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'c' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -336,7 +351,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9e465999e8152c5cced37c02e235f8c3d9212832..46775e18357ab321b7292332655630dcec7f44ec"
|
||||
"shas": "270d41af2f2a6046963eceed150f5d08ea1c986f..d16cbfb0816b433e10a58e6ba96499e390853933"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-slice-types-teardown-test",
|
||||
@ -351,12 +366,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -378,5 +408,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "46775e18357ab321b7292332655630dcec7f44ec..ecc6c1cfaa7cfdb57813875656d848f4eb240af1"
|
||||
"shas": "d16cbfb0816b433e10a58e6ba96499e390853933..57665a31ef098c76a33d7fb8dc14586054888e70"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "29b7d780794e2ee8d37771310cebb2000b677aec..286e0bd256ddfafc7c560e9c2669787b66381d46"
|
||||
"shas": "d39cc6bcd81255864bc210bd0ab92a71c0a80cc2..16d9a34f668dbafe6dbdfac745ffc44545f4bd9e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-string-literals-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'a' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'b' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'b' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -99,7 +114,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "286e0bd256ddfafc7c560e9c2669787b66381d46..b8f816256c7413358be4f5ff760a9cd7d826b702"
|
||||
"shas": "16d9a34f668dbafe6dbdfac745ffc44545f4bd9e..5619d5dc5d1278e4363419d4f9c02a729726fc39"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-string-literals-replacement-test",
|
||||
@ -184,7 +199,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "b8f816256c7413358be4f5ff760a9cd7d826b702..00903da3545a103befa3655622e1b972f3da1a46"
|
||||
"shas": "5619d5dc5d1278e4363419d4f9c02a729726fc39..c4aa7c20e6d9a2950d7db2be45b980ddd7e99ce8"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-string-literals-delete-replacement-test",
|
||||
@ -269,7 +284,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "00903da3545a103befa3655622e1b972f3da1a46..c1868273a476bcafa2067beb8a0b93f46627f003"
|
||||
"shas": "c4aa7c20e6d9a2950d7db2be45b980ddd7e99ce8..e4a86bf76b1bf8a7419a94a59780b272876d53c1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-string-literals-delete-insert-test",
|
||||
@ -289,7 +304,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -304,7 +319,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'b' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'b' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -330,7 +345,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c1868273a476bcafa2067beb8a0b93f46627f003..e059052145abd6701de2673af30bfa861b2b3382"
|
||||
"shas": "e4a86bf76b1bf8a7419a94a59780b272876d53c1..40eb9809170e085cc42ac58d979fca5b61d14679"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-string-literals-teardown-test",
|
||||
@ -345,12 +360,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -372,5 +402,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e059052145abd6701de2673af30bfa861b2b3382..bd87198971225ff85fa587a26c2dd6deb8510b32"
|
||||
"shas": "40eb9809170e085cc42ac58d979fca5b61d14679..8db0bd957201afac84d98da63dd95cb8e725c256"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "5deef7045822271505960ed4cec253dedf122c38..62f0f3e2454b8e3a44f76f779c28deb62c42fd62"
|
||||
"shas": "65bbc171b8f70b289f47abe480d261056b5ea251..2d2f04046fa3f3d412aa2637b4291e67833048c7"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-field-declarations-insert-test",
|
||||
@ -83,7 +98,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "62f0f3e2454b8e3a44f76f779c28deb62c42fd62..03c576b5debd2c48337432cb2de75b1188457088"
|
||||
"shas": "2d2f04046fa3f3d412aa2637b4291e67833048c7..fff65061ac778ebd7eea2950833f8a0a715ef39f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-field-declarations-replacement-test",
|
||||
@ -110,12 +125,12 @@
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
11
|
||||
4
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'g int' field declaration with the 'h, i int' field declaration in the struct {\n h, i int\n} struct type of the 'main' function"
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -139,7 +154,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "03c576b5debd2c48337432cb2de75b1188457088..b565b45f613603ee651612ec4f5015000d30e207"
|
||||
"shas": "fff65061ac778ebd7eea2950833f8a0a715ef39f..68b3cf1b72905aa30e13bcc35e0c6f644e90898a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-field-declarations-delete-replacement-test",
|
||||
@ -156,7 +171,7 @@
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
11
|
||||
4
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -171,7 +186,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'h, i int' field declaration with the 'g int' field declaration in the struct {\n g int\n} struct type of the 'main' function"
|
||||
"summary": "Replaced the 'h' identifier with the 'g int' field declaration in the struct {\n g int\n} struct type of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -195,7 +210,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "b565b45f613603ee651612ec4f5015000d30e207..2276d09f9b7b1fa0729ea0fddcdfebff360c8f5d"
|
||||
"shas": "68b3cf1b72905aa30e13bcc35e0c6f644e90898a..278c27a97dbee140d6467c09af4c6c835c6eca6e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-field-declarations-delete-insert-test",
|
||||
@ -240,7 +255,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "2276d09f9b7b1fa0729ea0fddcdfebff360c8f5d..0e91f39b4267ac56153c02a6ce70ca1bd9e98919"
|
||||
"shas": "278c27a97dbee140d6467c09af4c6c835c6eca6e..e8d2d6f98417cadd0f0706b362a004e24387f31a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-field-declarations-teardown-test",
|
||||
@ -255,12 +270,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -282,5 +312,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0e91f39b4267ac56153c02a6ce70ca1bd9e98919..2ff7aeec9c5efbeaf3a7b681f718640926ca1f90"
|
||||
"shas": "e8d2d6f98417cadd0f0706b362a004e24387f31a..67d576bfc545aeab08b6970a41866b4643831ec5"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c7c9b52a2e3477a5c5970b67af95fa2a603c8359..8d66af77430491c28641c31f14c1e81f288a825e"
|
||||
"shas": "0c8ae16482a04b19b4a23f3af01e4d9f314b712e..1f15b0d1afbb74572f14840fe6bf05c90fc968d8"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-literals-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's1' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 's1' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's2' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 's2' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's3' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 's3' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -116,7 +131,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "8d66af77430491c28641c31f14c1e81f288a825e..df1830408002c6cb7789af837352777daceca83f"
|
||||
"shas": "1f15b0d1afbb74572f14840fe6bf05c90fc968d8..4494c26fb9999b04a2c61cf39c32d1d24e8d5f8d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-literals-replacement-test",
|
||||
@ -286,7 +301,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "df1830408002c6cb7789af837352777daceca83f..53ce2a2659da80b01af2204645a5ecaf7c9ce648"
|
||||
"shas": "4494c26fb9999b04a2c61cf39c32d1d24e8d5f8d..206d1a39d3694158ecdad426673ec76d48e374af"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-literals-delete-replacement-test",
|
||||
@ -456,7 +471,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "53ce2a2659da80b01af2204645a5ecaf7c9ce648..0dfb212f1383ebf4bd18fc18f884813675a16291"
|
||||
"shas": "206d1a39d3694158ecdad426673ec76d48e374af..021bb0b55e32d2b017f2b4b29dddcd790cea242d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-literals-delete-insert-test",
|
||||
@ -476,7 +491,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's1' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's1' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -491,7 +506,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's2' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's2' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -506,7 +521,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's3' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's3' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -534,7 +549,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0dfb212f1383ebf4bd18fc18f884813675a16291..2121bdbc46ad88c104fc3e30aa7b161c4989b86c"
|
||||
"shas": "021bb0b55e32d2b017f2b4b29dddcd790cea242d..dc132533bd95c31a8f5e9bb4b9a62e2feb4c10f6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-literals-teardown-test",
|
||||
@ -549,12 +564,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -576,5 +606,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "2121bdbc46ad88c104fc3e30aa7b161c4989b86c..c6c8175bf350bd238c29e1300d79724e6acf5d8f"
|
||||
"shas": "dc132533bd95c31a8f5e9bb4b9a62e2feb4c10f6..1d4f678537c1a2636fd9eba370de9e81de874c72"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ecc6c1cfaa7cfdb57813875656d848f4eb240af1..857275968bd7cbc1fe5e4e289f89f6663267f0e4"
|
||||
"shas": "57665a31ef098c76a33d7fb8dc14586054888e70..3660aaf9358df40375f73cb4bfb377a1382b7d3e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-types-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's1' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 's1' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's2' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 's2' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's3' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 's3' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -103,7 +118,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 's4' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 's4' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -134,7 +149,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "857275968bd7cbc1fe5e4e289f89f6663267f0e4..20cee4164a3674eca7823cdda7b7f1cc47507e97"
|
||||
"shas": "3660aaf9358df40375f73cb4bfb377a1382b7d3e..396230fe3c660ac63e571cbce1e3432349fb42c7"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-types-replacement-test",
|
||||
@ -280,7 +295,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "20cee4164a3674eca7823cdda7b7f1cc47507e97..4f5bba08d7d526cc668661f48c8394d668da0b15"
|
||||
"shas": "396230fe3c660ac63e571cbce1e3432349fb42c7..44f4a72ca5904799754ac659baa3fd1191c5ae35"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-types-delete-replacement-test",
|
||||
@ -426,7 +441,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "4f5bba08d7d526cc668661f48c8394d668da0b15..accfa3bdac2a03b86dd69edb6f2eae0ad0ac01ee"
|
||||
"shas": "44f4a72ca5904799754ac659baa3fd1191c5ae35..3e3f6aef1912a00d1f54c15a2c9603db93e32783"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-types-delete-insert-test",
|
||||
@ -446,7 +461,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's1' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's1' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -461,7 +476,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's2' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's2' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -476,7 +491,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's3' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's3' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -491,7 +506,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 's4' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 's4' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -522,7 +537,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "accfa3bdac2a03b86dd69edb6f2eae0ad0ac01ee..729aa3b076058bccf9ae611776a8a83f5f0c268f"
|
||||
"shas": "3e3f6aef1912a00d1f54c15a2c9603db93e32783..a77aaacc58bfdd55c6797f8f3d1fff0b15a8f1d5"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-struct-types-teardown-test",
|
||||
@ -537,12 +552,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -564,5 +594,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "729aa3b076058bccf9ae611776a8a83f5f0c268f..8b9132202584b9cb77727d35fc5933c26eca6b3c"
|
||||
"shas": "a77aaacc58bfdd55c6797f8f3d1fff0b15a8f1d5..d27aeb5e58d624d463c84b7a506673945bee82fd"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f5fe5786c0b546d3a5a224d7b5875f31f57db459..97371be1b990d91b2ec115a8b644e29f3e8b87a5"
|
||||
"shas": "08c2e3dcd4ce51ddc9fd673ef182af5f0748761d..57eb15a262867634bb0669a59e07b4703d24240b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-switch-statements-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added a switch statement in the main function of the 'main' module"
|
||||
"summary": "Added a switch statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -84,7 +99,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "97371be1b990d91b2ec115a8b644e29f3e8b87a5..49aad18e625ab33b2ed01a02b011d4343ba7e395"
|
||||
"shas": "57eb15a262867634bb0669a59e07b4703d24240b..727028399225f191e4201a1172376ad9bf6cd0a2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-switch-statements-replacement-test",
|
||||
@ -279,7 +294,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "49aad18e625ab33b2ed01a02b011d4343ba7e395..3353e64f25a4b4a3b27eabe36f289b7ed2eefa85"
|
||||
"shas": "727028399225f191e4201a1172376ad9bf6cd0a2..880af6e91564040c1fc0334c6dd9f8a62a6d8cea"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-switch-statements-delete-replacement-test",
|
||||
@ -474,7 +489,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "3353e64f25a4b4a3b27eabe36f289b7ed2eefa85..34bc509ec97b06440974346db573df7f8e93e7e0"
|
||||
"shas": "880af6e91564040c1fc0334c6dd9f8a62a6d8cea..687a060667a15c960b679bd47bad476720b066d2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-switch-statements-delete-insert-test",
|
||||
@ -494,7 +509,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted a switch statement in the main function of the 'main' module"
|
||||
"summary": "Deleted a switch statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -520,7 +535,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "34bc509ec97b06440974346db573df7f8e93e7e0..c292cdb6883c5306c7f7f46268333b01851ecdd8"
|
||||
"shas": "687a060667a15c960b679bd47bad476720b066d2..6e7cf473bef3db760568c7999a2e8c832b5e9ab2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-switch-statements-teardown-test",
|
||||
@ -535,12 +550,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -562,5 +592,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c292cdb6883c5306c7f7f46268333b01851ecdd8..846045886cec5887a42533f48de771ee58d766a0"
|
||||
"shas": "6e7cf473bef3db760568c7999a2e8c832b5e9ab2..259a41893cf92e7d6ded7e6b963dfc276e4dd3a2"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "e4c6a9b9a1f1cbf3dd7a4ce717333fb847b7fbac..494715cafe3834303fecb34caa2592d77712ab31"
|
||||
"shas": "39c039e08c3764d56d26a74bbc7bb32704cc398c..bf275213eb7f0252ea00d4c4d512d7c1ad3a841c"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-assertion-expressions-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'x.(z.Person)' type assertion statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'x.(z.Person)' type assertion statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -81,7 +96,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "494715cafe3834303fecb34caa2592d77712ab31..57a6ec4effeb9f05a122238d323ce7dcd69df07f"
|
||||
"shas": "bf275213eb7f0252ea00d4c4d512d7c1ad3a841c..90dd626922974beae3ac02734b6a9040c20f8844"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-assertion-expressions-replacement-test",
|
||||
@ -113,7 +128,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'x' identifier with the 'b' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'x' identifier with the 'b' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -140,7 +155,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'z.Person' qualified identifier with the 'c.Dog' qualified identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'z.Person' qualified identifier with the 'c.Dog' qualified identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -163,7 +178,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "57a6ec4effeb9f05a122238d323ce7dcd69df07f..0316d3acd42da2101c8d933617d7eeb30eee52d5"
|
||||
"shas": "90dd626922974beae3ac02734b6a9040c20f8844..8c6d06fdf10722bafb109c5c8b03922b16b2e4b2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-assertion-expressions-delete-replacement-test",
|
||||
@ -195,7 +210,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'b' identifier with the 'x' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'b' identifier with the 'x' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -222,7 +237,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'c.Dog' qualified identifier with the 'z.Person' qualified identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'c.Dog' qualified identifier with the 'z.Person' qualified identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -245,7 +260,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0316d3acd42da2101c8d933617d7eeb30eee52d5..f7e6434ce30a5b34a67cfe802722b1a51fd24052"
|
||||
"shas": "8c6d06fdf10722bafb109c5c8b03922b16b2e4b2..428e63d779c812b38a047f0ce6a7c94681735c64"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-assertion-expressions-delete-insert-test",
|
||||
@ -265,7 +280,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'x.(z.Person)' type assertion statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'x.(z.Person)' type assertion statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -288,7 +303,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f7e6434ce30a5b34a67cfe802722b1a51fd24052..b4e4fd587390ce7fd5b4b6c95ac01261eb97c17c"
|
||||
"shas": "428e63d779c812b38a047f0ce6a7c94681735c64..3c31becef538d5dc5a68400e14ceff9b10ccca37"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-assertion-expressions-teardown-test",
|
||||
@ -303,12 +318,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -330,5 +360,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "b4e4fd587390ce7fd5b4b6c95ac01261eb97c17c..d47123e6fd9c69b12607e0236be45289b764ce8b"
|
||||
"shas": "3c31becef538d5dc5a68400e14ceff9b10ccca37..7b340405bd9a9ab47d50717b924a791be7df4e4c"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d47123e6fd9c69b12607e0236be45289b764ce8b..2295a64ba4b51a33fb10e4f15334c064fc693f38"
|
||||
"shas": "7b340405bd9a9ab47d50717b924a791be7df4e4c..e06123f66775f44daf42dbea18390891dd4df1d2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-conversion-expressions-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the '[]a.b(c.d)' type conversion expression in the main function of the 'main' module"
|
||||
"summary": "Added the '[]a.b(c.d)' type conversion expression in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the '([]a.b)(c.d)' type conversion expression in the main function of the 'main' module"
|
||||
"summary": "Added the '([]a.b)(c.d)' type conversion expression in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'e[f](g)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'e[f](g)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -103,7 +118,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'e[f](g)' function call in the main function of the 'main' module"
|
||||
"summary": "Added the 'e[f](g)' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -129,7 +144,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "2295a64ba4b51a33fb10e4f15334c064fc693f38..ea6a60af4f877c1ff46a539776d2893d1268c4a5"
|
||||
"shas": "e06123f66775f44daf42dbea18390891dd4df1d2..1079e1f0a50bda389b619cbc8c9ca9197315a2b9"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-conversion-expressions-replacement-test",
|
||||
@ -161,7 +176,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a.b' qualified identifier with the 'x.y' qualified identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'a.b' qualified identifier with the 'x.y' qualified identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -242,7 +257,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a.b' qualified identifier with the 'f.g' qualified identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'a.b' qualified identifier with the 'f.g' qualified identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -487,7 +502,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ea6a60af4f877c1ff46a539776d2893d1268c4a5..726d84b24c74206d9ba8612e5595e5c1d34c8234"
|
||||
"shas": "1079e1f0a50bda389b619cbc8c9ca9197315a2b9..f43697697c714dec9e9f0a7ca910b0fe61b3a6a1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-conversion-expressions-delete-replacement-test",
|
||||
@ -519,7 +534,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'x.y' qualified identifier with the 'a.b' qualified identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'x.y' qualified identifier with the 'a.b' qualified identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -600,7 +615,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'f.g' qualified identifier with the 'a.b' qualified identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'f.g' qualified identifier with the 'a.b' qualified identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -845,7 +860,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "726d84b24c74206d9ba8612e5595e5c1d34c8234..9138ddb9e7c8d3be78dd7cd750ceb0f307a30065"
|
||||
"shas": "f43697697c714dec9e9f0a7ca910b0fe61b3a6a1..d23c4aa30ec95311b310f9091a49d55bb5a36ee6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-conversion-expressions-delete-insert-test",
|
||||
@ -865,7 +880,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the '[]a.b(c.d)' type conversion expression in the main function of the 'main' module"
|
||||
"summary": "Deleted the '[]a.b(c.d)' type conversion expression in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -880,7 +895,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the '([]a.b)(c.d)' type conversion expression in the main function of the 'main' module"
|
||||
"summary": "Deleted the '([]a.b)(c.d)' type conversion expression in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -895,7 +910,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'e[f](g)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'e[f](g)' function call in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -910,7 +925,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'e[f](g)' function call in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'e[f](g)' function call in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -936,7 +951,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9138ddb9e7c8d3be78dd7cd750ceb0f307a30065..d5e1f18c7c2feeee39275f304cacd1575d22ac1a"
|
||||
"shas": "d23c4aa30ec95311b310f9091a49d55bb5a36ee6..b26659150b0b7be7f597f4b0458b11040dfe685a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-conversion-expressions-teardown-test",
|
||||
@ -951,12 +966,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -978,5 +1008,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d5e1f18c7c2feeee39275f304cacd1575d22ac1a..17539bd3043b11a2ee479a191c1a1b3c10116161"
|
||||
"shas": "b26659150b0b7be7f597f4b0458b11040dfe685a..62e181eaec5ef85a5d7816331750f05ed4be5ed3"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "96c8359530072c03347732bdcc542a967aa6d2b2..0a7a0ec697af683bb053af5d6f194aefc91e59c9"
|
||||
"shas": "407e4c1852d95bd8c9a3494899d65731e2bbb43f..25728b3aea7540b288bdba7aa562fb20ba2019ba"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-declarations-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'a' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'a' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -88,7 +103,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'c' type declaration in the main function of the 'main' module"
|
||||
"summary": "Added the 'c' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -115,7 +130,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0a7a0ec697af683bb053af5d6f194aefc91e59c9..f0c1048d3039c68c0dc43d49181462414c3f2977"
|
||||
"shas": "25728b3aea7540b288bdba7aa562fb20ba2019ba..c398853e91bfceb57339f50c32e2076c8edc3f10"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-declarations-replacement-test",
|
||||
@ -311,7 +326,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f0c1048d3039c68c0dc43d49181462414c3f2977..894fe5946c95f6d2a2e54b6dbba5e478fd854390"
|
||||
"shas": "c398853e91bfceb57339f50c32e2076c8edc3f10..15b226c3776ba2ca08c06e3d61ee6ccfc4ccd4ef"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-declarations-delete-replacement-test",
|
||||
@ -507,7 +522,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "894fe5946c95f6d2a2e54b6dbba5e478fd854390..ef9f3f89f2fc4ff7971c64a35be17a3f29ec483b"
|
||||
"shas": "15b226c3776ba2ca08c06e3d61ee6ccfc4ccd4ef..7bebec4a6a031168e3daaaf0be17c5bdb981c2ff"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-declarations-delete-insert-test",
|
||||
@ -527,7 +542,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -542,7 +557,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'a' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'a' type declaration in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -557,7 +572,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'c' type declaration in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'c' type declaration in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -584,7 +599,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ef9f3f89f2fc4ff7971c64a35be17a3f29ec483b..c0475d256af46752264401c96e960fb4d1d6c00a"
|
||||
"shas": "7bebec4a6a031168e3daaaf0be17c5bdb981c2ff..882eb3c2516e2c1dd64e1ced273a98c461e247c9"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-declarations-teardown-test",
|
||||
@ -599,12 +614,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -626,5 +656,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c0475d256af46752264401c96e960fb4d1d6c00a..358b31625272f975d35624a18f8337974c7a142d"
|
||||
"shas": "882eb3c2516e2c1dd64e1ced273a98c461e247c9..8b23ffed2230fe0c2e75c1a02c179c9ff1726d8f"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "846045886cec5887a42533f48de771ee58d766a0..4ff1c192d8ce792d43135c481bc6ac2038e9a75b"
|
||||
"shas": "259a41893cf92e7d6ded7e6b963dfc276e4dd3a2..8dce6e38a34b47bc8ab779bdea2e6a3f2eb32eeb"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-switch-statements-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'e' switch statement in the main function of the 'main' module"
|
||||
"summary": "Added the 'e' switch statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -86,7 +101,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "4ff1c192d8ce792d43135c481bc6ac2038e9a75b..4c5713dc076428d72a0468a2016d850ec4da21ff"
|
||||
"shas": "8dce6e38a34b47bc8ab779bdea2e6a3f2eb32eeb..fe7af65017235cb0aa5b1cf9596dc880467a830b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-switch-statements-replacement-test",
|
||||
@ -143,7 +158,7 @@
|
||||
" case *Dog:"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "4c5713dc076428d72a0468a2016d850ec4da21ff..bb88efe8967423243277e2c5baf1ffa430e98601"
|
||||
"shas": "fe7af65017235cb0aa5b1cf9596dc880467a830b..5550ebeea097dfc8b61407ac282806a1eb239051"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-switch-statements-delete-replacement-test",
|
||||
@ -200,7 +215,7 @@
|
||||
" case *Dog:"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "bb88efe8967423243277e2c5baf1ffa430e98601..3bec68c0b122bbb4ea1dbbf39abac06c3ae0ad07"
|
||||
"shas": "5550ebeea097dfc8b61407ac282806a1eb239051..4c882301284f37700ebed2cb52f4bfdc407c1fce"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-switch-statements-delete-insert-test",
|
||||
@ -220,7 +235,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'e' switch statement in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'e' switch statement in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -248,7 +263,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "3bec68c0b122bbb4ea1dbbf39abac06c3ae0ad07..9497bebe3b0e4c555d273a7c99f0f0937a9c158b"
|
||||
"shas": "4c882301284f37700ebed2cb52f4bfdc407c1fce..6a8743c7c0edf3f07d48d3f7c2e2c04583c4bd04"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-type-switch-statements-teardown-test",
|
||||
@ -263,12 +278,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -290,5 +320,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "9497bebe3b0e4c555d273a7c99f0f0937a9c158b..5ef8bc0eb6c5afcf5b71c3773b50aacebffe32d5"
|
||||
"shas": "6a8743c7c0edf3f07d48d3f7c2e2c04583c4bd04..cb913819d62f34c2cc72aa293b39fabca1a0f05c"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "17539bd3043b11a2ee479a191c1a1b3c10116161..95d724a0a09fadc48ea2890dee7d75ac5b9aa7af"
|
||||
"shas": "62e181eaec5ef85a5d7816331750f05ed4be5ed3..ad7c2d4b1b3af4d629262b596d4d76591b0f2939"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-unary-expressions-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the '!<-a' operator in the main function of the 'main' module"
|
||||
"summary": "Added the '!<-a' operator in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -73,7 +88,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the '*foo()' operator in the main function of the 'main' module"
|
||||
"summary": "Added the '*foo()' operator in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -97,7 +112,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "95d724a0a09fadc48ea2890dee7d75ac5b9aa7af..a1314a7b82e8afb936c41bc2b1f8f7f6dea61f0a"
|
||||
"shas": "ad7c2d4b1b3af4d629262b596d4d76591b0f2939..857884599a5b10f98e339f72e7e0ef5dff6ea432"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-unary-expressions-replacement-test",
|
||||
@ -129,7 +144,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a' identifier with the 'b' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'a' identifier with the 'b' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -181,7 +196,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "a1314a7b82e8afb936c41bc2b1f8f7f6dea61f0a..fc3fe7fe5250957e38223499d73968baa410b221"
|
||||
"shas": "857884599a5b10f98e339f72e7e0ef5dff6ea432..dacb9cd739035ebe3919a96f7f90cd75e48b832e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-unary-expressions-delete-replacement-test",
|
||||
@ -213,7 +228,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'b' identifier with the 'a' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'b' identifier with the 'a' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -265,7 +280,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "fc3fe7fe5250957e38223499d73968baa410b221..8432ee8db9ae0dc6e5b596495e564e1ead822991"
|
||||
"shas": "dacb9cd739035ebe3919a96f7f90cd75e48b832e..5ef7adc637975b15415197ba4e8ce354e69789fd"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-unary-expressions-delete-insert-test",
|
||||
@ -285,7 +300,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the '!<-a' operator in the main function of the 'main' module"
|
||||
"summary": "Deleted the '!<-a' operator in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -300,7 +315,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the '*foo()' operator in the main function of the 'main' module"
|
||||
"summary": "Deleted the '*foo()' operator in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -324,7 +339,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "8432ee8db9ae0dc6e5b596495e564e1ead822991..22c7306ff2ebc9176ca41b89ca4020751157e748"
|
||||
"shas": "5ef7adc637975b15415197ba4e8ce354e69789fd..30d627648cb775a76037cf8a7ab0f03c8588727b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-unary-expressions-teardown-test",
|
||||
@ -339,12 +354,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -366,5 +396,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "22c7306ff2ebc9176ca41b89ca4020751157e748..2f519cce92d26f6a9c43d21d062dc065afef2bbb"
|
||||
"shas": "30d627648cb775a76037cf8a7ab0f03c8588727b..6ea06aa1e8431651d63087d1f623f409947a25f1"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "6f294740ad6a127c66874266a39c55d6f279067a..28fd7c1aac60275cc6e07250ce2bf9f7f2f34af8"
|
||||
"shas": "ba8c45bc969c0974d427789ea9cf408475593b4f..7d82093dc2c65d42e401f7a495fbe70a7cd7ed19"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-with-no-expressions-insert-test",
|
||||
@ -54,11 +69,11 @@
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
9
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'zero' variable in the main function of the 'main' module"
|
||||
"summary": "Added the 'zero' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -69,26 +84,11 @@
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
8
|
||||
20
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'one' variable in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
10
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'two' variable in the main function of the 'main' module"
|
||||
"summary": "Added the 'one, two' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -112,7 +112,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "28fd7c1aac60275cc6e07250ce2bf9f7f2f34af8..94444d86a80c26e413cef05550efcfc2e5903dac"
|
||||
"shas": "7d82093dc2c65d42e401f7a495fbe70a7cd7ed19..419274e5020690ffdfc80fa234fcead2517443e0"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-with-no-expressions-replacement-test",
|
||||
@ -144,7 +144,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the a var assignment of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -171,7 +171,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'one' identifier with the 'b' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'one' identifier with the 'b' identifier in the b, c var assignment of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -198,7 +198,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'two' identifier with the 'c' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'two' identifier with the 'c' identifier in the b, c var assignment of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -223,7 +223,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "94444d86a80c26e413cef05550efcfc2e5903dac..d18dd508ad93803291e3fef6826b53a24261361c"
|
||||
"shas": "419274e5020690ffdfc80fa234fcead2517443e0..882172cbcf5efc650425926516515d7ad0104fad"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-replacement-test",
|
||||
@ -255,7 +255,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the zero var assignment of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -282,7 +282,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'b' identifier with the 'one' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'b' identifier with the 'one' identifier in the one, two var assignment of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -309,7 +309,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'c' identifier with the 'two' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'c' identifier with the 'two' identifier in the one, two var assignment of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -334,7 +334,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d18dd508ad93803291e3fef6826b53a24261361c..cddc950eb862c4f5f4ef826268ce03055ef4941e"
|
||||
"shas": "882172cbcf5efc650425926516515d7ad0104fad..d9003bce5e60e442e3c65bd64ce31f514f56d5be"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-insert-test",
|
||||
@ -350,11 +350,11 @@
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
9
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'zero' variable in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'zero' var assignment in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -365,26 +365,11 @@
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
8
|
||||
20
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'one' variable in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
10
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'two' variable in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'one, two' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -408,7 +393,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "cddc950eb862c4f5f4ef826268ce03055ef4941e..fca013c75804ecc36f13bf1bccee63f21c15119d"
|
||||
"shas": "d9003bce5e60e442e3c65bd64ce31f514f56d5be..83bedace90d82120d06cc87c9e2993bafcd75174"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-with-no-expressions-teardown-test",
|
||||
@ -423,12 +408,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -450,5 +450,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "fca013c75804ecc36f13bf1bccee63f21c15119d..784a2032a8b3f1926b4874446b0dc9672ace15be"
|
||||
"shas": "83bedace90d82120d06cc87c9e2993bafcd75174..3dba2a559a0cc46933a2663e7b9cdcd4a92808d9"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "cf089a91e3b3b63ace66353bbce1bc27a3607561..f225c3b9f2b833487a893a9f56e607fdf52bad2b"
|
||||
"shas": "e314d296ac8ddd2fee51a4cf45b812637d285244..3a54778e8643fed461c68e500e8eb6aa0ee72ab1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-with-types-insert-test",
|
||||
@ -52,13 +67,43 @@
|
||||
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 the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added '0' in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -69,18 +114,63 @@
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
27
|
||||
8
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'one' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'one' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
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,
|
||||
@ -88,7 +178,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'two' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added '2' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -112,7 +202,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "f225c3b9f2b833487a893a9f56e607fdf52bad2b..c00515e4efbd5f7d6912816d717ce1bfcb670bd0"
|
||||
"shas": "3a54778e8643fed461c68e500e8eb6aa0ee72ab1..23e6404f39f85f4a31a72cb893ea7145518ca0c6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-with-types-replacement-test",
|
||||
@ -144,7 +234,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the a var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -171,7 +261,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'one' identifier with the 'b' identifier in the b var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'one' identifier with the 'b' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -198,7 +288,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'two' identifier with the 'c' identifier in the c var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'two' identifier with the 'c' identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -223,7 +313,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "c00515e4efbd5f7d6912816d717ce1bfcb670bd0..8fb77729dcda7f53596574e17001bb7ec2d20396"
|
||||
"shas": "23e6404f39f85f4a31a72cb893ea7145518ca0c6..c239ed4dccd2c65ccb5a7293327ebba940ad92b6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-with-types-delete-replacement-test",
|
||||
@ -255,7 +345,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the zero var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -282,7 +372,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'b' identifier with the 'one' identifier in the one var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'b' identifier with the 'one' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -309,7 +399,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'c' identifier with the 'two' identifier in the two var assignment of the 'main' function"
|
||||
"summary": "Replaced the 'c' identifier with the 'two' identifier in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -334,7 +424,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "8fb77729dcda7f53596574e17001bb7ec2d20396..21f55db94ef8f793a90580e51238d359719777c5"
|
||||
"shas": "c239ed4dccd2c65ccb5a7293327ebba940ad92b6..f1c07b4aa5c85609e85929fcd6a42fe1270cb9d8"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-with-types-delete-insert-test",
|
||||
@ -348,13 +438,43 @@
|
||||
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 the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted '0' in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -365,18 +485,63 @@
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
27
|
||||
8
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'one' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'one' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
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,
|
||||
@ -384,7 +549,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'two' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted '2' in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -408,7 +573,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "21f55db94ef8f793a90580e51238d359719777c5..03a9cd454081a8e6645d83610f7d4c2f4a4c967f"
|
||||
"shas": "f1c07b4aa5c85609e85929fcd6a42fe1270cb9d8..8712527e7cc3056ebb8d176db32429befc4976a8"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-with-types-teardown-test",
|
||||
@ -423,12 +588,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -450,5 +630,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "03a9cd454081a8e6645d83610f7d4c2f4a4c967f..6f294740ad6a127c66874266a39c55d6f279067a"
|
||||
"shas": "8712527e7cc3056ebb8d176db32429befc4976a8..ba8c45bc969c0974d427789ea9cf408475593b4f"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "0d1fc5e6274224d81271e5fc10b3dcd839d2c59e..4f349ef4ddc8d1d7deac3ed064c34755b0f4ed44"
|
||||
"shas": "9c509bdfabb537255c810cd09cf45b53bf65628f..6241b8182026cf5a9a5ebb20894a2066ad61d7fa"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-without-types-insert-test",
|
||||
@ -58,7 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added the 'zero' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -81,7 +96,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "4f349ef4ddc8d1d7deac3ed064c34755b0f4ed44..1d981614331bf437a9bb4f3a578dbdb8d3bb3c45"
|
||||
"shas": "6241b8182026cf5a9a5ebb20894a2066ad61d7fa..4381dbdfbfc360ed15534ae1563ca7f307ba6fa3"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-without-types-replacement-test",
|
||||
@ -113,7 +128,22 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'zero' identifier with the 'one' identifier in the one var assignment of the 'main' function"
|
||||
"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": {
|
||||
@ -140,14 +170,14 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced '0' with '1' in the one var assignment of the 'main' function"
|
||||
"summary": "Replaced '0' with '1' in the one, two var assignment of the 'main' function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
4,
|
||||
5
|
||||
19
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
@ -155,7 +185,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'two' var assignment in the main function of the 'main' module"
|
||||
"summary": "Added '2' in the one, two var assignment of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -178,7 +208,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "1d981614331bf437a9bb4f3a578dbdb8d3bb3c45..7f5e7e4333182d20de657082c23e1853052b359f"
|
||||
"shas": "4381dbdfbfc360ed15534ae1563ca7f307ba6fa3..9e0bc36d4a23fcf88bbe39573c3060fb6c63a244"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-without-types-delete-replacement-test",
|
||||
@ -212,6 +242,21 @@
|
||||
},
|
||||
"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": [
|
||||
@ -244,7 +289,7 @@
|
||||
"delete": {
|
||||
"start": [
|
||||
4,
|
||||
5
|
||||
19
|
||||
],
|
||||
"end": [
|
||||
4,
|
||||
@ -252,7 +297,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'two' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted '2' in the zero var assignment of the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -275,7 +320,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "7f5e7e4333182d20de657082c23e1853052b359f..3d01fe832a3e6572514a45abe30ead81377a6e30"
|
||||
"shas": "9e0bc36d4a23fcf88bbe39573c3060fb6c63a244..4d38dbeeb84c79bab4cd292803c2a9d6a8d2174a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-without-types-delete-insert-test",
|
||||
@ -295,7 +340,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'zero' var assignment in the main function of the 'main' module"
|
||||
"summary": "Deleted the 'zero' var assignment in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -318,7 +363,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "3d01fe832a3e6572514a45abe30ead81377a6e30..ecb8c963c2e5f9ac0cf79f8f75fd35a9df5edff3"
|
||||
"shas": "4d38dbeeb84c79bab4cd292803c2a9d6a8d2174a..b53811b73269e4466e33c70b3ce6619faee5a414"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-var-declarations-without-types-teardown-test",
|
||||
@ -333,12 +378,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -360,5 +420,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ecb8c963c2e5f9ac0cf79f8f75fd35a9df5edff3..cf089a91e3b3b63ace66353bbce1bc27a3607561"
|
||||
"shas": "b53811b73269e4466e33c70b3ce6619faee5a414..e314d296ac8ddd2fee51a4cf45b812637d285244"
|
||||
}]
|
||||
|
@ -11,12 +11,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -38,7 +53,7 @@
|
||||
"+}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "38625d07b620985fecbe285c34631bd03093d3f1..1a1ef7f3a48dae788491ddbc01fd99b0beea911a"
|
||||
"shas": "aa75d831de9909c8ed71c01ca49d0b4ef4e4b7e8..9db615e38de5c59ee4b97268aabc270c799757eb"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-variadic-function-declarations-insert-test",
|
||||
@ -58,67 +73,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the '{}' block in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
8
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f2' identifier in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
9
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
15
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the '...int' parameter declaration in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
17
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
19
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the '{}' block in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
23
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'f3' function in the main function of the 'main' module"
|
||||
"summary": "Added the '{}' expression statements in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -137,7 +92,22 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added 'func f1(a ...*int)' at line 4, column 1 - line 4, column 19 in the main function of the 'main' module"
|
||||
"summary": "Added 'func f1(a ...*int)' at line 4, column 1 - line 4, column 19 in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"insert": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
1
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added 'func f2(...int) {}\nfunc f3(a, ...bool) {}\n' at line 5, column 1 - line 7, column 1 in the main function"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -161,7 +131,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "1a1ef7f3a48dae788491ddbc01fd99b0beea911a..d723621053ed6e52f1cadf57aa69a960e65ed18b"
|
||||
"shas": "9db615e38de5c59ee4b97268aabc270c799757eb..e6d1f6dee30000099d39ae30f4e31285dcd8a0a0"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-variadic-function-declarations-replacement-test",
|
||||
@ -193,7 +163,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'f1' identifier with the 'g1' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'f1' identifier with the 'g1' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -220,7 +190,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'f2' identifier with the 'g2' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'f2' identifier with the 'g2' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -274,7 +244,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "d723621053ed6e52f1cadf57aa69a960e65ed18b..ea6e9c4bab2c724c3404b58da92be55cfdbaac59"
|
||||
"shas": "e6d1f6dee30000099d39ae30f4e31285dcd8a0a0..4f6a3884d5c4e05ef0cdb21e07836f3d7d353e2d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-variadic-function-declarations-delete-replacement-test",
|
||||
@ -306,7 +276,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'g1' identifier with the 'f1' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'g1' identifier with the 'f1' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -333,7 +303,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'g2' identifier with the 'f2' identifier in the main function of the 'main' module"
|
||||
"summary": "Replaced the 'g2' identifier with the 'f2' identifier in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -387,7 +357,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "ea6e9c4bab2c724c3404b58da92be55cfdbaac59..2e724b51b58479e3a5c18adec03c2d3432b9a294"
|
||||
"shas": "4f6a3884d5c4e05ef0cdb21e07836f3d7d353e2d..90853de5caa0e260fa11b902eaa7475ebdf99232"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-variadic-function-declarations-delete-insert-test",
|
||||
@ -407,67 +377,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the '{}' block in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
6
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
8
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f2' identifier in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
9
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
15
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the '...int' parameter declaration in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
17
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
19
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the '{}' block in the main function of the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
6,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
23
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'f3' function in the main function of the 'main' module"
|
||||
"summary": "Deleted the '{}' expression statements in the main function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -486,7 +396,22 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted 'func f1(a ...*int)' at line 4, column 1 - line 4, column 19 in the main function of the 'main' module"
|
||||
"summary": "Deleted 'func f1(a ...*int)' at line 4, column 1 - line 4, column 19 in the main function"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
5,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
7,
|
||||
1
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted 'func f2(...int) {}\nfunc f3(a, ...bool) {}\n' at line 5, column 1 - line 7, column 1 in the main function"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -510,7 +435,7 @@
|
||||
" }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "2e724b51b58479e3a5c18adec03c2d3432b9a294..28dcb81132bc5030b250aa5d4b2cf1ca8ddf7959"
|
||||
"shas": "90853de5caa0e260fa11b902eaa7475ebdf99232..c5a13455d55bc14c5ff37ddbd752df78ca9cb4b2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "go-variadic-function-declarations-teardown-test",
|
||||
@ -525,12 +450,27 @@
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
6,
|
||||
1
|
||||
1,
|
||||
13
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' module"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
"delete": {
|
||||
"start": [
|
||||
3,
|
||||
1
|
||||
],
|
||||
"end": [
|
||||
5,
|
||||
2
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'main' function"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -552,5 +492,5 @@
|
||||
"-}"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/go",
|
||||
"shas": "28dcb81132bc5030b250aa5d4b2cf1ca8ddf7959..ab4793c039457a689359c3fb317a49df66dfcae9"
|
||||
"shas": "c5a13455d55bc14c5ff37ddbd752df78ca9cb4b2..a8adfaba3e02d1f9416a61ff929abbed0bc123d4"
|
||||
}]
|
||||
|
@ -34,7 +34,7 @@
|
||||
"+function(a,b) { return a + b; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "07a785cb4f0cfa49a60fdfbbce7d8ecbfd2a820b..1ecbe6a443a701cf2b90740825d337914c3b01b8"
|
||||
"shas": "5bd86096402e987462d865b5963d5e68f31ef22d..ba054a01632544846e183487e942b55c700841d4"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-function-replacement-insert-test",
|
||||
@ -89,7 +89,7 @@
|
||||
" function(a,b) { return a + b; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "1ecbe6a443a701cf2b90740825d337914c3b01b8..1e649afd16b0e9145c760bd152b90dbf2eeb1c79"
|
||||
"shas": "ba054a01632544846e183487e942b55c700841d4..4e386f088a9b83fb0712ede76f926ec4ab503bcc"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-function-delete-insert-test",
|
||||
@ -196,7 +196,7 @@
|
||||
" function(a,b) { return a + b; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "1e649afd16b0e9145c760bd152b90dbf2eeb1c79..7fb344d8f58ce3935df46d0dc70e9f8f1896908f"
|
||||
"shas": "4e386f088a9b83fb0712ede76f926ec4ab503bcc..37cd59e66cfa065774478f33d8c62adefe5459db"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-function-replacement-test",
|
||||
@ -303,7 +303,7 @@
|
||||
" function(a,b) { return a + b; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "7fb344d8f58ce3935df46d0dc70e9f8f1896908f..6d835d52398bfc6715ef4c40d2706dd8c11cb83a"
|
||||
"shas": "37cd59e66cfa065774478f33d8c62adefe5459db..14d01e8232e8ab4ef9923517701cea5a39d9a06e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-function-delete-replacement-test",
|
||||
@ -374,7 +374,7 @@
|
||||
"+function(b,c) { return b * c; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "6d835d52398bfc6715ef4c40d2706dd8c11cb83a..fa0cd2354feb5199209c9aa13525567951185c88"
|
||||
"shas": "14d01e8232e8ab4ef9923517701cea5a39d9a06e..62def272c237a2ea3061d38022bca1545f62425f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-function-delete-test",
|
||||
@ -413,7 +413,7 @@
|
||||
" function(b,c) { return b * c; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "fa0cd2354feb5199209c9aa13525567951185c88..a93d062ea69a6600b3f795d769e2557042925d66"
|
||||
"shas": "62def272c237a2ea3061d38022bca1545f62425f..9c2e4c2c0015178634b7747dbc99adffc733ad14"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-function-delete-rest-test",
|
||||
@ -451,5 +451,5 @@
|
||||
"-function(b,c) { return b * c; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "a93d062ea69a6600b3f795d769e2557042925d66..80946fe6667b3843c0bd704136ac929ca5f2e3e0"
|
||||
"shas": "9c2e4c2c0015178634b7747dbc99adffc733ad14..c18d7bf565cc21b4eab97bee06b8182d71f79310"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
|
||||
"index e69de29..4a26ae8 100644",
|
||||
"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": "2a5f85a471c9c83f2e835139afa5eb7bfecd546a..a2527ab39dbaa7651e66e24f3d143d11060841f6"
|
||||
"shas": "c18d7bf565cc21b4eab97bee06b8182d71f79310..8872d92c96b47e465013ae1cd75ddd7bb7ab0f78"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-parameterless-function-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
|
||||
"index 4a26ae8..c31dd4b 100644",
|
||||
"index 4a26ae86..c31dd4b7 100644",
|
||||
"--- a/anonymous-parameterless-function.js",
|
||||
"+++ b/anonymous-parameterless-function.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" function() { return 'hi'; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "a2527ab39dbaa7651e66e24f3d143d11060841f6..4b3321e8a707ad91af6735319257f7f68fb593b7"
|
||||
"shas": "8872d92c96b47e465013ae1cd75ddd7bb7ab0f78..c76f6c6269c776c99d92fd30687cfa77e62ea746"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-insert-test",
|
||||
@ -132,7 +132,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
|
||||
"index c31dd4b..6b1efa4 100644",
|
||||
"index c31dd4b7..6b1efa42 100644",
|
||||
"--- a/anonymous-parameterless-function.js",
|
||||
"+++ b/anonymous-parameterless-function.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -142,7 +142,7 @@
|
||||
" function() { return 'hi'; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "4b3321e8a707ad91af6735319257f7f68fb593b7..a01626612654464812b9cedaad745f686edc8138"
|
||||
"shas": "c76f6c6269c776c99d92fd30687cfa77e62ea746..332ec447157ee23778ae3857a5a01f9e10ece1cc"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-parameterless-function-replacement-test",
|
||||
@ -185,7 +185,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
|
||||
"index 6b1efa4..c31dd4b 100644",
|
||||
"index 6b1efa42..c31dd4b7 100644",
|
||||
"--- a/anonymous-parameterless-function.js",
|
||||
"+++ b/anonymous-parameterless-function.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -195,7 +195,7 @@
|
||||
" function() { return 'hi'; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "a01626612654464812b9cedaad745f686edc8138..d640dfcedbbda8708bb8c679b2b96460e63e8e53"
|
||||
"shas": "332ec447157ee23778ae3857a5a01f9e10ece1cc..795ada7689a6f349ad93621970b5f5ec5332ac86"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-replacement-test",
|
||||
@ -256,7 +256,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
|
||||
"index c31dd4b..b8e05c0 100644",
|
||||
"index c31dd4b7..b8e05c0e 100644",
|
||||
"--- a/anonymous-parameterless-function.js",
|
||||
"+++ b/anonymous-parameterless-function.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -266,7 +266,7 @@
|
||||
"+function() { return 'hello'; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "d640dfcedbbda8708bb8c679b2b96460e63e8e53..f1436a17d64c050a7d6aa15fe0876ce3fc4176f0"
|
||||
"shas": "795ada7689a6f349ad93621970b5f5ec5332ac86..83f67f1b48452e4d9b163a320152ae9dc8ef403a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-test",
|
||||
@ -297,7 +297,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
|
||||
"index b8e05c0..ce1ef83 100644",
|
||||
"index b8e05c0e..ce1ef833 100644",
|
||||
"--- a/anonymous-parameterless-function.js",
|
||||
"+++ b/anonymous-parameterless-function.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -305,7 +305,7 @@
|
||||
" function() { return 'hello'; }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "f1436a17d64c050a7d6aa15fe0876ce3fc4176f0..1bd2372f874ec3588d5510b5c7fa50c378b5e665"
|
||||
"shas": "83f67f1b48452e4d9b163a320152ae9dc8ef403a..3a2d2bcd317d7b045070c4d90d694fc69c5b1f38"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-anonymous-parameterless-function-delete-rest-test",
|
||||
@ -336,12 +336,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/anonymous-parameterless-function.js b/anonymous-parameterless-function.js",
|
||||
"index ce1ef83..e69de29 100644",
|
||||
"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": "1bd2372f874ec3588d5510b5c7fa50c378b5e665..e66b1b20abc596d2b560eaa80f1749c79816f9ff"
|
||||
"shas": "3a2d2bcd317d7b045070c4d90d694fc69c5b1f38..aab57fb5b99b7d08c03849736ffa873c26495bec"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/array.js b/array.js",
|
||||
"index e69de29..3335582 100644",
|
||||
"index e69de29b..33355825 100644",
|
||||
"--- a/array.js",
|
||||
"+++ b/array.js",
|
||||
"@@ -0,0 +1 @@",
|
||||
"+[ \"item1\" ];"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "654a538b26c9b4c8637e6c2e4cd497c93e690310..cbf013688399920af101ea056e9fba5ecba0601d"
|
||||
"shas": "89b3d4cd2ef38999c223c69de3011646b1f43c24..82c5ec73355d6296c1bc8e6fbcd9606635930f42"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-array-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/array.js b/array.js",
|
||||
"index 3335582..cf37d7c 100644",
|
||||
"index 33355825..cf37d7c1 100644",
|
||||
"--- a/array.js",
|
||||
"+++ b/array.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" [ \"item1\" ];"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "cbf013688399920af101ea056e9fba5ecba0601d..87e3b9ed3c5f26c596ad2b5da90359174c84f53c"
|
||||
"shas": "82c5ec73355d6296c1bc8e6fbcd9606635930f42..2c0dab888be8bb07c850408ff7f3c918c9b2f679"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-array-delete-insert-test",
|
||||
@ -120,7 +120,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/array.js b/array.js",
|
||||
"index cf37d7c..c2cb17f 100644",
|
||||
"index cf37d7c1..c2cb17fa 100644",
|
||||
"--- a/array.js",
|
||||
"+++ b/array.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -130,7 +130,7 @@
|
||||
" [ \"item1\" ];"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "87e3b9ed3c5f26c596ad2b5da90359174c84f53c..ea49177e8ff82b772f7347682975cb1fa5e7b012"
|
||||
"shas": "2c0dab888be8bb07c850408ff7f3c918c9b2f679..2836ffcd06212158191d83c6d23a76b86cd06aa6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-array-replacement-test",
|
||||
@ -161,7 +161,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/array.js b/array.js",
|
||||
"index c2cb17f..cf37d7c 100644",
|
||||
"index c2cb17fa..cf37d7c1 100644",
|
||||
"--- a/array.js",
|
||||
"+++ b/array.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -171,7 +171,7 @@
|
||||
" [ \"item1\" ];"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "ea49177e8ff82b772f7347682975cb1fa5e7b012..1e28fd793a6ab61ed59b28d8ee56b55be7ad79ec"
|
||||
"shas": "2836ffcd06212158191d83c6d23a76b86cd06aa6..6c43843105004658edd13b116c23d3feffc3efb7"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-array-delete-replacement-test",
|
||||
@ -232,7 +232,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/array.js b/array.js",
|
||||
"index cf37d7c..a4d92b8 100644",
|
||||
"index cf37d7c1..a4d92b81 100644",
|
||||
"--- a/array.js",
|
||||
"+++ b/array.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -242,7 +242,7 @@
|
||||
"+[ \"item1\", \"item2\" ];"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "1e28fd793a6ab61ed59b28d8ee56b55be7ad79ec..fdc62b5a013932e082ba61a576b8fb54cd1d0791"
|
||||
"shas": "6c43843105004658edd13b116c23d3feffc3efb7..379a870647ba9da2b5faf25da3bd60c6d3983e47"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-array-delete-test",
|
||||
@ -273,7 +273,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/array.js b/array.js",
|
||||
"index a4d92b8..7f2f50e 100644",
|
||||
"index a4d92b81..7f2f50e6 100644",
|
||||
"--- a/array.js",
|
||||
"+++ b/array.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -281,7 +281,7 @@
|
||||
" [ \"item1\", \"item2\" ];"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "fdc62b5a013932e082ba61a576b8fb54cd1d0791..9e91959fe3d3ec022474f242a8456b900fdfd8d2"
|
||||
"shas": "379a870647ba9da2b5faf25da3bd60c6d3983e47..ca784abe43a28e84e087f70495667e2d0cc5ed77"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-array-delete-rest-test",
|
||||
@ -312,12 +312,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/array.js b/array.js",
|
||||
"index 7f2f50e..e69de29 100644",
|
||||
"index 7f2f50e6..e69de29b 100644",
|
||||
"--- a/array.js",
|
||||
"+++ b/array.js",
|
||||
"@@ -1 +0,0 @@",
|
||||
"-[ \"item1\", \"item2\" ];"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "9e91959fe3d3ec022474f242a8456b900fdfd8d2..0bdf412036a9a6aea51108a20404c37541fffcfb"
|
||||
"shas": "ca784abe43a28e84e087f70495667e2d0cc5ed77..6a98861e426cf72452392e143d875b8ccd968a2c"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/arrow-function.js b/arrow-function.js",
|
||||
"index e69de29..9ef167c 100644",
|
||||
"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": "d700dc51fee7a3dd557906dcdf46d426285d7955..edda3c60ac532d534d84539648fa827ff18a6c59"
|
||||
"shas": "9adc811773ddcc66050c739b5bc900c4c2daff55..043afc3820510a580d284b7c25a6095675ee1e78"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-arrow-function-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/arrow-function.js b/arrow-function.js",
|
||||
"index 9ef167c..92dea6f 100644",
|
||||
"index 9ef167c0..92dea6fa 100644",
|
||||
"--- a/arrow-function.js",
|
||||
"+++ b/arrow-function.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" (f, g) => { return h; };"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "edda3c60ac532d534d84539648fa827ff18a6c59..63fd87f8cafc4a46f2927f9825cc20e5f116a093"
|
||||
"shas": "043afc3820510a580d284b7c25a6095675ee1e78..89e7ef95b30ed04038a529833bc78568279e96c4"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-arrow-function-delete-insert-test",
|
||||
@ -132,7 +132,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/arrow-function.js b/arrow-function.js",
|
||||
"index 92dea6f..8f5bb51 100644",
|
||||
"index 92dea6fa..8f5bb516 100644",
|
||||
"--- a/arrow-function.js",
|
||||
"+++ b/arrow-function.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -142,7 +142,7 @@
|
||||
" (f, g) => { return h; };"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "63fd87f8cafc4a46f2927f9825cc20e5f116a093..29b18be738dde19aa61343c5f4e54bf83f4b30ea"
|
||||
"shas": "89e7ef95b30ed04038a529833bc78568279e96c4..0ca5ab429492655b4558f5ea07ee43e589cd38d9"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-arrow-function-replacement-test",
|
||||
@ -185,7 +185,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/arrow-function.js b/arrow-function.js",
|
||||
"index 8f5bb51..92dea6f 100644",
|
||||
"index 8f5bb516..92dea6fa 100644",
|
||||
"--- a/arrow-function.js",
|
||||
"+++ b/arrow-function.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -195,7 +195,7 @@
|
||||
" (f, g) => { return h; };"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "29b18be738dde19aa61343c5f4e54bf83f4b30ea..d92f900ef9873f273da632ea9c54adcd7acc7961"
|
||||
"shas": "0ca5ab429492655b4558f5ea07ee43e589cd38d9..5fa58fce48a4fc866783eafd9c774329518a8333"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-arrow-function-delete-replacement-test",
|
||||
@ -256,7 +256,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/arrow-function.js b/arrow-function.js",
|
||||
"index 92dea6f..acab9a9 100644",
|
||||
"index 92dea6fa..acab9a9c 100644",
|
||||
"--- a/arrow-function.js",
|
||||
"+++ b/arrow-function.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -266,7 +266,7 @@
|
||||
"+(f, g) => { return g; };"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "d92f900ef9873f273da632ea9c54adcd7acc7961..243f2be7291992566bd0ab2c2caef9e7ac13e02d"
|
||||
"shas": "5fa58fce48a4fc866783eafd9c774329518a8333..145bae33733e38aa912562a0ad1cacc5a595de17"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-arrow-function-delete-test",
|
||||
@ -297,7 +297,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/arrow-function.js b/arrow-function.js",
|
||||
"index acab9a9..ef1be25 100644",
|
||||
"index acab9a9c..ef1be25b 100644",
|
||||
"--- a/arrow-function.js",
|
||||
"+++ b/arrow-function.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -305,7 +305,7 @@
|
||||
" (f, g) => { return g; };"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "243f2be7291992566bd0ab2c2caef9e7ac13e02d..3128237c6d11459cf7d3e9add902e7be8d38710b"
|
||||
"shas": "145bae33733e38aa912562a0ad1cacc5a595de17..437683161ec5a4d3efcdefde38c4f733402197b5"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-arrow-function-delete-rest-test",
|
||||
@ -336,12 +336,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/arrow-function.js b/arrow-function.js",
|
||||
"index ef1be25..e69de29 100644",
|
||||
"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": "3128237c6d11459cf7d3e9add902e7be8d38710b..5cab8720cde055f6d78f5c5deaf8980b89a434e1"
|
||||
"shas": "437683161ec5a4d3efcdefde38c4f733402197b5..a50f5d25657afa02329debd2a87b7ffbb8f2b76d"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/assignment.js b/assignment.js",
|
||||
"index e69de29..6882fe5 100644",
|
||||
"index e69de29b..6882fe5e 100644",
|
||||
"--- a/assignment.js",
|
||||
"+++ b/assignment.js",
|
||||
"@@ -0,0 +1 @@",
|
||||
"+x = 0;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "10c888c0caabf36cb211a96640afbe435dfad3fb..6a5eb86577a86881fdd53c3db17dd589617b887e"
|
||||
"shas": "b8e96cb516ef4cd80a86e0b6a00f5d4e542141dd..aa1627d9ad30ddc96644440396be830160280595"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-assignment-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/assignment.js b/assignment.js",
|
||||
"index 6882fe5..fb4cba4 100644",
|
||||
"index 6882fe5e..fb4cba44 100644",
|
||||
"--- a/assignment.js",
|
||||
"+++ b/assignment.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" x = 0;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "6a5eb86577a86881fdd53c3db17dd589617b887e..79ca8610276bd0cc32d257702e20ec268187f1b6"
|
||||
"shas": "aa1627d9ad30ddc96644440396be830160280595..ed0eb692d90f44c893700d15456f02b82c5adb89"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-assignment-delete-insert-test",
|
||||
@ -132,7 +132,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/assignment.js b/assignment.js",
|
||||
"index fb4cba4..42e16c6 100644",
|
||||
"index fb4cba44..42e16c61 100644",
|
||||
"--- a/assignment.js",
|
||||
"+++ b/assignment.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -142,7 +142,7 @@
|
||||
" x = 0;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "79ca8610276bd0cc32d257702e20ec268187f1b6..c3da25392def8e82aaf0179cdd8cc51849d805c8"
|
||||
"shas": "ed0eb692d90f44c893700d15456f02b82c5adb89..9c07d74d31da21c5ed0bb307a9b11a96e2da6f60"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-assignment-replacement-test",
|
||||
@ -185,7 +185,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/assignment.js b/assignment.js",
|
||||
"index 42e16c6..fb4cba4 100644",
|
||||
"index 42e16c61..fb4cba44 100644",
|
||||
"--- a/assignment.js",
|
||||
"+++ b/assignment.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -195,7 +195,7 @@
|
||||
" x = 0;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "c3da25392def8e82aaf0179cdd8cc51849d805c8..be4979757f9464e59b4b7fb7dbdce17f4f362029"
|
||||
"shas": "9c07d74d31da21c5ed0bb307a9b11a96e2da6f60..bb29b11c0519aee4b1469d0510963e5d9f846e97"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-assignment-delete-replacement-test",
|
||||
@ -256,7 +256,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/assignment.js b/assignment.js",
|
||||
"index fb4cba4..11fe15d 100644",
|
||||
"index fb4cba44..11fe15d7 100644",
|
||||
"--- a/assignment.js",
|
||||
"+++ b/assignment.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -266,7 +266,7 @@
|
||||
"+x = 1;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "be4979757f9464e59b4b7fb7dbdce17f4f362029..592d4d9a24fe20282bbaa1cf66bbe20959d47ae5"
|
||||
"shas": "bb29b11c0519aee4b1469d0510963e5d9f846e97..daadf6daec7e50a39f21429277fb77556dfc202a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-assignment-delete-test",
|
||||
@ -297,7 +297,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/assignment.js b/assignment.js",
|
||||
"index 11fe15d..198b8f8 100644",
|
||||
"index 11fe15d7..198b8f89 100644",
|
||||
"--- a/assignment.js",
|
||||
"+++ b/assignment.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -305,7 +305,7 @@
|
||||
" x = 1;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "592d4d9a24fe20282bbaa1cf66bbe20959d47ae5..f0b77709f5be6c1d671a943d73b8fbb12344762e"
|
||||
"shas": "daadf6daec7e50a39f21429277fb77556dfc202a..f86e9f7675d8d6ad3fb9f6a2703e475b6eb24a8e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-assignment-delete-rest-test",
|
||||
@ -336,12 +336,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/assignment.js b/assignment.js",
|
||||
"index 198b8f8..e69de29 100644",
|
||||
"index 198b8f89..e69de29b 100644",
|
||||
"--- a/assignment.js",
|
||||
"+++ b/assignment.js",
|
||||
"@@ -1 +0,0 @@",
|
||||
"-x = 1;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "f0b77709f5be6c1d671a943d73b8fbb12344762e..83f3153b76f49e077237997c965dc6f3c3a159bc"
|
||||
"shas": "f86e9f7675d8d6ad3fb9f6a2703e475b6eb24a8e..8971dc3263a4d4060368d23937d32f6df7c06d16"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
||||
"index e69de29..021cf6a 100644",
|
||||
"index e69de29b..021cf6ad 100644",
|
||||
"--- a/bitwise-operator.js",
|
||||
"+++ b/bitwise-operator.js",
|
||||
"@@ -0,0 +1 @@",
|
||||
"+i >> j;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "5edf134e2ccb0fa1cd27b2e07b4279575f1a5f0d..e2e6f5b9a61fa806befb17711cf3ae52dd20f725"
|
||||
"shas": "e94c1e8feb32d2d104b927720bdde792ff068d76..e453aac09a219d4a9bbfc8eb2198ca734ae00e5f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-bitwise-operator-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
||||
"index 021cf6a..3e0b6c1 100644",
|
||||
"index 021cf6ad..3e0b6c17 100644",
|
||||
"--- a/bitwise-operator.js",
|
||||
"+++ b/bitwise-operator.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" i >> j;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "e2e6f5b9a61fa806befb17711cf3ae52dd20f725..de455af0e3ab990d8f20a4555d4bf28324551ed0"
|
||||
"shas": "e453aac09a219d4a9bbfc8eb2198ca734ae00e5f..babfc0072ddedb22fe570ce2954f9a6799436609"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-bitwise-operator-delete-insert-test",
|
||||
@ -132,7 +132,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
||||
"index 3e0b6c1..18853d1 100644",
|
||||
"index 3e0b6c17..18853d16 100644",
|
||||
"--- a/bitwise-operator.js",
|
||||
"+++ b/bitwise-operator.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -142,7 +142,7 @@
|
||||
" i >> j;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "de455af0e3ab990d8f20a4555d4bf28324551ed0..59f5fd5cc14501c063c3ec3b9563503a4f22537b"
|
||||
"shas": "babfc0072ddedb22fe570ce2954f9a6799436609..eafaa544de1815bbd0cc673d54267631871a450e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-bitwise-operator-replacement-test",
|
||||
@ -185,7 +185,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
||||
"index 18853d1..3e0b6c1 100644",
|
||||
"index 18853d16..3e0b6c17 100644",
|
||||
"--- a/bitwise-operator.js",
|
||||
"+++ b/bitwise-operator.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -195,7 +195,7 @@
|
||||
" i >> j;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "59f5fd5cc14501c063c3ec3b9563503a4f22537b..24328d0f069d5e61a5926bedf6e0a074361d7477"
|
||||
"shas": "eafaa544de1815bbd0cc673d54267631871a450e..2b2bac368020ecb0f7c9b891c520a5dfc3ed91a0"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-bitwise-operator-delete-replacement-test",
|
||||
@ -256,7 +256,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
||||
"index 3e0b6c1..ee7d8de 100644",
|
||||
"index 3e0b6c17..ee7d8dec 100644",
|
||||
"--- a/bitwise-operator.js",
|
||||
"+++ b/bitwise-operator.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -266,7 +266,7 @@
|
||||
"+i >> k;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "24328d0f069d5e61a5926bedf6e0a074361d7477..083807f60ce4fd39ee7612cb97e2dc2351a09203"
|
||||
"shas": "2b2bac368020ecb0f7c9b891c520a5dfc3ed91a0..30f79b75cc8c70e6ecfdfeeab06764bb85eb333f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-bitwise-operator-delete-test",
|
||||
@ -297,7 +297,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
||||
"index ee7d8de..2800c8c 100644",
|
||||
"index ee7d8dec..2800c8c8 100644",
|
||||
"--- a/bitwise-operator.js",
|
||||
"+++ b/bitwise-operator.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -305,7 +305,7 @@
|
||||
" i >> k;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "083807f60ce4fd39ee7612cb97e2dc2351a09203..1bceab9d521db6e74ccfca50dae11d9ac030a4bc"
|
||||
"shas": "30f79b75cc8c70e6ecfdfeeab06764bb85eb333f..c1bb98a01fedb6e04efbe757fea478986c343761"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-bitwise-operator-delete-rest-test",
|
||||
@ -336,12 +336,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/bitwise-operator.js b/bitwise-operator.js",
|
||||
"index 2800c8c..e69de29 100644",
|
||||
"index 2800c8c8..e69de29b 100644",
|
||||
"--- a/bitwise-operator.js",
|
||||
"+++ b/bitwise-operator.js",
|
||||
"@@ -1 +0,0 @@",
|
||||
"-i >> k;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "1bceab9d521db6e74ccfca50dae11d9ac030a4bc..4e47562dd59646a6c6c55ab138660495394bc5c9"
|
||||
"shas": "c1bb98a01fedb6e04efbe757fea478986c343761..46ec065b158574c8c24c03f95bd0b21ae4388b86"
|
||||
}]
|
||||
|
@ -34,7 +34,7 @@
|
||||
"+i || j;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "dcb8509973be89c9c4f7239f90bc27b29abe6886..7278cbb3e1324846d217ed8b5d96d30b1d23c9e1"
|
||||
"shas": "68249c6faa764e8f289c3ae7afb4c98267e953d8..3cc5dca41d21643bc3f747a52b88c31e6563d6ed"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-boolean-operator-replacement-insert-test",
|
||||
@ -89,7 +89,7 @@
|
||||
" i || j;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "7278cbb3e1324846d217ed8b5d96d30b1d23c9e1..dcbb69024b9472b7573c1284b9f2a9ba3c0bf241"
|
||||
"shas": "3cc5dca41d21643bc3f747a52b88c31e6563d6ed..48f0f67eaa06dba7fc3c8f381f380b23e171cd43"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-boolean-operator-delete-insert-test",
|
||||
@ -142,7 +142,7 @@
|
||||
" i || j;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "dcbb69024b9472b7573c1284b9f2a9ba3c0bf241..1d4a46d71e3418079b81f3b494ead0ddec0770ef"
|
||||
"shas": "48f0f67eaa06dba7fc3c8f381f380b23e171cd43..253a952891f8ab38a872a1544b27d7372b223bcb"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-boolean-operator-replacement-test",
|
||||
@ -195,7 +195,7 @@
|
||||
" i || j;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "1d4a46d71e3418079b81f3b494ead0ddec0770ef..59bf7426522f2e5a40fd2fbd5e9adc595c4a6f26"
|
||||
"shas": "253a952891f8ab38a872a1544b27d7372b223bcb..6cfd731b9477f9b2c190e140a112ecf6854b4bef"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-boolean-operator-delete-replacement-test",
|
||||
@ -266,7 +266,7 @@
|
||||
"+i && j;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "59bf7426522f2e5a40fd2fbd5e9adc595c4a6f26..2aff614351987457ce3a0ce900610cf622e1765e"
|
||||
"shas": "6cfd731b9477f9b2c190e140a112ecf6854b4bef..c7af49d44705dcf8ee38e13159ddc09eea64f683"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-boolean-operator-delete-test",
|
||||
@ -305,7 +305,7 @@
|
||||
" i && j;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "2aff614351987457ce3a0ce900610cf622e1765e..df4a601cd0eea4d8db63a7f7097753ae9fbd9f4b"
|
||||
"shas": "c7af49d44705dcf8ee38e13159ddc09eea64f683..47df410d73472fbeb7cf2ebef0d6f21096395e51"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-boolean-operator-delete-rest-test",
|
||||
@ -343,5 +343,5 @@
|
||||
"-i && j;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "df4a601cd0eea4d8db63a7f7097753ae9fbd9f4b..1d234a84ee270c0d6a329fcdcbc065e50bed813b"
|
||||
"shas": "47df410d73472fbeb7cf2ebef0d6f21096395e51..e94c1e8feb32d2d104b927720bdde792ff068d76"
|
||||
}]
|
||||
|
@ -34,7 +34,7 @@
|
||||
"+for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "0e81c586bea55e0eeb46e3422b25ccba96c7d9ea..d86036d38621253021f5fde6256a16a5d58ffd49"
|
||||
"shas": "7b8267eabe246347b009d08c9100f36a568a81a6..28130e2a01e50fed72c5d18d6ccd586431a83bfc"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-break-insert-test",
|
||||
@ -88,7 +88,7 @@
|
||||
"+for (i = 0; i < 10; i++) { if (i === 4) { break; }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "d86036d38621253021f5fde6256a16a5d58ffd49..c2a0cadf8477ba2c7525fba7c37923afd994ad15"
|
||||
"shas": "28130e2a01e50fed72c5d18d6ccd586431a83bfc..317d999d5da052390013abf0f427fd789c566257"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-break-replacement-test",
|
||||
@ -142,7 +142,7 @@
|
||||
"+for (i = 0; i < 10; i++) { if (i === 4) { continue; }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "c2a0cadf8477ba2c7525fba7c37923afd994ad15..3bcd48f5d5894250de6349c4ca5272b3ae92fa6d"
|
||||
"shas": "317d999d5da052390013abf0f427fd789c566257..9fe6a556575e0705efd0de4d67f1868e143e16d0"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-break-delete-replacement-test",
|
||||
@ -196,7 +196,7 @@
|
||||
"+for (i = 0; i < 10; i++) { if (i === 4) { break; }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "3bcd48f5d5894250de6349c4ca5272b3ae92fa6d..bbabc7d7ad65f9ab05f74f83c6e5777a3eeb4be2"
|
||||
"shas": "9fe6a556575e0705efd0de4d67f1868e143e16d0..7ecb84d91df841eddd510ab0c991ae5ca71b69f6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-break-delete-insert-test",
|
||||
@ -250,7 +250,7 @@
|
||||
"+for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "bbabc7d7ad65f9ab05f74f83c6e5777a3eeb4be2..016996f57081dda9f5b4ebdd801853944017b617"
|
||||
"shas": "7ecb84d91df841eddd510ab0c991ae5ca71b69f6..2d0483e720373f442c34a5f9c1a097c6a318a7d8"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-break-teardown-test",
|
||||
@ -288,5 +288,5 @@
|
||||
"-for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "016996f57081dda9f5b4ebdd801853944017b617..7b31459c5a9378f4fe26f4e3e6d5c1fd3b6aee23"
|
||||
"shas": "2d0483e720373f442c34a5f9c1a097c6a318a7d8..d0acf2e1ee4c3ff99054d1cd40885f62e64b87be"
|
||||
}]
|
||||
|
@ -16,7 +16,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'this.map(…)' method call"
|
||||
"summary": "Added the 'this.map(…)' function call"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
|
||||
"index e69de29..ce9ee1e 100644",
|
||||
"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": "1512ae1cef2a096ce2723ce98334e4ce0e4bc82b..2a014ee8fd6ea4f8ce5b6bae0ca35a4fa6462deb"
|
||||
"shas": "e97f568708cabfc40035c206b04bf5b6abf6e5bd..f14828a645c440584da5db2b188a4155d63843e0"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-callbacks-replacement-insert-test",
|
||||
@ -54,7 +54,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'this.reduce(…)' method call"
|
||||
"summary": "Added the 'this.reduce(…)' function call"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -69,7 +69,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'this.map(…)' method call"
|
||||
"summary": "Added the 'this.map(…)' function call"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
|
||||
"index ce9ee1e..acba744 100644",
|
||||
"index ce9ee1ed..acba744a 100644",
|
||||
"--- a/chained-callbacks.js",
|
||||
"+++ b/chained-callbacks.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" this.map(function (a) { return a.b; })"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "2a014ee8fd6ea4f8ce5b6bae0ca35a4fa6462deb..6a6e1ae99abc9cae5f8ac31aac43836380944603"
|
||||
"shas": "f14828a645c440584da5db2b188a4155d63843e0..861d17aed5329b7a49e2f97ae261307fe9b4431e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-callbacks-delete-insert-test",
|
||||
@ -121,7 +121,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'reduce' identifier with the 'map' identifier in the this.map(…) method call"
|
||||
"summary": "Replaced the 'reduce' identifier with the 'map' identifier in the this.map(…) function call"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -148,7 +148,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.map(…) method call"
|
||||
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.map(…) function call"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -175,7 +175,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.map(…) method call"
|
||||
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.map(…) function call"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -186,7 +186,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
|
||||
"index acba744..7390534 100644",
|
||||
"index acba744a..73905343 100644",
|
||||
"--- a/chained-callbacks.js",
|
||||
"+++ b/chained-callbacks.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -196,7 +196,7 @@
|
||||
" this.map(function (a) { return a.b; })"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "6a6e1ae99abc9cae5f8ac31aac43836380944603..c86429cb689c74e2ce3988c8bc257a365734cbe3"
|
||||
"shas": "861d17aed5329b7a49e2f97ae261307fe9b4431e..e2193800198a04799244dc9f70907be929bdc41f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-callbacks-replacement-test",
|
||||
@ -228,7 +228,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'map' identifier with the 'reduce' identifier in the this.reduce(…) method call"
|
||||
"summary": "Replaced the 'map' identifier with the 'reduce' identifier in the this.reduce(…) function call"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -255,7 +255,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.reduce(…) method call"
|
||||
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.reduce(…) function call"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -282,7 +282,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.reduce(…) method call"
|
||||
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.reduce(…) function call"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -293,7 +293,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
|
||||
"index 7390534..acba744 100644",
|
||||
"index 73905343..acba744a 100644",
|
||||
"--- a/chained-callbacks.js",
|
||||
"+++ b/chained-callbacks.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -303,7 +303,7 @@
|
||||
" this.map(function (a) { return a.b; })"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "c86429cb689c74e2ce3988c8bc257a365734cbe3..c4df0b8afdd73cae6d89a9098ae38d9c3085dbb8"
|
||||
"shas": "e2193800198a04799244dc9f70907be929bdc41f..53dec994d0dc3b7c7bcc9249cab85a543ef25200"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-callbacks-delete-replacement-test",
|
||||
@ -323,7 +323,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'this.reduce(…)' method call"
|
||||
"summary": "Deleted the 'this.reduce(…)' function call"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -338,7 +338,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'this.map(…)' method call"
|
||||
"summary": "Deleted the 'this.map(…)' function call"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -353,7 +353,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Added the 'this.reduce(…)' method call"
|
||||
"summary": "Added the 'this.reduce(…)' function call"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -364,7 +364,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
|
||||
"index acba744..c4db432 100644",
|
||||
"index acba744a..c4db4326 100644",
|
||||
"--- a/chained-callbacks.js",
|
||||
"+++ b/chained-callbacks.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -374,7 +374,7 @@
|
||||
"+this.reduce(function (a) { return b.a; })"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "c4df0b8afdd73cae6d89a9098ae38d9c3085dbb8..8b7dbbb0ca20e47dfed24fb3eb3a790721d2e9d0"
|
||||
"shas": "53dec994d0dc3b7c7bcc9249cab85a543ef25200..294233550240c3b5f5b279f688cc1f0dd2416ceb"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-callbacks-delete-test",
|
||||
@ -394,7 +394,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'this.map(…)' method call"
|
||||
"summary": "Deleted the 'this.map(…)' function call"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -405,7 +405,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
|
||||
"index c4db432..e593419 100644",
|
||||
"index c4db4326..e5934198 100644",
|
||||
"--- a/chained-callbacks.js",
|
||||
"+++ b/chained-callbacks.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -413,7 +413,7 @@
|
||||
" this.reduce(function (a) { return b.a; })"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "8b7dbbb0ca20e47dfed24fb3eb3a790721d2e9d0..e2c2e86db834a0ab3c6006c6385e90d780851357"
|
||||
"shas": "294233550240c3b5f5b279f688cc1f0dd2416ceb..bc7658e860c11b717d322c7c38b7b5be70af8169"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-callbacks-delete-rest-test",
|
||||
@ -433,7 +433,7 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"summary": "Deleted the 'this.reduce(…)' method call"
|
||||
"summary": "Deleted the 'this.reduce(…)' function call"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -444,12 +444,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/chained-callbacks.js b/chained-callbacks.js",
|
||||
"index e593419..e69de29 100644",
|
||||
"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": "e2c2e86db834a0ab3c6006c6385e90d780851357..5ef42771e35b5af39f3befe137fedf40f174a5c7"
|
||||
"shas": "bc7658e860c11b717d322c7c38b7b5be70af8169..65ec4b91fc50d92244f898493564425dc91dec99"
|
||||
}]
|
||||
|
@ -34,7 +34,7 @@
|
||||
"+return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "b4a1b602905b005b1bfe48d8f78faebd8c9cf016..e4dd7ea96606956464809e9a3bcfdb81f318c39b"
|
||||
"shas": "c0d1f59dbc88b8a161e9dfa867107276f10b2898..b8c22790764e8661eb7f8d764e9b0af1b93cdd89"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-property-access-replacement-insert-test",
|
||||
@ -89,7 +89,7 @@
|
||||
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "e4dd7ea96606956464809e9a3bcfdb81f318c39b..6365577e012aa898ba1d2cc77d10eec1fb9a016d"
|
||||
"shas": "b8c22790764e8661eb7f8d764e9b0af1b93cdd89..63a6ea11f36663237346e70a138fd62524b9aef6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-property-access-delete-insert-test",
|
||||
@ -121,7 +121,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'otherDefer' identifier with the 'newDefer' identifier in the returned.promise().done(…) method call"
|
||||
"summary": "Replaced the 'otherDefer' identifier with the 'newDefer' identifier in the returned.promise().done(…) function call"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -148,7 +148,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'otherDefer' identifier with the 'newDefer' identifier in the returned.promise().done(…).fail(…) method call"
|
||||
"summary": "Replaced the 'otherDefer' identifier with the 'newDefer' identifier in the returned.promise().done(…).fail(…) function call"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -169,7 +169,7 @@
|
||||
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "6365577e012aa898ba1d2cc77d10eec1fb9a016d..8ab9cd6c506847581b2fc7f04124803cd344b3ff"
|
||||
"shas": "63a6ea11f36663237346e70a138fd62524b9aef6..1bbcdcf73d6865d9695b99b229ac793f118439a4"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-property-access-replacement-test",
|
||||
@ -201,7 +201,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'newDefer' identifier with the 'otherDefer' identifier in the returned.promise().done(…) method call"
|
||||
"summary": "Replaced the 'newDefer' identifier with the 'otherDefer' identifier in the returned.promise().done(…) function call"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -228,7 +228,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'newDefer' identifier with the 'otherDefer' identifier in the returned.promise().done(…).fail(…) method call"
|
||||
"summary": "Replaced the 'newDefer' identifier with the 'otherDefer' identifier in the returned.promise().done(…).fail(…) function call"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -249,7 +249,7 @@
|
||||
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "8ab9cd6c506847581b2fc7f04124803cd344b3ff..d535074522aa956a8ea7e8d943227d9d78775725"
|
||||
"shas": "1bbcdcf73d6865d9695b99b229ac793f118439a4..6b89d7a2b0d652938ed2c5f638d5091c6d8555d2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-property-access-delete-replacement-test",
|
||||
@ -320,7 +320,7 @@
|
||||
"+return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "d535074522aa956a8ea7e8d943227d9d78775725..b3f90f50ba0ea4d42e78ba37c176a4d69282fcd7"
|
||||
"shas": "6b89d7a2b0d652938ed2c5f638d5091c6d8555d2..99c802ed801ddf5a24e177c5a08fc18f2658c6ce"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-property-access-delete-test",
|
||||
@ -359,7 +359,7 @@
|
||||
" return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "b3f90f50ba0ea4d42e78ba37c176a4d69282fcd7..6dd90e85a905d3c205cd42bcbedaa3d50110d426"
|
||||
"shas": "99c802ed801ddf5a24e177c5a08fc18f2658c6ce..6b0b1796a40ecd246a53b69ffa84e15966547ff9"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-chained-property-access-delete-rest-test",
|
||||
@ -397,5 +397,5 @@
|
||||
"-return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "6dd90e85a905d3c205cd42bcbedaa3d50110d426..7b26c97829302e6f2c2fc76d9a1e5dc25caf58d9"
|
||||
"shas": "6b0b1796a40ecd246a53b69ffa84e15966547ff9..e97f568708cabfc40035c206b04bf5b6abf6e5bd"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/class.js b/class.js",
|
||||
"index e69de29..8f6ae64 100644",
|
||||
"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": "f6dfeb42af9db740677fd60341ea39da711f7c81..f071d25d12bb0086a285449efbe5cfaeeed8e436"
|
||||
"shas": "d9d6e19c015a3f2dbb9d04d3867b13889dd798ac..05fc0916c3ad9408a0e1b0fd90bb83d43628e892"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-class-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/class.js b/class.js",
|
||||
"index 8f6ae64..b509437 100644",
|
||||
"index 8f6ae64d..b509437f 100644",
|
||||
"--- a/class.js",
|
||||
"+++ b/class.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "f071d25d12bb0086a285449efbe5cfaeeed8e436..ba736a07888eb4991323c035f2bf78fe1650ea56"
|
||||
"shas": "05fc0916c3ad9408a0e1b0fd90bb83d43628e892..4204d9bb3c5c1cfab6dc2b6af925b0666d015cb0"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-class-delete-insert-test",
|
||||
@ -192,7 +192,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/class.js b/class.js",
|
||||
"index b509437..c4f5c91 100644",
|
||||
"index b509437f..c4f5c91c 100644",
|
||||
"--- a/class.js",
|
||||
"+++ b/class.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -202,7 +202,7 @@
|
||||
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "ba736a07888eb4991323c035f2bf78fe1650ea56..c99d7b8dc9cff808ef1e6010caa4573ad1694d9b"
|
||||
"shas": "4204d9bb3c5c1cfab6dc2b6af925b0666d015cb0..18b9de02fda94811dad14657d61160c8943b6576"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-class-replacement-test",
|
||||
@ -305,7 +305,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/class.js b/class.js",
|
||||
"index c4f5c91..b509437 100644",
|
||||
"index c4f5c91c..b509437f 100644",
|
||||
"--- a/class.js",
|
||||
"+++ b/class.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -315,7 +315,7 @@
|
||||
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "c99d7b8dc9cff808ef1e6010caa4573ad1694d9b..75a0caa880f62a0706ff723f555a9ec1f0c53c29"
|
||||
"shas": "18b9de02fda94811dad14657d61160c8943b6576..c4c35843b5c7aa3d018d196d8fb86f2495b7881c"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-class-delete-replacement-test",
|
||||
@ -376,7 +376,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/class.js b/class.js",
|
||||
"index b509437..b1ef404 100644",
|
||||
"index b509437f..b1ef404f 100644",
|
||||
"--- a/class.js",
|
||||
"+++ b/class.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -386,7 +386,7 @@
|
||||
"+class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "75a0caa880f62a0706ff723f555a9ec1f0c53c29..4231a3b306d145aa37ceb879ef6f8da6221e54b8"
|
||||
"shas": "c4c35843b5c7aa3d018d196d8fb86f2495b7881c..af0a7a4e55d3b67109f4455766d91410a6113c76"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-class-delete-test",
|
||||
@ -417,7 +417,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/class.js b/class.js",
|
||||
"index b1ef404..2c17f72 100644",
|
||||
"index b1ef404f..2c17f72f 100644",
|
||||
"--- a/class.js",
|
||||
"+++ b/class.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -425,7 +425,7 @@
|
||||
" class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "4231a3b306d145aa37ceb879ef6f8da6221e54b8..d5627235989da4028cfcb15c4b1ee2bdc544fd31"
|
||||
"shas": "af0a7a4e55d3b67109f4455766d91410a6113c76..417e7b1dc2606c4235a0fecf05b8d1c3c170f661"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-class-delete-rest-test",
|
||||
@ -456,12 +456,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/class.js b/class.js",
|
||||
"index 2c17f72..e69de29 100644",
|
||||
"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": "d5627235989da4028cfcb15c4b1ee2bdc544fd31..654a538b26c9b4c8637e6c2e4cd497c93e690310"
|
||||
"shas": "417e7b1dc2606c4235a0fecf05b8d1c3c170f661..89b3d4cd2ef38999c223c69de3011646b1f43c24"
|
||||
}]
|
||||
|
@ -42,14 +42,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comma-operator.js b/comma-operator.js",
|
||||
"index e69de29..cff019f 100644",
|
||||
"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": "ec86aaba01801d01aca70fd31403642be1e2d438..b0a5f928a8a4594bb176a56275c43ccab6e2e2a0"
|
||||
"shas": "a51b44e93b10645f205b119e37a93f384ee4d64c..ac141d1975c9e286bd16621b4b3ae94bb090d770"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comma-operator-replacement-insert-test",
|
||||
@ -110,7 +110,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comma-operator.js b/comma-operator.js",
|
||||
"index cff019f..93ece10 100644",
|
||||
"index cff019f3..93ece10f 100644",
|
||||
"--- a/comma-operator.js",
|
||||
"+++ b/comma-operator.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -119,7 +119,7 @@
|
||||
" a = 1, b = 2;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "b0a5f928a8a4594bb176a56275c43ccab6e2e2a0..315b46ccdb9a45c374b4ed1cc51a062d74c13a78"
|
||||
"shas": "ac141d1975c9e286bd16621b4b3ae94bb090d770..78f0ad9203b9d8f4a9265f3187898608a6b7b22a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comma-operator-delete-insert-test",
|
||||
@ -180,7 +180,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comma-operator.js b/comma-operator.js",
|
||||
"index 93ece10..f738c2d 100644",
|
||||
"index 93ece10f..f738c2db 100644",
|
||||
"--- a/comma-operator.js",
|
||||
"+++ b/comma-operator.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -190,7 +190,7 @@
|
||||
" a = 1, b = 2;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "315b46ccdb9a45c374b4ed1cc51a062d74c13a78..30cf69eb0cc5543fe53be82f29cd0e0371e30cd1"
|
||||
"shas": "78f0ad9203b9d8f4a9265f3187898608a6b7b22a..ef480cfe1b76305d27d2601402153b0c1db0a8c6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comma-operator-replacement-test",
|
||||
@ -251,7 +251,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comma-operator.js b/comma-operator.js",
|
||||
"index f738c2d..93ece10 100644",
|
||||
"index f738c2db..93ece10f 100644",
|
||||
"--- a/comma-operator.js",
|
||||
"+++ b/comma-operator.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -261,7 +261,7 @@
|
||||
" a = 1, b = 2;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "30cf69eb0cc5543fe53be82f29cd0e0371e30cd1..a454c132f64a253a51cbf1a1455e74fca9343c23"
|
||||
"shas": "ef480cfe1b76305d27d2601402153b0c1db0a8c6..7040e05f7443780ecfd99ae3c2a6bf0f62a9c9c3"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comma-operator-delete-replacement-test",
|
||||
@ -337,7 +337,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comma-operator.js b/comma-operator.js",
|
||||
"index 93ece10..297e28d 100644",
|
||||
"index 93ece10f..297e28dd 100644",
|
||||
"--- a/comma-operator.js",
|
||||
"+++ b/comma-operator.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -347,7 +347,7 @@
|
||||
"+c = {d: (3, 4 + 5, 6)};"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "a454c132f64a253a51cbf1a1455e74fca9343c23..db24ea61ad00e73c91b0a4b616f333a5eac48f29"
|
||||
"shas": "7040e05f7443780ecfd99ae3c2a6bf0f62a9c9c3..1733573e2a24dd8395474b1fbe2ffbf73a129dcb"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comma-operator-delete-test",
|
||||
@ -393,7 +393,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comma-operator.js b/comma-operator.js",
|
||||
"index 297e28d..421bc7f 100644",
|
||||
"index 297e28dd..421bc7fe 100644",
|
||||
"--- a/comma-operator.js",
|
||||
"+++ b/comma-operator.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -401,7 +401,7 @@
|
||||
" c = {d: (3, 4 + 5, 6)};"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "db24ea61ad00e73c91b0a4b616f333a5eac48f29..4ec8128c2ab11f7bf00c002d0fec6c8601b14c16"
|
||||
"shas": "1733573e2a24dd8395474b1fbe2ffbf73a129dcb..94c3384b441a218b1720ef3c6934e69c172d938d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comma-operator-delete-rest-test",
|
||||
@ -432,12 +432,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comma-operator.js b/comma-operator.js",
|
||||
"index 421bc7f..e69de29 100644",
|
||||
"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": "4ec8128c2ab11f7bf00c002d0fec6c8601b14c16..0ccf8092231ebc8ac92cc60fe614f1681bc03a89"
|
||||
"shas": "94c3384b441a218b1720ef3c6934e69c172d938d..4e62b822a53dcb5dd4c87ffe6ce9db53015fdc68"
|
||||
}]
|
||||
|
@ -9,14 +9,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comment.js b/comment.js",
|
||||
"index e69de29..a5821d2 100644",
|
||||
"index e69de29b..a5821d24 100644",
|
||||
"--- a/comment.js",
|
||||
"+++ b/comment.js",
|
||||
"@@ -0,0 +1 @@",
|
||||
"+// This is a property"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "81bc4513ad3979452e9e95586a5fbc9ca66eeadc..522a93132b55605393a0f7a5421f3d1f7b0d4a8c"
|
||||
"shas": "56b3ef654938c8fc1c02e365cb518f170511a823..9330732da3f60c8e6437c4d11d79aed78a791b04"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comment-replacement-insert-test",
|
||||
@ -29,7 +29,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comment.js b/comment.js",
|
||||
"index a5821d2..761aa7a 100644",
|
||||
"index a5821d24..761aa7a3 100644",
|
||||
"--- a/comment.js",
|
||||
"+++ b/comment.js",
|
||||
"@@ -1 +1,5 @@",
|
||||
@ -40,7 +40,7 @@
|
||||
" // This is a property"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "522a93132b55605393a0f7a5421f3d1f7b0d4a8c..f0aa09e8712b14d61160b16073cac5fbd0276038"
|
||||
"shas": "9330732da3f60c8e6437c4d11d79aed78a791b04..c08e371085c5af8d5e11d734ba46ffbbc4d8edbf"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comment-delete-insert-test",
|
||||
@ -53,7 +53,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comment.js b/comment.js",
|
||||
"index 761aa7a..3b33406 100644",
|
||||
"index 761aa7a3..3b33406a 100644",
|
||||
"--- a/comment.js",
|
||||
"+++ b/comment.js",
|
||||
"@@ -1,5 +1,3 @@",
|
||||
@ -65,7 +65,7 @@
|
||||
" // This is a property"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "f0aa09e8712b14d61160b16073cac5fbd0276038..9402b254de81dabcddcbd6d7308911822b6f0f59"
|
||||
"shas": "c08e371085c5af8d5e11d734ba46ffbbc4d8edbf..2f680ffad4edd7e2631d6b2a03d73a6f9ed66813"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comment-replacement-test",
|
||||
@ -78,7 +78,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comment.js b/comment.js",
|
||||
"index 3b33406..761aa7a 100644",
|
||||
"index 3b33406a..761aa7a3 100644",
|
||||
"--- a/comment.js",
|
||||
"+++ b/comment.js",
|
||||
"@@ -1,3 +1,5 @@",
|
||||
@ -90,7 +90,7 @@
|
||||
" // This is a property"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "9402b254de81dabcddcbd6d7308911822b6f0f59..ba788116c40403584cd03df9976350810a9b1162"
|
||||
"shas": "2f680ffad4edd7e2631d6b2a03d73a6f9ed66813..95bdc17204a7e6522cbf0dd0e985cd35865c6f7d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comment-delete-replacement-test",
|
||||
@ -103,7 +103,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comment.js b/comment.js",
|
||||
"index 761aa7a..c2a8148 100644",
|
||||
"index 761aa7a3..c2a8148a 100644",
|
||||
"--- a/comment.js",
|
||||
"+++ b/comment.js",
|
||||
"@@ -1,5 +1,4 @@",
|
||||
@ -115,7 +115,7 @@
|
||||
"-// This is a property"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "ba788116c40403584cd03df9976350810a9b1162..05a2041be1630b8a7309163d4b863cd8966adbe0"
|
||||
"shas": "95bdc17204a7e6522cbf0dd0e985cd35865c6f7d..22fae60a84e7c276dac1afcb316a72a7ae530c37"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comment-delete-test",
|
||||
@ -128,7 +128,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comment.js b/comment.js",
|
||||
"index c2a8148..7c74dcd 100644",
|
||||
"index c2a8148a..7c74dcdf 100644",
|
||||
"--- a/comment.js",
|
||||
"+++ b/comment.js",
|
||||
"@@ -1,4 +1,3 @@",
|
||||
@ -138,7 +138,7 @@
|
||||
" */"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "05a2041be1630b8a7309163d4b863cd8966adbe0..28ae9fb48ab99b60a709d3168a82f53017fa27a0"
|
||||
"shas": "22fae60a84e7c276dac1afcb316a72a7ae530c37..6273138826febf9dd2611fcb51bb643606b284be"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-comment-delete-rest-test",
|
||||
@ -151,7 +151,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/comment.js b/comment.js",
|
||||
"index 7c74dcd..e69de29 100644",
|
||||
"index 7c74dcdf..e69de29b 100644",
|
||||
"--- a/comment.js",
|
||||
"+++ b/comment.js",
|
||||
"@@ -1,3 +0,0 @@",
|
||||
@ -160,5 +160,5 @@
|
||||
"-*/"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "28ae9fb48ab99b60a709d3168a82f53017fa27a0..8f7edd21ecef61769b82fb5a60a881f31ce30a01"
|
||||
"shas": "6273138826febf9dd2611fcb51bb643606b284be..20109cf62d65353fadfe9965edbf1f9e875db9c4"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/constructor-call.js b/constructor-call.js",
|
||||
"index e69de29..9d723b9 100644",
|
||||
"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": "b1ed87edc6bf561edc524058ab781a95970a3258..692f777ed1db0b3284bd2728f6c651425e20ab34"
|
||||
"shas": "bc8f6203c7c5033d706c0155313d250aff41b6ce..3caf8ac9c67ede5f4ca73fa8f4ce3fd50f5b4760"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-constructor-call-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/constructor-call.js b/constructor-call.js",
|
||||
"index 9d723b9..2c91b11 100644",
|
||||
"index 9d723b91..2c91b115 100644",
|
||||
"--- a/constructor-call.js",
|
||||
"+++ b/constructor-call.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" new module.Klass(1, \"two\");"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "692f777ed1db0b3284bd2728f6c651425e20ab34..e4d96364ed5caab5be836020193ea527a6cd6e55"
|
||||
"shas": "3caf8ac9c67ede5f4ca73fa8f4ce3fd50f5b4760..2e8198e081b41db8e2acbf111fe27f6ad6485cb5"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-constructor-call-delete-insert-test",
|
||||
@ -121,7 +121,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"three\" string with the \"two\" string in the module.Klass(1, \"two\") method call"
|
||||
"summary": "Replaced the \"three\" string with the \"two\" string in the module.Klass(1, \"two\") function call"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -132,7 +132,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/constructor-call.js b/constructor-call.js",
|
||||
"index 2c91b11..892f542 100644",
|
||||
"index 2c91b115..892f5425 100644",
|
||||
"--- a/constructor-call.js",
|
||||
"+++ b/constructor-call.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -142,7 +142,7 @@
|
||||
" new module.Klass(1, \"two\");"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "e4d96364ed5caab5be836020193ea527a6cd6e55..c5f5c7389717f787423d9698a3e0593a965ffbd5"
|
||||
"shas": "2e8198e081b41db8e2acbf111fe27f6ad6485cb5..8b2e189f8eadc258f196519389b45657f5067553"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-constructor-call-replacement-test",
|
||||
@ -174,7 +174,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the \"two\" string with the \"three\" string in the module.Klass(1, \"three\") method call"
|
||||
"summary": "Replaced the \"two\" string with the \"three\" string in the module.Klass(1, \"three\") function call"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -185,7 +185,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/constructor-call.js b/constructor-call.js",
|
||||
"index 892f542..2c91b11 100644",
|
||||
"index 892f5425..2c91b115 100644",
|
||||
"--- a/constructor-call.js",
|
||||
"+++ b/constructor-call.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -195,7 +195,7 @@
|
||||
" new module.Klass(1, \"two\");"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "c5f5c7389717f787423d9698a3e0593a965ffbd5..d17799b023d4e85c6e1d97220121da96a1323970"
|
||||
"shas": "8b2e189f8eadc258f196519389b45657f5067553..27f7005c773c3ace00b6f45987dfd72b9afa8144"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-constructor-call-delete-replacement-test",
|
||||
@ -256,7 +256,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/constructor-call.js b/constructor-call.js",
|
||||
"index 2c91b11..cd77b98 100644",
|
||||
"index 2c91b115..cd77b985 100644",
|
||||
"--- a/constructor-call.js",
|
||||
"+++ b/constructor-call.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -266,7 +266,7 @@
|
||||
"+new module.Klass(1, \"three\");"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "d17799b023d4e85c6e1d97220121da96a1323970..ddc3d491ed287b5aee714bedf5c2de5ba46770ce"
|
||||
"shas": "27f7005c773c3ace00b6f45987dfd72b9afa8144..c9a6ceeda21a46940f061c9a31e10160cfafa5bf"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-constructor-call-delete-test",
|
||||
@ -297,7 +297,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/constructor-call.js b/constructor-call.js",
|
||||
"index cd77b98..75f6a29 100644",
|
||||
"index cd77b985..75f6a29e 100644",
|
||||
"--- a/constructor-call.js",
|
||||
"+++ b/constructor-call.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -305,7 +305,7 @@
|
||||
" new module.Klass(1, \"three\");"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "ddc3d491ed287b5aee714bedf5c2de5ba46770ce..e0a37e9237220e1382c4502fdfbbb4cc10cf04e0"
|
||||
"shas": "c9a6ceeda21a46940f061c9a31e10160cfafa5bf..d4e43daedb1bb2589ec006729907f9ed22855eb4"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-constructor-call-delete-rest-test",
|
||||
@ -336,12 +336,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/constructor-call.js b/constructor-call.js",
|
||||
"index 75f6a29..e69de29 100644",
|
||||
"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": "e0a37e9237220e1382c4502fdfbbb4cc10cf04e0..41ab7cb7dc378bf229f7a08f1a03c0676483f435"
|
||||
"shas": "d4e43daedb1bb2589ec006729907f9ed22855eb4..6c2a6d2038e58ffec3265d64973449c3c258d5ad"
|
||||
}]
|
||||
|
@ -34,7 +34,7 @@
|
||||
"+for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "7b31459c5a9378f4fe26f4e3e6d5c1fd3b6aee23..6f1f37c267e2d029c289f0fbcf27091ba3d1dec0"
|
||||
"shas": "d0acf2e1ee4c3ff99054d1cd40885f62e64b87be..e462b8742bc8299068fb433b43f25f19052e7ded"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-continue-insert-test",
|
||||
@ -88,7 +88,7 @@
|
||||
"+for (i = 0; i < 10; i++) { if (i === 4) { continue; }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "6f1f37c267e2d029c289f0fbcf27091ba3d1dec0..b23c299b2611ac212c2f335a44e9ffcfbe821ed4"
|
||||
"shas": "e462b8742bc8299068fb433b43f25f19052e7ded..53af971a479c713135ccf4d7e465f939604bbb6d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-continue-replacement-test",
|
||||
@ -142,7 +142,7 @@
|
||||
"+for (i = 0; i < 10; i++) { if (i === 4) { break; }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "b23c299b2611ac212c2f335a44e9ffcfbe821ed4..59f5084383702801c670c2d9738a4d78c93a0b0a"
|
||||
"shas": "53af971a479c713135ccf4d7e465f939604bbb6d..6bb94227de7471638516c4c9f9dde95c4b09f9b1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-continue-delete-replacement-test",
|
||||
@ -196,7 +196,7 @@
|
||||
"+for (i = 0; i < 10; i++) { if (i === 4) { continue; }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "59f5084383702801c670c2d9738a4d78c93a0b0a..ac045f406aaa05c9c85d6a20e527e2e62e99ce2c"
|
||||
"shas": "6bb94227de7471638516c4c9f9dde95c4b09f9b1..de9c6f44f672d452e72d7071ec536ee6de076efd"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-continue-delete-insert-test",
|
||||
@ -250,7 +250,7 @@
|
||||
"+for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "ac045f406aaa05c9c85d6a20e527e2e62e99ce2c..0c96f2e07ccf5ac404d4301a1a1e5ca9aa19b0b3"
|
||||
"shas": "de9c6f44f672d452e72d7071ec536ee6de076efd..49f94303b4c1ce4ec4b1d17b5dae99264c690b82"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-continue-teardown-test",
|
||||
@ -288,5 +288,5 @@
|
||||
"-for (i = 0; i < 10; i++) { if (i === 4) { }; i }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "0c96f2e07ccf5ac404d4301a1a1e5ca9aa19b0b3..b4a1b602905b005b1bfe48d8f78faebd8c9cf016"
|
||||
"shas": "49f94303b4c1ce4ec4b1d17b5dae99264c690b82..5e76eb9bd80785120da1d03a39846954694b0a87"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/delete-operator.js b/delete-operator.js",
|
||||
"index e69de29..c83346d 100644",
|
||||
"index e69de29b..c83346db 100644",
|
||||
"--- a/delete-operator.js",
|
||||
"+++ b/delete-operator.js",
|
||||
"@@ -0,0 +1 @@",
|
||||
"+delete thing['prop'];"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "b5645de0a9c0002d8f44d302c200dd88ff113f52..d1aaae4cff971b6bd6647c77427eab5789728dea"
|
||||
"shas": "40c56c88e1737aa2249e65bf6883ae636953376f..ee79dec332e4b19b503a3ffb045b1a62a316b947"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-delete-operator-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/delete-operator.js b/delete-operator.js",
|
||||
"index c83346d..7c8b990 100644",
|
||||
"index c83346db..7c8b9908 100644",
|
||||
"--- a/delete-operator.js",
|
||||
"+++ b/delete-operator.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" delete thing['prop'];"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "d1aaae4cff971b6bd6647c77427eab5789728dea..6444b777c04540c4e0229617aaadcf274dbe092f"
|
||||
"shas": "ee79dec332e4b19b503a3ffb045b1a62a316b947..a6f1cfe9edeaf12c99653aeaf65488509b500b4b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-delete-operator-delete-insert-test",
|
||||
@ -132,7 +132,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/delete-operator.js b/delete-operator.js",
|
||||
"index 7c8b990..f506e36 100644",
|
||||
"index 7c8b9908..f506e360 100644",
|
||||
"--- a/delete-operator.js",
|
||||
"+++ b/delete-operator.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -142,7 +142,7 @@
|
||||
" delete thing['prop'];"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "6444b777c04540c4e0229617aaadcf274dbe092f..ce69f237ff3cf767d8814435ffa957dadfeafa37"
|
||||
"shas": "a6f1cfe9edeaf12c99653aeaf65488509b500b4b..bc0464b08e597fe9799ba5c4dcd8790cee637929"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-delete-operator-replacement-test",
|
||||
@ -185,7 +185,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/delete-operator.js b/delete-operator.js",
|
||||
"index f506e36..7c8b990 100644",
|
||||
"index f506e360..7c8b9908 100644",
|
||||
"--- a/delete-operator.js",
|
||||
"+++ b/delete-operator.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -195,7 +195,7 @@
|
||||
" delete thing['prop'];"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "ce69f237ff3cf767d8814435ffa957dadfeafa37..71f7d6db03225cbfcc31f2bbd6ab589e9183c55c"
|
||||
"shas": "bc0464b08e597fe9799ba5c4dcd8790cee637929..c001371459eed13c17e2fde3051831a6186b887e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-delete-operator-delete-replacement-test",
|
||||
@ -256,7 +256,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/delete-operator.js b/delete-operator.js",
|
||||
"index 7c8b990..2dfe079 100644",
|
||||
"index 7c8b9908..2dfe0799 100644",
|
||||
"--- a/delete-operator.js",
|
||||
"+++ b/delete-operator.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -266,7 +266,7 @@
|
||||
"+delete thing.prop"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "71f7d6db03225cbfcc31f2bbd6ab589e9183c55c..629c83e185f6ed3c97976cc604dfb3c5f455c11b"
|
||||
"shas": "c001371459eed13c17e2fde3051831a6186b887e..aeacfbd49b5813111cb6d41d23e1eb0333940a73"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-delete-operator-delete-test",
|
||||
@ -297,7 +297,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/delete-operator.js b/delete-operator.js",
|
||||
"index 2dfe079..9d68dfb 100644",
|
||||
"index 2dfe0799..9d68dfb8 100644",
|
||||
"--- a/delete-operator.js",
|
||||
"+++ b/delete-operator.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -305,7 +305,7 @@
|
||||
" delete thing.prop"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "629c83e185f6ed3c97976cc604dfb3c5f455c11b..cf1e4c5bef7af55d4866d7be93a24a523edbbf4f"
|
||||
"shas": "aeacfbd49b5813111cb6d41d23e1eb0333940a73..8f89b423be7695216881a3cf0d40c047dc6b820a"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-delete-operator-delete-rest-test",
|
||||
@ -336,12 +336,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/delete-operator.js b/delete-operator.js",
|
||||
"index 9d68dfb..e69de29 100644",
|
||||
"index 9d68dfb8..e69de29b 100644",
|
||||
"--- a/delete-operator.js",
|
||||
"+++ b/delete-operator.js",
|
||||
"@@ -1 +0,0 @@",
|
||||
"-delete thing.prop"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "cf1e4c5bef7af55d4866d7be93a24a523edbbf4f..56f88d5286e94da2b11b7f6d0a35aa836d4f5921"
|
||||
"shas": "8f89b423be7695216881a3cf0d40c047dc6b820a..f90555ef6eea69038b7aa16bd074797419738b0a"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/do-while-statement.js b/do-while-statement.js",
|
||||
"index e69de29..d1ec804 100644",
|
||||
"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": "cd322134775da8db98f5a151ec8e2f5d9eddd3cf..2b58702fac7ff187b0f41a31b6fae16718c0ec4c"
|
||||
"shas": "34742f99e05bf8c6402929d23886b55c725e282e..88a8018f9d3b342ec0120c29471a321f87c39aa2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-do-while-statement-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/do-while-statement.js b/do-while-statement.js",
|
||||
"index d1ec804..d9a410d 100644",
|
||||
"index d1ec804b..d9a410d6 100644",
|
||||
"--- a/do-while-statement.js",
|
||||
"+++ b/do-while-statement.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" do { console.log(insert); } while (true);"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "2b58702fac7ff187b0f41a31b6fae16718c0ec4c..fa2041b0ae98229dc1322fda8ebaa2d98dd4b1f7"
|
||||
"shas": "88a8018f9d3b342ec0120c29471a321f87c39aa2..3879977790b874bb57ec4dc4597ba61abda7cf8d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-do-while-statement-delete-insert-test",
|
||||
@ -121,7 +121,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'replacement' identifier with the 'insert' identifier in the console.log(insert) method call"
|
||||
"summary": "Replaced the 'replacement' identifier with the 'insert' identifier in the console.log(insert) function call"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -159,7 +159,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/do-while-statement.js b/do-while-statement.js",
|
||||
"index d9a410d..4197835 100644",
|
||||
"index d9a410d6..41978359 100644",
|
||||
"--- a/do-while-statement.js",
|
||||
"+++ b/do-while-statement.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -169,7 +169,7 @@
|
||||
" do { console.log(insert); } while (true);"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "fa2041b0ae98229dc1322fda8ebaa2d98dd4b1f7..c7d0a76295cd609ed29a5c857ff2d885eefb3610"
|
||||
"shas": "3879977790b874bb57ec4dc4597ba61abda7cf8d..df9f4f04301d1eb7046b6fba2afa513beab2da76"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-do-while-statement-replacement-test",
|
||||
@ -201,7 +201,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"summary": "Replaced the 'insert' identifier with the 'replacement' identifier in the console.log(replacement) method call"
|
||||
"summary": "Replaced the 'insert' identifier with the 'replacement' identifier in the console.log(replacement) function call"
|
||||
},
|
||||
{
|
||||
"span": {
|
||||
@ -239,7 +239,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/do-while-statement.js b/do-while-statement.js",
|
||||
"index 4197835..d9a410d 100644",
|
||||
"index 41978359..d9a410d6 100644",
|
||||
"--- a/do-while-statement.js",
|
||||
"+++ b/do-while-statement.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -249,7 +249,7 @@
|
||||
" do { console.log(insert); } while (true);"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "c7d0a76295cd609ed29a5c857ff2d885eefb3610..8887ecec6e5dc8852e1f29ffe74c0b79c304e04e"
|
||||
"shas": "df9f4f04301d1eb7046b6fba2afa513beab2da76..9654bc71a1492e901989b1f1421874a6e352f1eb"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-do-while-statement-delete-replacement-test",
|
||||
@ -310,7 +310,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/do-while-statement.js b/do-while-statement.js",
|
||||
"index d9a410d..c5291b4 100644",
|
||||
"index d9a410d6..c5291b47 100644",
|
||||
"--- a/do-while-statement.js",
|
||||
"+++ b/do-while-statement.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -320,7 +320,7 @@
|
||||
"+do { console.log(replacement); } while (false);"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "8887ecec6e5dc8852e1f29ffe74c0b79c304e04e..888367feff9a28c449258cd99afd8ac90e069f76"
|
||||
"shas": "9654bc71a1492e901989b1f1421874a6e352f1eb..bcdddc4a78f2fa673c18e3a78d64f1692078e313"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-do-while-statement-delete-test",
|
||||
@ -351,7 +351,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/do-while-statement.js b/do-while-statement.js",
|
||||
"index c5291b4..6085cb1 100644",
|
||||
"index c5291b47..6085cb11 100644",
|
||||
"--- a/do-while-statement.js",
|
||||
"+++ b/do-while-statement.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -359,7 +359,7 @@
|
||||
" do { console.log(replacement); } while (false);"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "888367feff9a28c449258cd99afd8ac90e069f76..622706434ac7e362f28c08d79f7d8302ec086757"
|
||||
"shas": "bcdddc4a78f2fa673c18e3a78d64f1692078e313..60aa16e0f11e94a8ca873354d308e62837210476"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-do-while-statement-delete-rest-test",
|
||||
@ -390,12 +390,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/do-while-statement.js b/do-while-statement.js",
|
||||
"index 6085cb1..e69de29 100644",
|
||||
"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": "622706434ac7e362f28c08d79f7d8302ec086757..2795ba48a13af4b2c6f240761fd880dc6cd10c2b"
|
||||
"shas": "60aa16e0f11e94a8ca873354d308e62837210476..cfb33c769bbc24766b17e262f1c1eb05b0face8f"
|
||||
}]
|
||||
|
@ -177,7 +177,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/export.js b/export.js",
|
||||
"index e69de29..dcd9320 100644",
|
||||
"index e69de29b..dcd9320b 100644",
|
||||
"--- a/export.js",
|
||||
"+++ b/export.js",
|
||||
"@@ -0,0 +1,11 @@",
|
||||
@ -194,7 +194,7 @@
|
||||
"+export { import1 as name1, import2 as name2, nameN } from 'bar';"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "0eb14098d9cfc48fe7ffb44e37c71cb6cb58c878..5e2e89a442ac0f099046b72d57acaa03dc011ed9"
|
||||
"shas": "b56108ab09b88f198a0ec68e4f7a87ad1b2c06b6..37689b6855efcf22edc9a397b6116b5141ab642b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-export-replacement-insert-test",
|
||||
@ -540,7 +540,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/export.js b/export.js",
|
||||
"index dcd9320..c8b53ff 100644",
|
||||
"index dcd9320b..c8b53ff3 100644",
|
||||
"--- a/export.js",
|
||||
"+++ b/export.js",
|
||||
"@@ -1,3 +1,25 @@",
|
||||
@ -571,7 +571,7 @@
|
||||
" export let name1, name2, nameN;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "5e2e89a442ac0f099046b72d57acaa03dc011ed9..9e81bf04d8f7a930fb0a612fc5230af600c7c5d2"
|
||||
"shas": "37689b6855efcf22edc9a397b6116b5141ab642b..a587e998ca80b72452fa08e9dc0a82842607673b"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-export-delete-insert-test",
|
||||
@ -1304,7 +1304,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/export.js b/export.js",
|
||||
"index c8b53ff..ad3f21a 100644",
|
||||
"index c8b53ff3..ad3f21a7 100644",
|
||||
"--- a/export.js",
|
||||
"+++ b/export.js",
|
||||
"@@ -1,14 +1,14 @@",
|
||||
@ -1335,7 +1335,7 @@
|
||||
" export let name1, name2, nameN;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "9e81bf04d8f7a930fb0a612fc5230af600c7c5d2..d1bc421a42e531d555179f1135e64e9f19d57095"
|
||||
"shas": "a587e998ca80b72452fa08e9dc0a82842607673b..4032a29478ba2412695dbcc4b7bb948eb09b1f8f"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-export-replacement-test",
|
||||
@ -1759,7 +1759,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/export.js b/export.js",
|
||||
"index ad3f21a..c8b53ff 100644",
|
||||
"index ad3f21a7..c8b53ff3 100644",
|
||||
"--- a/export.js",
|
||||
"+++ b/export.js",
|
||||
"@@ -1,14 +1,14 @@",
|
||||
@ -1790,7 +1790,7 @@
|
||||
" export let name1, name2, nameN;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "d1bc421a42e531d555179f1135e64e9f19d57095..61d845cfdc6aaaba0c4fa01fb8ca41f79556ac37"
|
||||
"shas": "4032a29478ba2412695dbcc4b7bb948eb09b1f8f..4cacea87233cddf0243da69dc293f7c8e6c7a574"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-export-delete-replacement-test",
|
||||
@ -2301,7 +2301,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/export.js b/export.js",
|
||||
"index c8b53ff..281c672 100644",
|
||||
"index c8b53ff3..281c6726 100644",
|
||||
"--- a/export.js",
|
||||
"+++ b/export.js",
|
||||
"@@ -1,25 +1,3 @@",
|
||||
@ -2347,7 +2347,7 @@
|
||||
"+export { import6 as name6, import7 as name7, nameB } from 'fizz';"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "61d845cfdc6aaaba0c4fa01fb8ca41f79556ac37..06bbce70f8962416f84a41ea00019bfb28b73bf9"
|
||||
"shas": "4cacea87233cddf0243da69dc293f7c8e6c7a574..cdd6691ff292adf83a7de1c4cc4994521b56e9c6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-export-delete-test",
|
||||
@ -2528,7 +2528,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/export.js b/export.js",
|
||||
"index 281c672..e105ba7 100644",
|
||||
"index 281c6726..e105ba78 100644",
|
||||
"--- a/export.js",
|
||||
"+++ b/export.js",
|
||||
"@@ -1,14 +1,3 @@",
|
||||
@ -2548,7 +2548,7 @@
|
||||
" export let name3, name4, nameT;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "06bbce70f8962416f84a41ea00019bfb28b73bf9..d1daa5ccf312ddb7b243f8adf15955fac3df1d63"
|
||||
"shas": "cdd6691ff292adf83a7de1c4cc4994521b56e9c6..bc81d61fb61d4658531fb10edde19e87253de887"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-export-delete-rest-test",
|
||||
@ -2729,7 +2729,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/export.js b/export.js",
|
||||
"index e105ba7..e69de29 100644",
|
||||
"index e105ba78..e69de29b 100644",
|
||||
"--- a/export.js",
|
||||
"+++ b/export.js",
|
||||
"@@ -1,11 +0,0 @@",
|
||||
@ -2746,5 +2746,5 @@
|
||||
"-export { import6 as name6, import7 as name7, nameB } from 'fizz';"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "d1daa5ccf312ddb7b243f8adf15955fac3df1d63..925b73e9fde76236d0b037d687edcc925a5cef9a"
|
||||
"shas": "bc81d61fb61d4658531fb10edde19e87253de887..7b8267eabe246347b009d08c9100f36a568a81a6"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/false.js b/false.js",
|
||||
"index e69de29..8a63946 100644",
|
||||
"index e69de29b..8a639462 100644",
|
||||
"--- a/false.js",
|
||||
"+++ b/false.js",
|
||||
"@@ -0,0 +1 @@",
|
||||
"+false;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "a56c14e19dec2910d36460e4fca6496da46f6240..6b1a30d6be2d43907c3a1faf581db6c9fe6cc88a"
|
||||
"shas": "d7a5c35ea0a826299a22c96d0b992f92bc85bb91..c0b7401ea04f1b37426f7bc4773e77fdf8c0f3c1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-false-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/false.js b/false.js",
|
||||
"index 8a63946..86574b1 100644",
|
||||
"index 8a639462..86574b16 100644",
|
||||
"--- a/false.js",
|
||||
"+++ b/false.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" false;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "6b1a30d6be2d43907c3a1faf581db6c9fe6cc88a..122e0fae24e99d4f534bb461d9d5fa2900c70e55"
|
||||
"shas": "c0b7401ea04f1b37426f7bc4773e77fdf8c0f3c1..2e31f217aa32ada1925fb2ec1cc0411d0edcd1b0"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-false-delete-insert-test",
|
||||
@ -135,7 +135,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/false.js b/false.js",
|
||||
"index 86574b1..7bae7c5 100644",
|
||||
"index 86574b16..7bae7c53 100644",
|
||||
"--- a/false.js",
|
||||
"+++ b/false.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -145,7 +145,7 @@
|
||||
" false;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "122e0fae24e99d4f534bb461d9d5fa2900c70e55..6d5ec0ada3f32284c9922934304c708333da7e1f"
|
||||
"shas": "2e31f217aa32ada1925fb2ec1cc0411d0edcd1b0..53d6e0873afb002215a77619b6e3f4604bc27453"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-false-replacement-test",
|
||||
@ -191,7 +191,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/false.js b/false.js",
|
||||
"index 7bae7c5..86574b1 100644",
|
||||
"index 7bae7c53..86574b16 100644",
|
||||
"--- a/false.js",
|
||||
"+++ b/false.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -201,7 +201,7 @@
|
||||
" false;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "6d5ec0ada3f32284c9922934304c708333da7e1f..7291f772ca242bae0a92ab87c1ab6ec2be28d4c1"
|
||||
"shas": "53d6e0873afb002215a77619b6e3f4604bc27453..c2ef01b79b9b22e6e6f49923770ba63b149870a8"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-false-delete-replacement-test",
|
||||
@ -262,7 +262,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/false.js b/false.js",
|
||||
"index 86574b1..85b5be9 100644",
|
||||
"index 86574b16..85b5be91 100644",
|
||||
"--- a/false.js",
|
||||
"+++ b/false.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -272,7 +272,7 @@
|
||||
"+return false;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "7291f772ca242bae0a92ab87c1ab6ec2be28d4c1..018e3b49010dd5359d8071f4a856b6ccef409645"
|
||||
"shas": "c2ef01b79b9b22e6e6f49923770ba63b149870a8..428cba3e1b4d7186ecced8004ddc6b1e82df3f0e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-false-delete-test",
|
||||
@ -303,7 +303,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/false.js b/false.js",
|
||||
"index 85b5be9..1f328b3 100644",
|
||||
"index 85b5be91..1f328b3b 100644",
|
||||
"--- a/false.js",
|
||||
"+++ b/false.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -311,7 +311,7 @@
|
||||
" return false;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "018e3b49010dd5359d8071f4a856b6ccef409645..bda912eec94150ac764d032b1243ec8dba01f3f0"
|
||||
"shas": "428cba3e1b4d7186ecced8004ddc6b1e82df3f0e..6338763787e51da57da095e9e8e91e4d56873327"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-false-delete-rest-test",
|
||||
@ -342,12 +342,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/false.js b/false.js",
|
||||
"index 1f328b3..e69de29 100644",
|
||||
"index 1f328b3b..e69de29b 100644",
|
||||
"--- a/false.js",
|
||||
"+++ b/false.js",
|
||||
"@@ -1 +0,0 @@",
|
||||
"-return false;"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "bda912eec94150ac764d032b1243ec8dba01f3f0..f6dfeb42af9db740677fd60341ea39da711f7c81"
|
||||
"shas": "6338763787e51da57da095e9e8e91e4d56873327..d9d6e19c015a3f2dbb9d04d3867b13889dd798ac"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-in-statement.js b/for-in-statement.js",
|
||||
"index e69de29..f928287 100644",
|
||||
"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": "75f87f22428c68545ebb3f876a1b09caf59d75c9..1d91306ffc69509679ae514ecc2a3403dc94aefb"
|
||||
"shas": "6e93ce14abfffa0befb5a6168efdc830619e0319..4591de1a2b85f3c2813876e233110cc887b0c706"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-in-statement-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-in-statement.js b/for-in-statement.js",
|
||||
"index f928287..4a482e9 100644",
|
||||
"index f9282876..4a482e9e 100644",
|
||||
"--- a/for-in-statement.js",
|
||||
"+++ b/for-in-statement.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" for (thing in things) { thing(); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "1d91306ffc69509679ae514ecc2a3403dc94aefb..2f951d1d02db4475f786a87f7077648822ef26d3"
|
||||
"shas": "4591de1a2b85f3c2813876e233110cc887b0c706..c429195ed2092f33ba7e049821ceaec499bf038e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-in-statement-delete-insert-test",
|
||||
@ -186,7 +186,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-in-statement.js b/for-in-statement.js",
|
||||
"index 4a482e9..e949baf 100644",
|
||||
"index 4a482e9e..e949bafb 100644",
|
||||
"--- a/for-in-statement.js",
|
||||
"+++ b/for-in-statement.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -196,7 +196,7 @@
|
||||
" for (thing in things) { thing(); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "2f951d1d02db4475f786a87f7077648822ef26d3..31f13f455d1c9d9efae42c7695abae57acf4684a"
|
||||
"shas": "c429195ed2092f33ba7e049821ceaec499bf038e..b5d7e5afb889977c0b6a286814a02fd356c15c1e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-in-statement-replacement-test",
|
||||
@ -293,7 +293,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-in-statement.js b/for-in-statement.js",
|
||||
"index e949baf..4a482e9 100644",
|
||||
"index e949bafb..4a482e9e 100644",
|
||||
"--- a/for-in-statement.js",
|
||||
"+++ b/for-in-statement.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -303,7 +303,7 @@
|
||||
" for (thing in things) { thing(); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "31f13f455d1c9d9efae42c7695abae57acf4684a..20bf2c4356e71329f5e131bec7be78669308acc8"
|
||||
"shas": "b5d7e5afb889977c0b6a286814a02fd356c15c1e..b9772b80971e810b2fe559eacc6916548267991e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-in-statement-delete-replacement-test",
|
||||
@ -364,7 +364,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-in-statement.js b/for-in-statement.js",
|
||||
"index 4a482e9..6b5f12a 100644",
|
||||
"index 4a482e9e..6b5f12ae 100644",
|
||||
"--- a/for-in-statement.js",
|
||||
"+++ b/for-in-statement.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -374,7 +374,7 @@
|
||||
"+for (item in items) { item(); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "20bf2c4356e71329f5e131bec7be78669308acc8..cc6e8abe393b4d3c5e2b919a60c832b78ad0a4cd"
|
||||
"shas": "b9772b80971e810b2fe559eacc6916548267991e..61a0380174ea230f97ff054f79cd0b004ed3182c"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-in-statement-delete-test",
|
||||
@ -405,7 +405,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-in-statement.js b/for-in-statement.js",
|
||||
"index 6b5f12a..a3d8882 100644",
|
||||
"index 6b5f12ae..a3d8882d 100644",
|
||||
"--- a/for-in-statement.js",
|
||||
"+++ b/for-in-statement.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -413,7 +413,7 @@
|
||||
" for (item in items) { item(); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "cc6e8abe393b4d3c5e2b919a60c832b78ad0a4cd..71a7b11ea45ba6cae99bbc5d1bdad0c7eb526a3b"
|
||||
"shas": "61a0380174ea230f97ff054f79cd0b004ed3182c..f0e33cad1a66b2bebde032276a7728a3e8b754ea"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-in-statement-delete-rest-test",
|
||||
@ -444,12 +444,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-in-statement.js b/for-in-statement.js",
|
||||
"index a3d8882..e69de29 100644",
|
||||
"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": "71a7b11ea45ba6cae99bbc5d1bdad0c7eb526a3b..d1b2bee18a7da4fefa2a4786b2f692fc5795f48c"
|
||||
"shas": "f0e33cad1a66b2bebde032276a7728a3e8b754ea..03a1b4a15f149e9715aa37bf2334cb4f05f0e8ff"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
|
||||
"index e69de29..c467478 100644",
|
||||
"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": "1c2dbb18fb6fc930b3d0e6bb31a559a853be5c63..974a2623d96129b8a5eb74659c0040931fe6597a"
|
||||
"shas": "a7b8d1dcde9a2945edc002250d8df6d841189c39..365faf7882dbb2f146184940d80d82a70e647ea4"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
|
||||
"index c467478..0147d31 100644",
|
||||
"index c467478a..0147d318 100644",
|
||||
"--- a/for-loop-with-in-statement.js",
|
||||
"+++ b/for-loop-with-in-statement.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" for (key in something && i = 0; i < n; i++) { doSomething(); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "974a2623d96129b8a5eb74659c0040931fe6597a..37f9b64351b20f87cdd2d65e794e8b43ea684959"
|
||||
"shas": "365faf7882dbb2f146184940d80d82a70e647ea4..75a82c7096f5dade494e047719babc2f48789eaa"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-insert-test",
|
||||
@ -159,7 +159,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
|
||||
"index 0147d31..306fa88 100644",
|
||||
"index 0147d318..306fa88a 100644",
|
||||
"--- a/for-loop-with-in-statement.js",
|
||||
"+++ b/for-loop-with-in-statement.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -169,7 +169,7 @@
|
||||
" for (key in something && i = 0; i < n; i++) { doSomething(); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "37f9b64351b20f87cdd2d65e794e8b43ea684959..639c4e9d99aa30a48f0403a42eaf81f85a194e22"
|
||||
"shas": "75a82c7096f5dade494e047719babc2f48789eaa..5bdcc57491e4a99dd0b0e2c4c1f70e5ee0289e69"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-test",
|
||||
@ -239,7 +239,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
|
||||
"index 306fa88..0147d31 100644",
|
||||
"index 306fa88a..0147d318 100644",
|
||||
"--- a/for-loop-with-in-statement.js",
|
||||
"+++ b/for-loop-with-in-statement.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -249,7 +249,7 @@
|
||||
" for (key in something && i = 0; i < n; i++) { doSomething(); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "639c4e9d99aa30a48f0403a42eaf81f85a194e22..8d475ef797fcd08a47c73f033c305642c4279115"
|
||||
"shas": "5bdcc57491e4a99dd0b0e2c4c1f70e5ee0289e69..47d0ed7147dfb8cc9825138278e7bfaac9bc4186"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-replacement-test",
|
||||
@ -310,7 +310,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
|
||||
"index 0147d31..f23fa31 100644",
|
||||
"index 0147d318..f23fa316 100644",
|
||||
"--- a/for-loop-with-in-statement.js",
|
||||
"+++ b/for-loop-with-in-statement.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -320,7 +320,7 @@
|
||||
"+for (otherKey in something && i = 0; i < n; i++) { doOtherSomething(); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "8d475ef797fcd08a47c73f033c305642c4279115..d2051aee8f163a567cf3a5ff4060579795e0a2a1"
|
||||
"shas": "47d0ed7147dfb8cc9825138278e7bfaac9bc4186..3d5f95b6f38777fa1f8b80599af5f5b39651570e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-test",
|
||||
@ -351,7 +351,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
|
||||
"index f23fa31..e968160 100644",
|
||||
"index f23fa316..e9681607 100644",
|
||||
"--- a/for-loop-with-in-statement.js",
|
||||
"+++ b/for-loop-with-in-statement.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -359,7 +359,7 @@
|
||||
" for (otherKey in something && i = 0; i < n; i++) { doOtherSomething(); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "d2051aee8f163a567cf3a5ff4060579795e0a2a1..068a5eccf07c8be3b3a95d6eceadf7062d7b942d"
|
||||
"shas": "3d5f95b6f38777fa1f8b80599af5f5b39651570e..76d098119efc28256e6574fd24adcb007ddba5f1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-rest-test",
|
||||
@ -390,12 +390,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-loop-with-in-statement.js b/for-loop-with-in-statement.js",
|
||||
"index e968160..e69de29 100644",
|
||||
"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": "068a5eccf07c8be3b3a95d6eceadf7062d7b942d..9c2fa1f20200ecb26074ec348c75c13c22138f87"
|
||||
"shas": "76d098119efc28256e6574fd24adcb007ddba5f1..2b21000901a57001f039986154173f06d53be8a6"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-of-statement.js b/for-of-statement.js",
|
||||
"index e69de29..1ed2754 100644",
|
||||
"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": "9c2fa1f20200ecb26074ec348c75c13c22138f87..c46e44d842f77789f61d1f25221f0449f2d580c5"
|
||||
"shas": "2b21000901a57001f039986154173f06d53be8a6..c2eb1bd5f31917fe68bdd408c3594c69b36834e6"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-of-statement-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-of-statement.js b/for-of-statement.js",
|
||||
"index 1ed2754..ab20ded 100644",
|
||||
"index 1ed27542..ab20ded2 100644",
|
||||
"--- a/for-of-statement.js",
|
||||
"+++ b/for-of-statement.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" for (let item of items) { process(item); };"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "c46e44d842f77789f61d1f25221f0449f2d580c5..1c06836a9dafef9518b54b9409dc10e9e4402666"
|
||||
"shas": "c2eb1bd5f31917fe68bdd408c3594c69b36834e6..dd1aaacc8c2dc9ba44164e9c19594594b54772e9"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-of-statement-delete-insert-test",
|
||||
@ -186,7 +186,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-of-statement.js b/for-of-statement.js",
|
||||
"index ab20ded..19561a3 100644",
|
||||
"index ab20ded2..19561a3e 100644",
|
||||
"--- a/for-of-statement.js",
|
||||
"+++ b/for-of-statement.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -196,7 +196,7 @@
|
||||
" for (let item of items) { process(item); };"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "1c06836a9dafef9518b54b9409dc10e9e4402666..4c79ce75c12d7e2b77bd33d6f7e4f1d839ee88a8"
|
||||
"shas": "dd1aaacc8c2dc9ba44164e9c19594594b54772e9..9d17d54ae7597e671bbe2bbbca1647205ce65dce"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-of-statement-replacement-test",
|
||||
@ -293,7 +293,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-of-statement.js b/for-of-statement.js",
|
||||
"index 19561a3..ab20ded 100644",
|
||||
"index 19561a3e..ab20ded2 100644",
|
||||
"--- a/for-of-statement.js",
|
||||
"+++ b/for-of-statement.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -303,7 +303,7 @@
|
||||
" for (let item of items) { process(item); };"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "4c79ce75c12d7e2b77bd33d6f7e4f1d839ee88a8..cd97645bfe60051a1bbd7a490394b00b6df48a7d"
|
||||
"shas": "9d17d54ae7597e671bbe2bbbca1647205ce65dce..dae7f960db312022d23ff082aba5a78642a561cd"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-of-statement-delete-replacement-test",
|
||||
@ -364,7 +364,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-of-statement.js b/for-of-statement.js",
|
||||
"index ab20ded..62db34f 100644",
|
||||
"index ab20ded2..62db34f8 100644",
|
||||
"--- a/for-of-statement.js",
|
||||
"+++ b/for-of-statement.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -374,7 +374,7 @@
|
||||
"+for (let thing of things) { process(thing); };"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "cd97645bfe60051a1bbd7a490394b00b6df48a7d..3fd962ae8d2bc510b50e7e85ef1ce4ad04375eb8"
|
||||
"shas": "dae7f960db312022d23ff082aba5a78642a561cd..811a60e87ba626685fe89f707187e02c304fac32"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-of-statement-delete-test",
|
||||
@ -405,7 +405,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-of-statement.js b/for-of-statement.js",
|
||||
"index 62db34f..5170ce4 100644",
|
||||
"index 62db34f8..5170ce4b 100644",
|
||||
"--- a/for-of-statement.js",
|
||||
"+++ b/for-of-statement.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -413,7 +413,7 @@
|
||||
" for (let thing of things) { process(thing); };"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "3fd962ae8d2bc510b50e7e85ef1ce4ad04375eb8..821a3c7b8a7b00f8a8ad7967aed163a12f042d10"
|
||||
"shas": "811a60e87ba626685fe89f707187e02c304fac32..6189b7baec6feb5f7bc08b781076f3acd9a0d50e"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-of-statement-delete-rest-test",
|
||||
@ -444,12 +444,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-of-statement.js b/for-of-statement.js",
|
||||
"index 5170ce4..e69de29 100644",
|
||||
"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": "821a3c7b8a7b00f8a8ad7967aed163a12f042d10..0b1a50d075cdb5202c523f929502c24a9fce63ce"
|
||||
"shas": "6189b7baec6feb5f7bc08b781076f3acd9a0d50e..0494efa588d0a283d42c62a35bcee1f439b6a16d"
|
||||
}]
|
||||
|
@ -27,14 +27,14 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-statement.js b/for-statement.js",
|
||||
"index e69de29..2f51258 100644",
|
||||
"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": "eaeb10729b105d290f4091fea5f04c34030bb5a5..40bfcf71debc3d20926578f5d788f319165ccdbb"
|
||||
"shas": "e2f5e2a31d37bfe30697e216363db3575aa06a6a..9a3f882a6921d8a2807d088e694edc3f6d4fefa1"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-statement-replacement-insert-test",
|
||||
@ -80,7 +80,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-statement.js b/for-statement.js",
|
||||
"index 2f51258..095241f 100644",
|
||||
"index 2f51258e..095241f1 100644",
|
||||
"--- a/for-statement.js",
|
||||
"+++ b/for-statement.js",
|
||||
"@@ -1 +1,3 @@",
|
||||
@ -89,7 +89,7 @@
|
||||
" for (i = 0, init(); i < 10; i++) { log(i); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "40bfcf71debc3d20926578f5d788f319165ccdbb..14acd05cf2f47feba3234c70af8afe86828370ce"
|
||||
"shas": "9a3f882a6921d8a2807d088e694edc3f6d4fefa1..e3ea2d4f24e771b6c9820d2356a99e7237d96b49"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-statement-delete-insert-test",
|
||||
@ -132,7 +132,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-statement.js b/for-statement.js",
|
||||
"index 095241f..9b0e26d 100644",
|
||||
"index 095241f1..9b0e26d4 100644",
|
||||
"--- a/for-statement.js",
|
||||
"+++ b/for-statement.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -142,7 +142,7 @@
|
||||
" for (i = 0, init(); i < 10; i++) { log(i); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "14acd05cf2f47feba3234c70af8afe86828370ce..26784319f5f567d3017095b6f9d0ca081043b817"
|
||||
"shas": "e3ea2d4f24e771b6c9820d2356a99e7237d96b49..1f9261f5d8dc568a6c17844d43872e03f64e641d"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-statement-replacement-test",
|
||||
@ -185,7 +185,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-statement.js b/for-statement.js",
|
||||
"index 9b0e26d..095241f 100644",
|
||||
"index 9b0e26d4..095241f1 100644",
|
||||
"--- a/for-statement.js",
|
||||
"+++ b/for-statement.js",
|
||||
"@@ -1,3 +1,3 @@",
|
||||
@ -195,7 +195,7 @@
|
||||
" for (i = 0, init(); i < 10; i++) { log(i); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "26784319f5f567d3017095b6f9d0ca081043b817..5b15f8e9f8b68a8e4f4ba6ec6642a3cb37db7c60"
|
||||
"shas": "1f9261f5d8dc568a6c17844d43872e03f64e641d..e585ba38f3f0aa601f846c34a898217167081202"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-statement-delete-replacement-test",
|
||||
@ -256,7 +256,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-statement.js b/for-statement.js",
|
||||
"index 095241f..39af699 100644",
|
||||
"index 095241f1..39af699a 100644",
|
||||
"--- a/for-statement.js",
|
||||
"+++ b/for-statement.js",
|
||||
"@@ -1,3 +1,2 @@",
|
||||
@ -266,7 +266,7 @@
|
||||
"+for (i = 0, init(); i < 100; i++) { log(i); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "5b15f8e9f8b68a8e4f4ba6ec6642a3cb37db7c60..70806220f9fba3804c162aed68cdfcb25c39ff0a"
|
||||
"shas": "e585ba38f3f0aa601f846c34a898217167081202..8e99fa24d58ed9413ef72b84fc5d6a536de55ba2"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-statement-delete-test",
|
||||
@ -297,7 +297,7 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-statement.js b/for-statement.js",
|
||||
"index 39af699..de8ae87 100644",
|
||||
"index 39af699a..de8ae87b 100644",
|
||||
"--- a/for-statement.js",
|
||||
"+++ b/for-statement.js",
|
||||
"@@ -1,2 +1 @@",
|
||||
@ -305,7 +305,7 @@
|
||||
" for (i = 0, init(); i < 100; i++) { log(i); }"
|
||||
],
|
||||
"gitDir": "test/corpus/repos/javascript",
|
||||
"shas": "70806220f9fba3804c162aed68cdfcb25c39ff0a..9d01a0008d001fc966736db7d1583e0415da98fd"
|
||||
"shas": "8e99fa24d58ed9413ef72b84fc5d6a536de55ba2..d7f1b547f69ddd450adce8a2d22d27f8b64db5dc"
|
||||
}
|
||||
,{
|
||||
"testCaseDescription": "javascript-for-statement-delete-rest-test",
|
||||
@ -336,12 +336,12 @@
|
||||
],
|
||||
"patch": [
|
||||
"diff --git a/for-statement.js b/for-statement.js",
|
||||
"index de8ae87..e69de29 100644",
|
||||
"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": "9d01a0008d001fc966736db7d1583e0415da98fd..10c888c0caabf36cb211a96640afbe435dfad3fb"
|
||||
"shas": "d7f1b547f69ddd450adce8a2d22d27f8b64db5dc..b8e96cb516ef4cd80a86e0b6a00f5d4e542141dd"
|
||||
}]
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user