Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for exercise (0.27 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. src/os/user/lookup_stubs.go

    package user
    
    import (
    	"fmt"
    	"os"
    	"runtime"
    	"strconv"
    )
    
    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) {
    	uid := currentUID()
    	// $USER and /etc/passwd may disagree; prefer the latter if we can get it.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 16:09:09 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  8. src/runtime/runtime_linux_test.go

    import (
    	. "runtime"
    	"syscall"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    var pid, tid int
    
    func init() {
    	// Record pid and tid of init thread for use during test.
    	// The call to LockOSThread is just to exercise it;
    	// we can't test that it does anything.
    	// Instead we're testing that the conditions are good
    	// for how it is used in init (must be on main thread).
    	pid, tid = syscall.Getpid(), syscall.Gettid()
    	LockOSThread()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:20:01 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

    import com.google.common.util.concurrent.ClosingFuture.DeferredCloser;
    import java.io.Closeable;
    import java.util.concurrent.ExecutionException;
    
    /** Tests for {@link ClosingFuture} that exercise {@link ClosingFuture#finishToFuture()}. */
    public class ClosingFutureFinishToFutureTest extends AbstractClosingFutureTest {
      public void testFinishToFuture_throwsIfCalledTwice() throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

    import com.google.common.util.concurrent.ClosingFuture.DeferredCloser;
    import java.io.Closeable;
    import java.util.concurrent.ExecutionException;
    
    /** Tests for {@link ClosingFuture} that exercise {@link ClosingFuture#finishToFuture()}. */
    public class ClosingFutureFinishToFutureTest extends AbstractClosingFutureTest {
      public void testFinishToFuture_throwsIfCalledTwice() throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top