Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 74 for useless3 (0.19 sec)

  1. src/go/doc/testdata/blank.go

    	tweedledum
    	C1
    	C2
    	alice
    	C3
    	redQueen int = iota
    	C4
    )
    
    // Constants with a single type that is not propagated.
    const (
    	zero     os.FileMode = 0
    	Default              = 0644
    	Useless              = 0312
    	WideOpen             = 0777
    )
    
    // Constants with an imported type that is propagated.
    const (
    	zero os.FileMode = 0
    	M1
    	M2
    	M3
    )
    
    // Package constants.
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 18:01:14 UTC 2017
    - 1.1K bytes
    - Viewed (0)
  2. test/blank.go

    	if x != y {
    		println("invalid fp1 call:", x, y)
    		panic("bad fp1")
    	}
    }
    
    func m() {
    	var i I
    
    	i = TI{}
    	i.M(1, 1)
    	i.M(2, 2)
    
    	fp(1, 1)
    	fp(2, 2)
    }
    
    // useless but legal
    var _ int = 1
    var _ = 2
    var _, _ = 3, 4
    
    const _ = 3
    const _, _ = 4, 5
    
    type _ int
    
    func _() {
    	panic("oops")
    }
    
    func ff() {
    	var _ int = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 08 18:36:20 UTC 2013
    - 2.1K bytes
    - Viewed (0)
  3. cmd/os_windows.go

    					Err:  err,
    				})
    				if err == errFileNotFound {
    					return nil
    				}
    				return err
    			}
    		}
    		name := syscall.UTF16ToString(data.FileName[0:])
    		if name == "" || name == "." || name == ".." { // Useless names
    			continue
    		}
    
    		var typ os.FileMode // regular file
    		switch {
    		case data.FileAttributes&syscall.FILE_ATTRIBUTE_REPARSE_POINT != 0:
    			// Reparse point is a symlink
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. pkg/config/conversion.go

    	mcp "istio.io/api/mcp/v1alpha1"
    )
    
    // Convert from model.Config, which has no associated proto, to MCP Resource proto.
    // TODO: define a proto matching Config - to avoid useless superficial conversions.
    func PilotConfigToResource(c *Config) (*mcp.Resource, error) {
    	r := &mcp.Resource{}
    
    	// MCP, K8S and Istio configs use gogo configs
    	// On the wire it's the same as golang proto.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 23 17:19:38 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  5. src/os/os_unix_test.go

    	}
    	t.Parallel()
    
    	// Use TempDir() to make sure we're on a local file system,
    	// so that the group ids returned by Getgroups will be allowed
    	// on the file. On NFS, the Getgroups groups are
    	// basically useless.
    	f := newFile("TestChown", t)
    	defer Remove(f.Name())
    	defer f.Close()
    	dir, err := f.Stat()
    	if err != nil {
    		t.Fatalf("stat %s: %s", f.Name(), err)
    	}
    
    	// Can't change uid unless root, but can try
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  6. internal/ringbuffer/ring_buffer_benchmark_test.go

    	buf := make([]byte, 512)
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		rb.Write(data)
    		rb.Read(buf)
    	}
    }
    
    func BenchmarkRingBuffer_AsyncRead(b *testing.B) {
    	// Pretty useless benchmark, but it's here for completeness.
    	rb := New(1024)
    	data := []byte(strings.Repeat("a", 512))
    	buf := make([]byte, 512)
    
    	go func() {
    		for {
    			rb.Read(buf)
    		}
    	}()
    
    	b.ResetTimer()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/syscall/dirent.go

    		if !ok || namoff+namlen > uint64(len(rec)) {
    			break
    		}
    		name := rec[namoff : namoff+namlen]
    		for i, c := range name {
    			if c == 0 {
    				name = name[:i]
    				break
    			}
    		}
    		// Check for useless names before allocating a string.
    		if string(name) == "." || string(name) == ".." {
    			continue
    		}
    		max--
    		count++
    		names = append(names, string(name))
    	}
    	return origlen - len(buf), count, names
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/dirent.go

    		if !ok || namoff+namlen > uint64(len(rec)) {
    			break
    		}
    		name := rec[namoff : namoff+namlen]
    		for i, c := range name {
    			if c == 0 {
    				name = name[:i]
    				break
    			}
    		}
    		// Check for useless names before allocating a string.
    		if string(name) == "." || string(name) == ".." {
    			continue
    		}
    		max--
    		count++
    		names = append(names, string(name))
    	}
    	return origlen - len(buf), count, names
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/nilfunc/nilfunc.go

    // Copyright 2013 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 nilfunc defines an Analyzer that checks for useless
    // comparisons against nil.
    package nilfunc
    
    import (
    	_ "embed"
    	"go/ast"
    	"go/token"
    	"go/types"
    
    	"golang.org/x/tools/go/analysis"
    	"golang.org/x/tools/go/analysis/passes/inspect"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. test/recover1.go

    }
    
    func mustRecover(x interface{}) {
    	mustNotRecover()	// because it's not a defer call
    	v := recover()
    	if v == nil {
    		println("missing recover")
    		die()	// panic is useless here
    	}
    	if v != x {
    		println("wrong value", v, x)
    		die()
    	}
    	
    	// the value should be gone now regardless
    	v = recover()
    	if v != nil {
    		println("recover didn't recover")
    		die()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.5K bytes
    - Viewed (0)
Back to top