Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 58 for testFork (0.2 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceProjectLockTest.groovy

                        workerLeaseService.withLocks([projectLock]) {
                            assert testLock.tryLock()
                            try {
                                assert lockIsHeld(projectLock)
                            } finally {
                                testLock.unlock()
                            }
                        }
                    }
                }
                started.await()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  2. src/cmd/go/internal/par/work_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package par
    
    import (
    	"sync/atomic"
    	"testing"
    	"time"
    )
    
    func TestWork(t *testing.T) {
    	var w Work[int]
    
    	const N = 10000
    	n := int32(0)
    	w.Add(N)
    	w.Do(100, func(i int) {
    		atomic.AddInt32(&n, 1)
    		if i >= 2 {
    			w.Add(i - 1)
    			w.Add(i - 2)
    		}
    		w.Add(i >> 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 03 09:56:24 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. pkg/proxy/conntrack/cleanup_test.go

    			ClusterIP:   testClusterIP,
    			ExternalIPs: []string{testExternalIP},
    			Ports: []v1.ServicePort{
    				{
    					Name:     "dns-tcp",
    					Port:     testPort,
    					Protocol: v1.ProtocolTCP,
    				},
    				{
    					Name:     "dns-udp",
    					Port:     testPort,
    					NodePort: testNodePort,
    					Protocol: v1.ProtocolUDP,
    				},
    			},
    		},
    		Status: v1.ServiceStatus{
    			LoadBalancer: v1.LoadBalancerStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 18:09:05 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/JUnitOptionsIntegrationTest.groovy

    import org.junit.Test;
    
    public class IncludedTest {
        @Test
        public void testOK() {
        }
    }
    """
            sourcePath.file("com/example/ExcludedTest.java") << """
    package com.example;
    import org.junit.Test;
    import org.junit.experimental.categories.Category;
    
    @Category(Exclude.class)
    public class ExcludedTest {
        @Test
        public void testOK() {
        }
    }
    """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. pilot/pkg/leaderelection/leaderelection_test.go

    	"k8s.io/client-go/kubernetes"
    	"k8s.io/client-go/kubernetes/fake"
    	k8stesting "k8s.io/client-go/testing"
    
    	"istio.io/istio/pkg/revisions"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    const testLock = "test-lock"
    
    func createElection(t *testing.T,
    	name string, revision string,
    	watcher revisions.DefaultWatcher,
    	expectLeader bool,
    	client kubernetes.Interface, fns ...func(stop <-chan struct{}),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/moduleconverter/dependencies/AbstractDependencyDescriptorFactoryInternalSpec.groovy

    abstract class AbstractDependencyDescriptorFactoryInternalSpec extends Specification {
        static final TEST_DEP_CONF = "depconf1"
    
        static final TEST_EXCLUDE_RULE = new org.gradle.api.internal.artifacts.DefaultExcludeRule("testOrg", null)
        static final TEST_IVY_EXCLUDE_RULE = getTestExcludeRule()
    
        static final ARTIFACT = new DefaultDependencyArtifact("name", "type", "classifier", "ext", null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 19:31:08 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/JUnitJupiterOptionsIntegrationTest.groovy

    public class IncludedTest {
        @Test
        public void testOK() {
        }
    }
    """
            sourcePath.file("com/example/ExcludedTest.java") << """
    package com.example;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.Tag;
    
    @Tag("exclude")
    public class ExcludedTest {
        @Test
        public void testOK() {
        }
    }
    """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/testing/junitplatform-mix/kotlin/src/test/java/org/gradle/junitplatform/JUnit3Test.java

    package org.gradle.junitplatform;
    
    import junit.framework.TestCase;
    
    public class JUnit3Test extends TestCase {
        public void testOk() {
            System.out.println("Hello from JUnit 3!");
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 198 bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/TestNGOptionsIntegrationTest.groovy

    import org.testng.annotations.Test;
    
    public class IncludedTest {
        @Test
        public void testOK() {
        }
    }
    """
            sourcePath.file("com/example/ExcludedTest.java") << """
    package com.example;
    
    import org.testng.annotations.Test;
    
    public class ExcludedTest {
        @Test(groups = { "exclude" })
        public void testOK() {
        }
    }
    """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. src/internal/runtime/atomic/atomic_test.go

    		<-done
    	}
    
    	// Check that the array has been totally cleared.
    	for i, v := range a {
    		if v != 0 {
    			t.Fatalf("a[%v] not cleared: want %#x, got %#x", i, uint32(0), v)
    		}
    	}
    }
    
    func TestOr8(t *testing.T) {
    	// Basic sanity check.
    	x := uint8(0)
    	for i := uint8(0); i < 8; i++ {
    		atomic.Or8(&x, 1<<i)
    		if r := (uint8(1) << (i + 1)) - 1; x != r {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top