Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testLookups (0.4 sec)

  1. src/index/suffixarray/suffixarray_test.go

    func testIndex(t *testing.T) {
    	for _, tc := range testCases {
    		x := New([]byte(tc.source))
    		testConstruction(t, &tc, x)
    		testSaveRestore(t, &tc, x)
    		testLookups(t, &tc, x, 0)
    		testLookups(t, &tc, x, 1)
    		testLookups(t, &tc, x, 10)
    		testLookups(t, &tc, x, 2e9)
    		testLookups(t, &tc, x, -1)
    	}
    }
    
    func TestIndex32(t *testing.T) {
    	testIndex(t)
    }
    
    func TestIndex64(t *testing.T) {
    	maxData32 = -1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/net/lookup_windows_test.go

    var nslookupTestServers = []string{"mail.golang.com", "gmail.com"}
    var lookupTestIPs = []string{"8.8.8.8", "1.1.1.1"}
    
    func toJson(v any) string {
    	data, _ := json.Marshal(v)
    	return string(data)
    }
    
    func testLookup(t *testing.T, fn func(*testing.T, *Resolver, string)) {
    	for _, def := range []bool{true, false} {
    		def := def
    		for _, server := range nslookupTestServers {
    			server := server
    			var name string
    			if def {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/artifact/resolver/DefaultArtifactResolverTest.java

                }
            }
    
            assertTrue(seen, "Could not find ThreadGroup: " + DefaultArtifactResolver.DaemonThreadCreator.THREADGROUP_NAME);
        }
    
        @Test
        void testLookup() throws Exception {
            ArtifactResolver resolver = getContainer().lookup(ArtifactResolver.class, "default");
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/os/user/user_test.go

    	}
    	if want.HomeDir != got.HomeDir {
    		t.Errorf("got HomeDir=%q; want %q", got.HomeDir, want.HomeDir)
    	}
    	if want.Gid != got.Gid {
    		t.Errorf("got Gid=%q; want %q", got.Gid, want.Gid)
    	}
    }
    
    func TestLookup(t *testing.T) {
    	checkUser(t)
    
    	want, err := Current()
    	if err != nil {
    		if hasCgo || (hasUSER && hasHOME) {
    			t.Fatalf("Current: %v", err)
    		} else {
    			t.Skipf("skipping: %v", err)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 15:59:43 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top