Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,099 for myHost (0.25 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/resolver/ConcurrentGroupingQueue.kt

    import java.util.concurrent.locks.ReentrantLock
    
    import kotlin.concurrent.withLock
    
    
    /**
     * A queue that gives priority to the most recently pushed element.
     */
    internal
    class ConcurrentGroupingQueue<T>(
    
        /**
         * Predicate to check whether the given most recently pushed element (the receiver)
         * supersedes the given less recent element (the argument).
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testplugin/testdata/issue25756/plugin/life.go

    var chans [4]chan bool
    
    // Double return value is just for testing.
    //
    //export GoStart
    func GoStart(i, xdim, ydim, xstart, xend, ystart, yend C.int, a *C.int, n *C.int) (int, int) {
    	c := make(chan bool, int(C.MYCONST))
    	go func() {
    		C.DoStep(xdim, ydim, xstart, xend, ystart, yend, a, n)
    		c <- true
    	}()
    	chans[i] = c
    	return int(i), int(i + 100)
    }
    
    //export GoWait
    func GoWait(i C.int) {
    	<-chans[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 889 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testlife/testdata/life.go

    var chans [4]chan bool
    
    // Double return value is just for testing.
    //
    //export GoStart
    func GoStart(i, xdim, ydim, xstart, xend, ystart, yend C.int, a *C.int, n *C.int) (int, int) {
    	c := make(chan bool, int(C.MYCONST))
    	go func() {
    		C.DoStep(xdim, ydim, xstart, xend, ystart, yend, a, n)
    		c <- true
    	}()
    	chans[i] = c
    	return int(i), int(i + 100)
    }
    
    //export GoWait
    func GoWait(i C.int) {
    	<-chans[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 892 bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/DependencyHandlerApiResolveIntegrationTest.groovy

                    into libsDir
                }
    
                task verifyTestKitJars {
                    dependsOn resolveLibs
                }
            """
    
            file('src/test/java/com/gradle/example/MyTest.java') << javaClassReferencingTestKit()
        }
    
        def "gradleTestKit dependency API adds test-kit classes and can compile against them"() {
            given:
            buildFile << """
                dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 06:59:30 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4TestTaskIntegrationTest.groovy

     */
    abstract class AbstractJUnit4TestTaskIntegrationTest extends AbstractTestTaskIntegrationTest implements JUnit4CommonTestSources {
        @Override
        String getStandaloneTestClass() {
            return testClass('MyTest')
        }
    
        @Override
        String testClass(String className) {
            return """
                import org.junit.*;
                import org.junit.experimental.categories.Category;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/KotlinPluginSmokeTest.groovy

                        implementation("org.jetbrains.kotlin:kotlin-test-junit5")
                    }
                }
            """
    
            ["test", "integTest"].each {
                file("src/$it/kotlin/MyTest.kt") << """
                    class MyTest {
                        @kotlin.test.Test
                        fun testSum() {
                            assert(2 + 2 == 4)
                        }
                    }
                """
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. cmd/metrics-v3-cache.go

    		var types madmin.MetricType = madmin.MetricsCPU
    
    		m := collectLocalMetrics(types, collectMetricsOpts{
    			hosts: map[string]struct{}{
    				globalLocalNodeName: {},
    			},
    		})
    
    		for _, hm := range m.ByHost {
    			if hm.CPU != nil {
    				v = *hm.CPU
    				break
    			}
    		}
    
    		return
    	}
    
    	return cachevalue.NewFromFunc(1*time.Minute,
    		cachevalue.Opts{ReturnLastGood: true},
    		loadCPUMetrics)
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/TestLauncherSpec.groovy

                }
    
                build.dependsOn secondTest
            """
            addDefaultTests()
        }
    
        void addDefaultTests() {
            file("src/test/java/example/MyTest.java") << """
                package example;
                public class MyTest {
                    @org.junit.Test public void foo() throws Exception {
                         org.junit.Assert.assertEquals(1, 1);
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 08:42:44 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/inst_test.go

    // Sort is used for multiple pointer types across two packages.
    func TestInst(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveGoRun(t)
    
    	// Build ptrsort.go, which uses package mysort.
    	var output []byte
    	var err error
    	filename := "ptrsort.go"
    	exename := "ptrsort"
    	outname := "ptrsort.out"
    	gotool := testenv.GoToolPath(t)
    	dest := filepath.Join(t.TempDir(), exename)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. src/net/lookup_windows_test.go

    		}
    		expected, err := nslookupNS(server)
    		if err != nil {
    			t.Skipf("skipping failed nslookup %s test: %s", server, err)
    		}
    		byHost := func(a, b *NS) int {
    			return strings.Compare(a.Host, b.Host)
    		}
    		slices.SortFunc(expected, byHost)
    		slices.SortFunc(ns, byHost)
    		if !reflect.DeepEqual(expected, ns) {
    			t.Errorf("different results %s:\texp:%v\tgot:%v", toJson(server), toJson(expected), ns)
    		}
    	})
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top