Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,009 for boolp (0.06 sec)

  1. pkg/printers/internalversion/printers_test.go

    		for i := range rows {
    			rows[i].Object.Object = nil
    		}
    		if !reflect.DeepEqual(test.expected, rows) {
    			t.Errorf("%d mismatch: %s", i, cmp.Diff(test.expected, rows))
    		}
    	}
    }
    
    func boolP(b bool) *bool {
    	return &b
    }
    
    func TestPrintConfigMap(t *testing.T) {
    	tests := []struct {
    		configMap api.ConfigMap
    		expected  []metav1.TableRow
    	}{
    		// Basic config map with no data.
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  2. cmd/kubelet/app/server.go

    	kubeletFlags.AddFlags(cleanFlagSet)
    	options.AddKubeletConfigFlags(cleanFlagSet, kubeletConfig)
    	options.AddGlobalFlags(cleanFlagSet)
    	cleanFlagSet.BoolP("help", "h", false, fmt.Sprintf("help for %s", cmd.Name()))
    
    	// ugly, but necessary, because Cobra's default UsageFunc and HelpFunc pollute the flagset with global flags
    	const usageFmt = "Usage:\n  %s\n\nFlags:\n%s"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  3. src/flag/flag_test.go

    	}
    }
    
    func testParse(f *FlagSet, t *testing.T) {
    	if f.Parsed() {
    		t.Error("f.Parse() = true before Parse")
    	}
    	boolFlag := f.Bool("bool", false, "bool value")
    	bool2Flag := f.Bool("bool2", false, "bool2 value")
    	intFlag := f.Int("int", 0, "int value")
    	int64Flag := f.Int64("int64", 0, "int64 value")
    	uintFlag := f.Uint("uint", 0, "uint value")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  4. src/cmd/go/internal/test/flagdefs.go

    	"timeout":              true,
    	"trace":                true,
    	"v":                    true,
    }
    
    var passAnalyzersToVet = map[string]bool{
    	"appends":          true,
    	"asmdecl":          true,
    	"assign":           true,
    	"atomic":           true,
    	"bool":             true,
    	"bools":            true,
    	"buildtag":         true,
    	"buildtags":        true,
    	"cgocall":          true,
    	"composites":       true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/database/sql/convert_test.go

    		{s: int64(0), d: &scanbool, wantbool: false},
    		{s: uint16(0), d: &scanbool, wantbool: false},
    
    		// Not bools
    		{s: "yup", d: &scanbool, wanterr: `sql/driver: couldn't convert "yup" into type bool`},
    		{s: 2, d: &scanbool, wanterr: `sql/driver: couldn't convert 2 into type bool`},
    
    		// Floats
    		{s: float64(1.5), d: &scanf64, wantf64: float64(1.5)},
    		{s: int64(1), d: &scanf64, wantf64: float64(1)},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  6. pkg/proxy/apis/config/types.go

    // Kubernetes proxy server.
    type KubeProxyConfiguration struct {
    	metav1.TypeMeta
    
    	// featureGates is a map of feature names to bools that enable or disable alpha/experimental features.
    	FeatureGates map[string]bool
    
    	// clientConnection specifies the kubeconfig file and client connection settings for the proxy
    	// server to use when communicating with the apiserver.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. src/time/tick_test.go

    			})
    		})
    	}
    }
    
    type timer interface {
    	Stop() bool
    	Reset(Duration) bool
    }
    
    // tickerTimer is a Timer with Reset and Stop methods that return bools,
    // to have the same signatures as Timer.
    type tickerTimer struct {
    	*Ticker
    	stopped bool
    }
    
    func (t *tickerTimer) Stop() bool {
    	pending := !t.stopped
    	t.stopped = true
    	t.Ticker.Stop()
    	return pending
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/stmt0.go

    	case 1.0, 2.0, x /* ERROR "mismatched types int and float64" */ :
    	}
    	switch x {
    	case 1.0:
    	}
    
    	// untyped bools become of type bool
    	type B bool
    	var b B = true
    	switch x == x {
    	case b /* ERROR "mismatched types B and bool" */ :
    	}
    	switch {
    	case b /* ERROR "mismatched types B and bool" */ :
    	}
    }
    
    func issue11667() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. src/internal/cpu/cpu.go

    	_            CacheLinePad
    	HasAES       bool
    	HasADX       bool
    	HasAVX       bool
    	HasAVX2      bool
    	HasAVX512F   bool
    	HasAVX512BW  bool
    	HasAVX512VL  bool
    	HasBMI1      bool
    	HasBMI2      bool
    	HasERMS      bool
    	HasFMA       bool
    	HasOSXSAVE   bool
    	HasPCLMULQDQ bool
    	HasPOPCNT    bool
    	HasRDTSCP    bool
    	HasSHA       bool
    	HasSSE3      bool
    	HasSSSE3     bool
    	HasSSE41     bool
    	HasSSE42     bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/sys/cpu/cpu.go

    	HasTHUMB    bool // ARM Thumb instruction set
    	Has26BIT    bool // Address space limited to 26-bits
    	HasFASTMUL  bool // 32-bit operand, 64-bit result multiplication support
    	HasFPA      bool // Floating point arithmetic support
    	HasVFP      bool // Vector floating point support
    	HasEDSP     bool // DSP Extensions support
    	HasJAVA     bool // Java instruction set
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top