Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,959 for myHost (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/NestedConfigureDslIntegrationTest.groovy

    configurations {
        conf.incoming.afterResolve {
            distributions {
                myDist {
                    contents {}
                }
            }
        }
    }
    
    task resolve {
        dependsOn configurations.conf
        doFirst {
            configurations.conf.files // Trigger `afterResolve`
            assert distributions*.name.contains('myDist')
        }
    }
    
    assert configurations*.name.contains('conf')
    """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/PeekingIterator.java

      /**
       * {@inheritDoc}
       *
       * <p>Implementations may or may not support removal when a call to {@link #peek()} has occurred
       * since the most recent call to {@link #next()}.
       *
       * @throws IllegalStateException if there has been a call to {@link #peek()} since the most recent
       *     call to {@link #next()} and this implementation does not support this sequence of calls
       *     (optional)
       */
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 2.5K bytes
    - Viewed (0)
Back to top