Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 866 for broken2 (0.13 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskTimeoutIntegrationTest.groovy

            given:
            buildFile << """
                task broken() {
                    doLast {
                        println "Hello"
                    }
                    timeout = Duration.ofMillis(-1)
                }
                """
    
            expect:
            2.times {
                fails "broken"
                failure.assertHasDescription("Execution failed for task ':broken'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. test/fixedbugs/issue5172.go

    // errorcheck
    
    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // issue 5172: spurious warn about type conversion on broken type inside go and defer
    
    package main
    
    type foo struct {
    	x bar // ERROR "undefined"
    }
    
    type T struct{}
    
    func (t T) Bar() {}
    
    func main() {
    	var f foo
    	go f.bar()    // ERROR "undefined"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 28 02:31:54 UTC 2020
    - 506 bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/EvaluationContextTest.groovy

            ex.evaluationCycle.size() == 2
            // Have to use reference check because owner's equals is broken
            ex.evaluationCycle[0] === owner
            ex.evaluationCycle[1] === owner
    
            where:
            evaluator << [evaluateInLambda(), evaluateInBlock()]
        }
    
        def "can handle owner with broken equals in tryEvaluate"() {
            given:
            owner.equals(_) >> { false }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 20:21:33 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedToModelMapElementIntegrationTest.groovy

            when:
            buildScript '''
                class ThrowingRule extends RuleSource {
                    @Mutate
                    void badRule(Task echo) {
                        throw new RuntimeException("I'm broken")
                    }
                }
    
                class Rules extends RuleSource {
                    @Mutate
                    void addTasks(ModelMap<Task> tasks) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/internal/classpath/ClasspathWalkerTest.groovy

            0 * visitor._
        }
    
        @Requires(UnitTestPreconditions.Jdk11OrLater)
        def "throws FileException on badly formed JAR"() {
            def visitor = Mock(ClasspathEntryVisitor)
            def file = tmpDir.file("broken").createFile()
    
            when:
            walker.visit(file, visitor)
    
            then:
            thrown(FileException)
    
            0 * visitor._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/text/AbstractStyledTextOutputTest.groovy

            then:
            output.value == '[message]\n'
        }
    
        def formatsException() {
            when:
            output.exception(new RuntimeException('broken'))
    
            then:
            output.value == 'java.lang.RuntimeException: broken\n{stacktrace}\n'
        }
    
        def canMixInStyleInformation() {
            when:
            output.style(Style.Info).text('info test').style(Style.Normal)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultCompatibilityRuleChainTest.groovy

            1 * details.producerValue >> "value2"
            1 * details.compatible()
        }
    
        static class BrokenRule implements AttributeCompatibilityRule<String> {
            static failure = new RuntimeException("broken")
    
            @Override
            void execute(CompatibilityCheckDetails<String> details) {
                throw failure
            }
        }
    
        def "wraps failure to execute rule"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. test/fixedbugs/bug368.go

    // and the call to f smashed the register.
    
    func f(n int) int {
    	s := 0
    	for i := 0; i < n; i++ {
    		s += i>>1
    	}
    	return s
    }
    
    func main() {
    	x := -f(100)
    	if x != -2450 {
    		println(x)
    		panic("broken")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 447 bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ObjectiveCppHelloWorldApp.groovy

                }
            """
        }
    
        @Override
        List<String> getPluginList() {
            ['objective-cpp']
        }
    
        SourceFile getBrokenFile() {
            return sourceFile("objcpp", "broken.mm", """'broken""")
        }
    
        @Override
        String getSourceSetType() {
            return "ObjectiveCppSourceSet"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/TestClassExecutionEventGeneratorTest.groovy

            when:
            processor.testClassFinished(null)
    
            then:
            1 * target.completed(1, {it.endTime == 1300})
            0 * target._
        }
    
        def "synthesises a broken test when test class fails and no tests have been started"() {
            def failure = TestFailure.fromTestFrameworkFailure(new RuntimeException())
    
            given:
            idGenerator.generateId() >>> [1, 2]
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top