Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of about 10,000 for found$ (1.63 sec)

  1. src/os/user/cgo_lookup_unix.go

    	var pwd _C_struct_passwd
    	var found bool
    	nameC := make([]byte, len(username)+1)
    	copy(nameC, username)
    
    	err := retryWithBuffer(userBuffer, func(buf []byte) syscall.Errno {
    		var errno syscall.Errno
    		pwd, found, errno = _C_getpwnam_r((*_C_char)(unsafe.Pointer(&nameC[0])),
    			(*_C_char)(unsafe.Pointer(&buf[0])), _C_size_t(len(buf)))
    		return errno
    	})
    	if err == syscall.ENOENT || (err == nil && !found) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/util/internal/NameMatcher.java

            for (String candidate : items) {
                boolean found = false;
    
                if (candidate.equalsIgnoreCase(pattern)) {
                    caseInsensitiveMatches.add(candidate);
                    found = true;
                }
                if (camelCasePattern.matcher(candidate).matches()) {
                    caseSensitiveCamelCaseMatches.add(candidate);
                    found = true;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 10:15:47 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/list_parse_err.txt

    ! go list ./p
    stderr '^p[/\\]b.go:2:2: expected ''package'', found ''EOF''$'
    ! go list -f '{{range .Imports}}{{.}} {{end}}' ./p
    stderr '^p[/\\]b.go:2:2: expected ''package'', found ''EOF''$'
    ! go list -test ./t
    stderr '^go: can''t load test package: t[/\\]t_test.go:8:1: expected declaration, found ʕ'
    ! go list -test -f '{{range .Imports}}{{.}} {{end}}' ./t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 15:42:09 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_main.txt

    			found = true
    		}
    	})
    	if !found {
    		fmt.Println("testing flags not registered")
    		os.Exit(1)
    	}
    	os.Exit(m.Run())
    }
    -- standalone_testmain_not_call_os_exit_test.go --
    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package standalone_testmain_not_call_os_exit_test
    
    import (
    	"testing"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 17 00:45:15 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  5. test/fixedbugs/issue15091.go

    // of the OAS defines part of its right-hand-side. (I.e., the race instrumentation
    // references a variable before it is defined.)
    func (options *Html) xyzzy(id string) string {
    	for count, found := options.headerIDs[id]; found; count, found = options.headerIDs[id] {
    		_ = count
    	}
    	return ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 989 bytes
    - Viewed (0)
  6. test/typeparam/issue50109.go

    	c.items[k] = Item[T]{
    		Object: x,
    	}
    }
    
    // Get gets an item from the cache. Returns the item or nil, and a bool indicating
    // whether the key was found.
    func (c *anyCache[T]) Get(k string) (T, bool) {
    	// "Inlining" of get and Expired
    	item, found := c.items[k]
    	if !found {
    		var ret T
    		return ret, false
    	}
    
    	return item.Object, true
    }
    
    type janitor[T any] struct {
    	stop chan bool
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  7. test/typeparam/issue53087.go

    	}
    	return r
    }
    
    func main() {
    	s1 := &S{"one"}
    	s2 := &S{"two"}
    
    	m := CloningMap[string, I]{inner: make(map[string]I)}
    	m = m.With("a", s1)
    	m = m.With("b", s2)
    
    	it, found := m.inner["a"]
    	if !found {
    		panic("a not found")
    	}
    	if _, ok := it.(*S); !ok {
    		panic(fmt.Sprintf("got %T want *main.S", it))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 08 16:23:09 UTC 2023
    - 930 bytes
    - Viewed (0)
  8. src/os/user/lookup.go

    	err error
    }
    
    // Lookup looks up a user by username. If the user cannot be found, the
    // returned error is of type [UnknownUserError].
    func Lookup(username string) (*User, error) {
    	if u, err := Current(); err == nil && u.Username == username {
    		return u, err
    	}
    	return lookupUser(username)
    }
    
    // LookupId looks up a user by userid. If the user cannot be found, the
    // returned error is of type [UnknownUserIdError].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. schema/schema_helper_test.go

    		for idx, field := range primaryFields {
    			var found bool
    			for _, f := range s.PrimaryFields {
    				if f.Name == field {
    					found = true
    				}
    			}
    
    			if idx == 0 {
    				if field != s.PrioritizedPrimaryField.Name {
    					t.Errorf("schema %v prioritized primary field should be %v, but got %v", s, field, s.PrioritizedPrimaryField.Name)
    				}
    			}
    
    			if !found {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:31:23 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. src/slices/sort_test.go

    		t.Run(tt.target, func(t *testing.T) {
    			{
    				pos, found := BinarySearch(tt.data, tt.target)
    				if pos != tt.wantPos || found != tt.wantFound {
    					t.Errorf("BinarySearch got (%v, %v), want (%v, %v)", pos, found, tt.wantPos, tt.wantFound)
    				}
    			}
    
    			{
    				pos, found := BinarySearchFunc(tt.data, tt.target, strings.Compare)
    				if pos != tt.wantPos || found != tt.wantFound {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top