Repository: incubator-groovy Updated Branches: refs/heads/GROOVY_2_4_X 0994485f2 -> d3c29e687
minor refactor Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/e8b16470 Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/e8b16470 Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/e8b16470 Branch: refs/heads/GROOVY_2_4_X Commit: e8b16470abb2fa54e18123dbac22f9d61a7823af Parents: 0994485 Author: Paul King <pa...@asert.com.au> Authored: Sun May 31 18:15:59 2015 +1000 Committer: Paul King <pa...@asert.com.au> Committed: Sun May 31 18:22:21 2015 +1000 ---------------------------------------------------------------------- .../IOGMClosureParamTypeInferenceSTCTest.groovy | 8 ++--- ...reParamTypeInferenceStaticCompileTest.groovy | 29 +++++++++++++++++ ...eParamTypeInferrenceStaticCompileTest.groovy | 29 ----------------- ...reParamTypeInferenceStaticCompileTest.groovy | 32 ++++++++++++++++++ ...eParamTypeInferrenceStaticCompileTest.groovy | 34 -------------------- ...reParamTypeInferenceStaticCompileTest.groovy | 31 ++++++++++++++++++ ...eParamTypeInferrenceStaticCompileTest.groovy | 31 ------------------ ...reParamTypeInferenceStaticCompileTest.groovy | 31 ++++++++++++++++++ ...eParamTypeInferrenceStaticCompileTest.groovy | 31 ------------------ ...reParamTypeInferenceStaticCompileTest.groovy | 32 ++++++++++++++++++ ...eParamTypeInferrenceStaticCompileTest.groovy | 32 ------------------ 11 files changed, 159 insertions(+), 161 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e8b16470/src/test/groovy/transform/stc/IOGMClosureParamTypeInferenceSTCTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/groovy/transform/stc/IOGMClosureParamTypeInferenceSTCTest.groovy b/src/test/groovy/transform/stc/IOGMClosureParamTypeInferenceSTCTest.groovy index 64e160d..b2c568b 100644 --- a/src/test/groovy/transform/stc/IOGMClosureParamTypeInferenceSTCTest.groovy +++ b/src/test/groovy/transform/stc/IOGMClosureParamTypeInferenceSTCTest.groovy @@ -187,13 +187,13 @@ d,e,f""".bytes) } void testSplitEachLineOnReader() { - assertScript '''def is = new ByteArrayInputStream("""a,b,c + assertScript '''def reader = new ByteArrayInputStream("""a,b,c d,e,f""".bytes).newReader() - is.splitEachLine(',') { assert it.size() == 3 } + reader.splitEachLine(',') { assert it.size() == 3 } ''' - assertScript '''def is = new ByteArrayInputStream("""a,b,c + assertScript '''def reader = new ByteArrayInputStream("""a,b,c d,e,f""".bytes).newReader() - is.splitEachLine(~',') { assert it.size() == 3 } + reader.splitEachLine(~',') { assert it.size() == 3 } ''' } http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e8b16470/src/test/org/codehaus/groovy/classgen/asm/sc/ClosureParamTypeInferenceStaticCompileTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/classgen/asm/sc/ClosureParamTypeInferenceStaticCompileTest.groovy b/src/test/org/codehaus/groovy/classgen/asm/sc/ClosureParamTypeInferenceStaticCompileTest.groovy new file mode 100644 index 0000000..bb2acee --- /dev/null +++ b/src/test/org/codehaus/groovy/classgen/asm/sc/ClosureParamTypeInferenceStaticCompileTest.groovy @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.codehaus.groovy.classgen.asm.sc + +import groovy.transform.stc.ClosureParamTypeInferenceSTCTest + +/** + * Unit tests for static compilation: closure parameter type inference. + * + * @author Cedric Champeau + */ +class ClosureParamTypeInferenceStaticCompileTest extends ClosureParamTypeInferenceSTCTest implements StaticCompilationTestSupport { } + http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e8b16470/src/test/org/codehaus/groovy/classgen/asm/sc/ClosureParamTypeInferrenceStaticCompileTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/classgen/asm/sc/ClosureParamTypeInferrenceStaticCompileTest.groovy b/src/test/org/codehaus/groovy/classgen/asm/sc/ClosureParamTypeInferrenceStaticCompileTest.groovy deleted file mode 100644 index 6ffc35b..0000000 --- a/src/test/org/codehaus/groovy/classgen/asm/sc/ClosureParamTypeInferrenceStaticCompileTest.groovy +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.codehaus.groovy.classgen.asm.sc - -import groovy.transform.stc.ClosureParamTypeInferenceSTCTest - -/** - * Unit tests for static compilation: closure parameter type inference. - * - * @author Cedric Champeau - */ -class ClosureParamTypeInferrenceStaticCompileTest extends ClosureParamTypeInferenceSTCTest implements StaticCompilationTestSupport { } - http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e8b16470/src/test/org/codehaus/groovy/classgen/asm/sc/IOGMClosureParamTypeInferenceStaticCompileTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/classgen/asm/sc/IOGMClosureParamTypeInferenceStaticCompileTest.groovy b/src/test/org/codehaus/groovy/classgen/asm/sc/IOGMClosureParamTypeInferenceStaticCompileTest.groovy new file mode 100644 index 0000000..abc3ca3 --- /dev/null +++ b/src/test/org/codehaus/groovy/classgen/asm/sc/IOGMClosureParamTypeInferenceStaticCompileTest.groovy @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.codehaus.groovy.classgen.asm.sc + +import groovy.transform.stc.IOGMClosureParamTypeInferenceSTCTest + +/** + * Unit tests for static compilation: closure parameter type inference: IOGroovyMethods. + * + * @author Cedric Champeau + */ +class IOGMClosureParamTypeInferenceStaticCompileTest extends IOGMClosureParamTypeInferenceSTCTest implements StaticCompilationTestSupport { + +} + http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e8b16470/src/test/org/codehaus/groovy/classgen/asm/sc/IOGMClosureParamTypeInferrenceStaticCompileTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/classgen/asm/sc/IOGMClosureParamTypeInferrenceStaticCompileTest.groovy b/src/test/org/codehaus/groovy/classgen/asm/sc/IOGMClosureParamTypeInferrenceStaticCompileTest.groovy deleted file mode 100644 index 73c865c..0000000 --- a/src/test/org/codehaus/groovy/classgen/asm/sc/IOGMClosureParamTypeInferrenceStaticCompileTest.groovy +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - - - -package org.codehaus.groovy.classgen.asm.sc - -import groovy.transform.stc.IOGMClosureParamTypeInferenceSTCTest - -/** - * Unit tests for static compilation: closure parameter type inference: IOGroovyMethods. - * - * @author Cedric Champeau - */ -class IOGMClosureParamTypeInferrenceStaticCompileTest extends IOGMClosureParamTypeInferenceSTCTest implements StaticCompilationTestSupport { - -} - http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e8b16470/src/test/org/codehaus/groovy/classgen/asm/sc/ResourceGMClosureParamTypeInferenceStaticCompileTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/classgen/asm/sc/ResourceGMClosureParamTypeInferenceStaticCompileTest.groovy b/src/test/org/codehaus/groovy/classgen/asm/sc/ResourceGMClosureParamTypeInferenceStaticCompileTest.groovy new file mode 100644 index 0000000..f0acf57 --- /dev/null +++ b/src/test/org/codehaus/groovy/classgen/asm/sc/ResourceGMClosureParamTypeInferenceStaticCompileTest.groovy @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.codehaus.groovy.classgen.asm.sc + +import groovy.transform.stc.ResourceGMClosureParamTypeInferenceSTCTest + +/** + * Unit tests for static compilation: closure parameter type inference: {@link org.codehaus.groovy.runtime.ResourceGroovyMethods}. + * + * @author Cedric Champeau + */ +class ResourceGMClosureParamTypeInferenceStaticCompileTest extends ResourceGMClosureParamTypeInferenceSTCTest implements StaticCompilationTestSupport { + +} + http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e8b16470/src/test/org/codehaus/groovy/classgen/asm/sc/ResourceGMClosureParamTypeInferrenceStaticCompileTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/classgen/asm/sc/ResourceGMClosureParamTypeInferrenceStaticCompileTest.groovy b/src/test/org/codehaus/groovy/classgen/asm/sc/ResourceGMClosureParamTypeInferrenceStaticCompileTest.groovy deleted file mode 100644 index 156a0d7..0000000 --- a/src/test/org/codehaus/groovy/classgen/asm/sc/ResourceGMClosureParamTypeInferrenceStaticCompileTest.groovy +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.codehaus.groovy.classgen.asm.sc - -import groovy.transform.stc.ResourceGMClosureParamTypeInferenceSTCTest - -/** - * Unit tests for static compilation: closure parameter type inference: {@link org.codehaus.groovy.runtime.ResourceGroovyMethods}. - * - * @author Cedric Champeau - */ -class ResourceGMClosureParamTypeInferrenceStaticCompileTest extends ResourceGMClosureParamTypeInferenceSTCTest implements StaticCompilationTestSupport { - -} - http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e8b16470/src/test/org/codehaus/groovy/classgen/asm/sc/SocketGMClosureParamTypeInferenceStaticCompileTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/classgen/asm/sc/SocketGMClosureParamTypeInferenceStaticCompileTest.groovy b/src/test/org/codehaus/groovy/classgen/asm/sc/SocketGMClosureParamTypeInferenceStaticCompileTest.groovy new file mode 100644 index 0000000..e1dab18 --- /dev/null +++ b/src/test/org/codehaus/groovy/classgen/asm/sc/SocketGMClosureParamTypeInferenceStaticCompileTest.groovy @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.codehaus.groovy.classgen.asm.sc + +import groovy.transform.stc.SocketGMClosureParamTypeInferenceSTCTest + +/** + * Unit tests for static compilation: closure parameter type inference: {@link org.codehaus.groovy.runtime.SocketGroovyMethods}. + * + * @author Cedric Champeau + */ +class SocketGMClosureParamTypeInferenceStaticCompileTest extends SocketGMClosureParamTypeInferenceSTCTest implements StaticCompilationTestSupport { + +} + http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e8b16470/src/test/org/codehaus/groovy/classgen/asm/sc/SocketGMClosureParamTypeInferrenceStaticCompileTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/classgen/asm/sc/SocketGMClosureParamTypeInferrenceStaticCompileTest.groovy b/src/test/org/codehaus/groovy/classgen/asm/sc/SocketGMClosureParamTypeInferrenceStaticCompileTest.groovy deleted file mode 100644 index 34df97a..0000000 --- a/src/test/org/codehaus/groovy/classgen/asm/sc/SocketGMClosureParamTypeInferrenceStaticCompileTest.groovy +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.codehaus.groovy.classgen.asm.sc - -import groovy.transform.stc.SocketGMClosureParamTypeInferenceSTCTest - -/** - * Unit tests for static compilation: closure parameter type inference: {@link org.codehaus.groovy.runtime.SocketGroovyMethods}. - * - * @author Cedric Champeau - */ -class SocketGMClosureParamTypeInferrenceStaticCompileTest extends SocketGMClosureParamTypeInferenceSTCTest implements StaticCompilationTestSupport { - -} - http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e8b16470/src/test/org/codehaus/groovy/classgen/asm/sc/StringGMClosureParamTypeInferenceStaticCompileTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/classgen/asm/sc/StringGMClosureParamTypeInferenceStaticCompileTest.groovy b/src/test/org/codehaus/groovy/classgen/asm/sc/StringGMClosureParamTypeInferenceStaticCompileTest.groovy new file mode 100644 index 0000000..f01de16 --- /dev/null +++ b/src/test/org/codehaus/groovy/classgen/asm/sc/StringGMClosureParamTypeInferenceStaticCompileTest.groovy @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.codehaus.groovy.classgen.asm.sc + +import groovy.transform.stc.StringGMClosureParamTypeInferenceSTCTest + +/** + * Unit tests for static compilation: closure parameter type inference: StringGroovyMethods. + * + * @author Cedric Champeau + */ +class StringGMClosureParamTypeInferenceStaticCompileTest extends StringGMClosureParamTypeInferenceSTCTest implements StaticCompilationTestSupport { + +} + http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/e8b16470/src/test/org/codehaus/groovy/classgen/asm/sc/StringGMClosureParamTypeInferrenceStaticCompileTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/classgen/asm/sc/StringGMClosureParamTypeInferrenceStaticCompileTest.groovy b/src/test/org/codehaus/groovy/classgen/asm/sc/StringGMClosureParamTypeInferrenceStaticCompileTest.groovy deleted file mode 100644 index b2fedc3..0000000 --- a/src/test/org/codehaus/groovy/classgen/asm/sc/StringGMClosureParamTypeInferrenceStaticCompileTest.groovy +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.codehaus.groovy.classgen.asm.sc - -import groovy.transform.stc.StringGMClosureParamTypeInferenceSTCTest - -/** - * Unit tests for static compilation: closure parameter type inference: StringGroovyMethods. - * - * @author Cedric Champeau - */ -class StringGMClosureParamTypeInferrenceStaticCompileTest extends StringGMClosureParamTypeInferenceSTCTest implements StaticCompilationTestSupport { - -} -