Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 2,982 for EXPECT (0.11 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/os/OperatingSystemTest.groovy

            expect:
            OperatingSystem.current().name == 'GradleOS 1.0' || !resetStateSuccess
        }
    
        def "uses os.version property to determine OS version"() {
            given:
            System.properties['os.version'] = '42'
            boolean resetStateSuccess = resetOperatingSystemClassStaticFields()
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/conflicts/ConflictContainerTest.groovy

            def conflict = container.newElement('a', [], null)
    
            expect:
            conflict == null
            container.size == 0
        }
    
        def "contains few unconflicted elements"() {
            container.newElement("a", [1], null)
            container.newElement("b", [1], null)
            container.newElement("c", [1], "d")
            expect:
            container.size == 0
        }
    
        def "contains conflicting element"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. pkg/config/analysis/diag/message_test.go

    	m := NewMessage(mt, nil, "Feta")
    
    	g.Expect(m.Unstructured(true)).To(Not(HaveKey("origin")))
    	g.Expect(m.Unstructured(false)).To(Not(HaveKey("origin")))
    
    	m = NewMessage(mt, &resource.Instance{Origin: testOrigin{name: "toppings/cheese"}}, "Feta")
    
    	g.Expect(m.Unstructured(true)).To((HaveKey("origin")))
    	g.Expect(m.Unstructured(false)).To(Not(HaveKey("origin")))
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. src/regexp/find_test.go

    		}
    	}
    }
    
    func testSubmatchIndices(test *FindTest, n int, expect, result []int, t *testing.T) {
    	if len(expect) != len(result) {
    		t.Errorf("match %d: expected %d matches; got %d: %s", n, len(expect)/2, len(result)/2, test)
    		return
    	}
    	for k, e := range expect {
    		if e != result[k] {
    			t.Errorf("match %d: submatch error: expected %v got %v: %s", n, expect, result, test)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 11 15:28:50 UTC 2021
    - 16.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/helper/spread_test.go

    		name   string
    		pod    *v1.Pod
    		expect []*v1.Service
    	}{
    		{
    			name:   "GetPodServices for pod-0",
    			pod:    pods[0],
    			expect: []*v1.Service{services[0]},
    		},
    		{
    			name:   "GetPodServices for pod-1",
    			pod:    pods[1],
    			expect: []*v1.Service{services[1]},
    		},
    		{
    			name:   "GetPodServices for pod-2",
    			pod:    pods[2],
    			expect: []*v1.Service{services[2]},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 17:48:55 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/core/v1/toleration_test.go

    		toleration      Toleration
    		taint           Taint
    		expectTolerated bool
    	}{
    		{
    			description: "toleration and taint have the same key and effect, and operator is Exists, and taint has no value, expect tolerated",
    			toleration: Toleration{
    				Key:      "foo",
    				Operator: TolerationOpExists,
    				Effect:   TaintEffectNoSchedule,
    			},
    			taint: Taint{
    				Key:    "foo",
    				Effect: TaintEffectNoSchedule,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 22 17:21:42 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/LoggingCommandLineConverterTest.groovy

        def convertsEmptyArgs() {
            expect:
            checkConversion([])
        }
    
        def convertsDebugLevel() {
            expectedConfig.logLevel = LogLevel.DEBUG
    
            expect:
            checkConversion(['-d'])
            checkConversion(['--debug'])
        }
    
        def convertsInfoLevel() {
            expectedConfig.logLevel = LogLevel.INFO
    
            expect:
            checkConversion(['-i'])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/PathFactoryTest.groovy

            def relpath = relpath(file)
    
            expect:
            def path = factory.path(file)
            path.url == "file://$relpath"
            path.relPath == relpath
        }
    
        def usesTheClosestAncestorRootDirForAFileUnderMultipleRootDirs() {
            factory.addPathVariable('ROOT_DIR', tmpDir.testDirectory)
            factory.addPathVariable('SUB_DIR', tmpDir.file('sub'))
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolverTest.groovy

        }
    
        def "ignores system include file that does not exist"() {
            expect:
            def result = resolve(include('<test.h>'))
            result.complete
            result.files.empty
        }
    
        def "ignores quoted include file that does not exist"() {
            expect:
            def result = resolve(include('"test.h"'))
            result.complete
            result.files.empty
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  10. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/DaemonForkOptionsTest.groovy

                .withClassLoaderStructure(new HierarchicalClassLoaderStructure(spec1).withChild(spec2))
                .keepAliveMode(KeepAliveMode.SESSION)
                .build()
    
            expect:
            settings.isCompatibleWith(settings)
        }
    
        def "is compatible with same settings"() {
            def spec1 = Mock(ClassLoaderSpec)
            def spec2 = Mock(ClassLoaderSpec)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top