Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for exercise (0.28 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/BuildScriptVisibilityIntegrationTest.groovy

    println "root: " + doSomethingElse(10)
    """
            file("child1/build.gradle") << """
    println "child: " + doSomething(11)
    println "child: " + doSomethingElse(11)
    """
    
            expect:
            // Invoke twice to exercise script caching
            succeeds()
            outputContains("root: {10}")
            outputContains("root: [10]")
            outputContains("child: {11}")
            outputContains("child: [11]")
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/samples/readme-templates/library-summary.adoc.template

    * Run the build and view the test report
    * Customize the Jar files the build produces
    
    Now you could complete this exercise by trying to compile some ${language.raw} code that uses the library you just built.
    
    == Next steps
    
    Building a library is just one aspect of reusing code across project boundaries.
    From here, you may be interested in:
    
     - link:{userManualPath}/building_java_projects.html[Building Java & JVM projects]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 781 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_badtest.txt

    ! go test badtest/badvar
    ! stdout ^ok
    stdout ^FAIL\tbadtest/badvar
    
    ! go test notest
    ! stdout ^ok
    stderr '^notest.hello.go:6:1: syntax error: non-declaration statement outside function body' # Exercise issue #7108
    
    -- badtest/badexec/x_test.go --
    package badexec
    
    func init() {
    	panic("badexec")
    }
    
    -- badtest/badsyntax/x.go --
    package badsyntax
    
    -- badtest/badsyntax/x_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 06 15:47:54 UTC 2020
    - 805 bytes
    - Viewed (0)
  4. test/fixedbugs/bug243.go

    	go func() {
    		for {
    			var conn, _ = listen.Accept()
    			_ = conn
    		}
    	}()
    
    	var conn, _ = Dial("tcp", "", listen.Addr().Error())
    	_ = conn
    }
    
    // Simulated net interface to exercise bug
    // without involving a real network.
    type T chan int
    
    var global T
    
    func Listen(x, y string) (T, string) {
    	global = make(chan int)
    	return global, y
    }
    
    func (t T) Addr() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 893 bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/plugin/NonImperativeBuildScriptEvaluationIntegrationTest.groovy

                }
            """
    
            buildScript """
                apply from: "scriptPlugin1.gradle"
                apply from: "scriptPlugin2.gradle"
            """
    
            then:
            // Invoke twice to exercise script caching
            succeeds "fromScriptPlugin1", "fromScriptPlugin2"
            succeeds "fromScriptPlugin1", "fromScriptPlugin2"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 15 00:59:45 UTC 2015
    - 1.5K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testshared/testdata/global/main.go

    		panic("testLargeOffset: address mismatch")
    	}
    }
    
    func main() {
    	testLoop()
    
    	// SSA rules commonly merge offsets into addresses. These
    	// tests access global data in different ways to try
    	// and exercise different SSA rules.
    	testMediumOffset()
    	testLargeOffset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprog/badtraceback.go

    	debug.SetGCPercent(-1)
    	// Out of an abundance of caution, also make sure that there are
    	// no GCs actively in progress.
    	runtime.GC()
    
    	// Run badLR1 on its own stack to minimize the stack size and
    	// exercise the stack bounds logic in the hex dump.
    	go badLR1()
    	select {}
    }
    
    //go:noinline
    func badLR1() {
    	// We need two frames on LR machines because we'll smash this
    	// frame's saved LR.
    	badLR2(0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 06 23:02:28 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  8. src/os/user/lookup_plan9.go

    func init() {
    	userImplemented = false
    	groupImplemented = false
    	groupListImplemented = false
    }
    
    var (
    	// unused variables (in this implementation)
    	// modified during test to exercise code paths in the cgo implementation.
    	userBuffer  = 0
    	groupBuffer = 0
    )
    
    func current() (*User, error) {
    	ubytes, err := os.ReadFile("/dev/user")
    	if err != nil {
    		return nil, fmt.Errorf("user: %s", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 16:09:09 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/test/integration/change_test.go

    			t.Error(err)
    		}
    	}
    
    	// Set up 10 watchers for custom resource.
    	// We can't exercise them in a loop the same way as get requests, as watchcache
    	// can reject them with 429 and Retry-After: 1 if it is uninitialized and even
    	// though 429 is automatically retried, with frequent watchcache terminations and
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:59:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. platforms/jvm/language-groovy/src/integTest/groovy/org/gradle/groovy/compile/GroovyCompileProblemsIntegrationTest.groovy

            when:
            fails(":compileGroovy")
    
            then:
            // If the joint compilation is working correctly, we should exercise the JdkJavaCompiler and we should have detailed problems events
            verifyAll(receivedProblem(0)) {
                fqid == 'compilation:java:java-compilation-error'
                details == "';' expected"
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 16:25:50 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top