Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sameSlice (0.1 sec)

  1. src/cmd/compile/internal/types2/api_test.go

    		if (f != nil) != test.found {
    			if f == nil {
    				t.Errorf("%s: got no object; want one", test.src)
    			} else {
    				t.Errorf("%s: got object = %v; want none", test.src, f)
    			}
    		}
    		if !sameSlice(index, test.index) {
    			t.Errorf("%s: got index = %v; want %v", test.src, index, test.index)
    		}
    		if indirect != test.indirect {
    			t.Errorf("%s: got indirect = %v; want %v", test.src, indirect, test.indirect)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. src/go/types/api_test.go

    		if (f != nil) != test.found {
    			if f == nil {
    				t.Errorf("%s: got no object; want one", test.src)
    			} else {
    				t.Errorf("%s: got object = %v; want none", test.src, f)
    			}
    		}
    		if !sameSlice(index, test.index) {
    			t.Errorf("%s: got index = %v; want %v", test.src, index, test.index)
    		}
    		if indirect != test.indirect {
    			t.Errorf("%s: got indirect = %v; want %v", test.src, indirect, test.indirect)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  3. src/os/dir_windows.go

    				nextEntryOffset = info.NextEntryOffset
    				nameslice = unsafe.Slice(&info.FileName[0], info.FileNameLength/2)
    			}
    			d.bufp += int(nextEntryOffset)
    			islast = nextEntryOffset == 0
    			if islast {
    				d.bufp = 0
    			}
    			if (len(nameslice) == 1 && nameslice[0] == '.') ||
    				(len(nameslice) == 2 && nameslice[0] == '.' && nameslice[1] == '.') {
    				// Ignore "." and ".." and avoid allocating a string for them.
    				continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top