Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for testVarint (0.46 sec)

  1. src/encoding/binary/varint_test.go

    	128,
    	129,
    	255,
    	256,
    	257,
    	1<<63 - 1,
    }
    
    func TestVarint(t *testing.T) {
    	for _, x := range tests {
    		testVarint(t, x)
    		testVarint(t, -x)
    	}
    	for x := int64(0x7); x != 0; x <<= 1 {
    		testVarint(t, x)
    		testVarint(t, -x)
    	}
    }
    
    func TestUvarint(t *testing.T) {
    	for _, x := range tests {
    		testUvarint(t, uint64(x))
    	}
    	for x := uint64(0x7); x != 0; x <<= 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 16 23:09:19 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/CrossVersionTestEngine.java

            List<TestVariant> variants = new ArrayList<TestVariant>();
            variants.add(TestVariant.tapiCurrent(rootId, discoveryRequest));
            variants.add(TestVariant.selected(rootId, discoveryRequest));
            variants.add(TestVariant.tapiTargetLoaded(rootId, discoveryRequest));
    
            return variants;
        }
    
        private TestDescriptor discoverTests(UniqueId uniqueId, List<TestVariant> variants) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/RepositoryInteractionDependencyResolveIntegrationTest.groovy

                )
            """
        }
    
        private static boolean leaksRuntime(testVariant, repoType, prevRepoType = null) {
            if (testVariant == 'runtime' || testVariant == 'default') {
                // the runtime variant is supposed to include everything
                return true
            }
            if (testVariant == 'api' && repoType == 'ivy') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  4. src/go/printer/performance_test.go

    		initialize()
    	}
    	b.ReportAllocs()
    	b.SetBytes(fileSize)
    	for i := 0; i < b.N; i++ {
    		testprint(io.Discard, fileNode)
    	}
    }
    
    func BenchmarkPrintDecl(b *testing.B) {
    	if declNode == nil {
    		initialize()
    	}
    	b.ReportAllocs()
    	b.SetBytes(declSize)
    	for i := 0; i < b.N; i++ {
    		testprint(io.Discard, declNode)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:10:10 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  5. src/math/const_test.go

    	if v := uint32(MaxUint32); v+1 != 0 {
    		t.Errorf("MaxUint32 should wrap around to zero: %d", v+1)
    	}
    	if v := uint64(MaxUint64); v+1 != 0 {
    		t.Errorf("MaxUint64 should wrap around to zero: %d", v+1)
    	}
    }
    
    func TestMaxInt(t *testing.T) {
    	if v := int(MaxInt); v+1 != MinInt {
    		t.Errorf("MaxInt should wrap around to MinInt: %d", v+1)
    	}
    	if v := int8(MaxInt8); v+1 != MinInt8 {
    		t.Errorf("MaxInt8 should wrap around to MinInt8: %d", v+1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 03 22:44:33 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  6. src/log/log_test.go

    	if got := Default(); got != std {
    		t.Errorf("Default [%p] should be std [%p]", got, std)
    	}
    }
    
    func TestAll(t *testing.T) {
    	for _, testcase := range tests {
    		testPrint(t, testcase.flag, testcase.prefix, testcase.pattern, false)
    		testPrint(t, testcase.flag, testcase.prefix, testcase.pattern, true)
    	}
    }
    
    func TestOutput(t *testing.T) {
    	const testString = "test"
    	var b strings.Builder
    	l := New(&b, "", 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 20:04:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyPermissionsIntegrationTest.groovy

            given:
            TestFile parent = getTestDirectory().createDir("testparent")
            TestFile child = parent.createDir("testchild")
            child.file("reference.txt") << "test file"
    
            child.mode = mode
            and:
            buildFile << """
                task copy(type: Copy) {
                    from "testparent"
                    into ("build/tmp")
                }
                """
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 20K bytes
    - Viewed (0)
  8. src/go/ast/print_test.go

    	i := 0
    	for _, line := range lines {
    		line = strings.TrimSpace(line)
    		if line != "" {
    			lines[i] = line
    			i++
    		}
    	}
    	return strings.Join(lines[0:i], "\n")
    }
    
    func TestPrint(t *testing.T) {
    	var buf strings.Builder
    	for _, test := range tests {
    		buf.Reset()
    		if err := Fprint(&buf, nil, test.x, nil); err != nil {
    			t.Errorf("Fprint failed: %s", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:35:30 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  9. istioctl/pkg/authz/analyzer_test.go

    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if _, wanted2 := NewAnalyzer(tt.input); wanted2 != nil {
    				t.Errorf("Wanted %v, got %v", tt.wantErr, wanted2)
    			}
    		})
    	}
    }
    
    func TestPrint(t *testing.T) {
    	a := &Analyzer{
    		listenerDump: &envoy_admin.ListenersConfigDump{
    			DynamicListeners: []*envoy_admin.ListenersConfigDump_DynamicListener{
    				{
    					Name: "10.102.11.148_15021",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. maven-model-builder/src/test/java/org/apache/maven/model/building/BuildModelSourceTransformerTest.java

                    .modelVersion("4.0.0")
                    .build());
            Model actual = transform(initial);
            assertTrue(equalsDeep(expected, actual));
        }
    
        @Test
        void testParent() {
            Path root = Paths.get(".").toAbsolutePath().normalize();
            pomFile = root.resolve("child/pom.xml");
            Model parent = new Model(org.apache.maven.api.model.Model.newBuilder()
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Nov 07 08:20:52 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top