Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 8,278 for boolp (0.1 sec)

  1. src/runtime/race/testdata/map_test.go

    	m := make(map[string]bool)
    	ch := make(chan bool, 1)
    	go func() {
    		delete(m, "")
    		ch <- true
    	}()
    	m[""] = true
    	<-ch
    }
    
    func TestRaceMapLenDelete(t *testing.T) {
    	m := make(map[string]bool)
    	ch := make(chan bool, 1)
    	go func() {
    		delete(m, "a")
    		ch <- true
    	}()
    	_ = len(m)
    	<-ch
    }
    
    func TestRaceMapVariable(t *testing.T) {
    	ch := make(chan bool, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 22:09:38 UTC 2017
    - 5.1K bytes
    - Viewed (0)
  2. migrator/column_type.go

    // PrimaryKey returns the column is primary key or not.
    func (ct ColumnType) PrimaryKey() (isPrimaryKey bool, ok bool) {
    	return ct.PrimaryKeyValue.Bool, ct.PrimaryKeyValue.Valid
    }
    
    // AutoIncrement returns the column is auto increment or not.
    func (ct ColumnType) AutoIncrement() (isAutoIncrement bool, ok bool) {
    	return ct.AutoIncrementValue.Bool, ct.AutoIncrementValue.Valid
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 24 01:31:58 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. src/runtime/race/testdata/slice_test.go

    	a := make([]int, 10)
    	ch := make(chan bool, 1)
    	go func() {
    		a[1] = 1
    		ch <- true
    	}()
    	a[1] = 2
    	<-ch
    }
    
    func TestNoRaceArrayWW(t *testing.T) {
    	var a [5]int
    	ch := make(chan bool, 1)
    	go func() {
    		a[0] = 1
    		ch <- true
    	}()
    	a[1] = 2
    	<-ch
    }
    
    func TestRaceArrayWW(t *testing.T) {
    	var a [5]int
    	ch := make(chan bool, 1)
    	go func() {
    		a[1] = 1
    		ch <- true
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 25 23:41:03 UTC 2020
    - 8.9K bytes
    - Viewed (0)
  4. src/encoding/gob/enc_helpers.go

    }
    
    func encBoolArray(state *encoderState, v reflect.Value) bool {
    	// Can only slice if it is addressable.
    	if !v.CanAddr() {
    		return false
    	}
    	return encBoolSlice(state, v.Slice(0, v.Len()))
    }
    
    func encBoolSlice(state *encoderState, v reflect.Value) bool {
    	slice, ok := v.Interface().([]bool)
    	if !ok {
    		// It is kind bool but not type bool. TODO: We can handle this unsafely.
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 10 17:50:11 UTC 2018
    - 9.9K bytes
    - Viewed (0)
  5. migrator.go

    	ColumnType() (columnType string, ok bool) // varchar(64)
    	PrimaryKey() (isPrimaryKey bool, ok bool)
    	AutoIncrement() (isAutoIncrement bool, ok bool)
    	Length() (length int64, ok bool)
    	DecimalSize() (precision int64, scale int64, ok bool)
    	Nullable() (nullable bool, ok bool)
    	Unique() (unique bool, ok bool)
    	ScanType() reflect.Type
    	Comment() (value string, ok bool)
    	DefaultValue() (value string, ok bool)
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. pkg/test/framework/components/echo/match/matchers.go

    	return i.Config().IsExternal()
    }
    
    // NotExternal is equivalent to Not(External)
    var NotExternal = Not(External)
    
    // Naked matches instances with any subset marked with SidecarInject equal to false.
    var Naked Matcher = func(i echo.Instance) bool {
    	return i.Config().IsNaked()
    }
    
    // AllNaked matches instances where every subset has SidecarInject set to false.
    var AllNaked Matcher = func(i echo.Instance) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. test/fixedbugs/issue21979.go

    package p
    
    func f() {
    	_ = bool("")      // ERROR "cannot convert .. \(.*untyped string.*\) to type bool|invalid type conversion"
    	_ = bool(1)       // ERROR "cannot convert 1 \(.*untyped int.*\) to type bool|invalid type conversion"
    	_ = bool(1.0)     // ERROR "cannot convert 1.* \(.*untyped float.*\) to type bool|invalid type conversion"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. pkg/kube/krt/sync.go

    	name string
    	f    func() bool
    }
    
    func (c pollSyncer) WaitUntilSynced(stop <-chan struct{}) bool {
    	return kube.WaitForCacheSync(c.name, stop, c.f)
    }
    
    func (c pollSyncer) HasSynced() bool {
    	return c.f()
    }
    
    type alwaysSynced struct{}
    
    func (c alwaysSynced) WaitUntilSynced(stop <-chan struct{}) bool {
    	return true
    }
    
    func (c alwaysSynced) HasSynced() bool {
    	return true
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 03 14:25:07 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. pkg/kubelet/apis/config/v1beta1/defaults_test.go

    				},
    				EnableSystemLogHandler:        utilpointer.Bool(true),
    				EnableProfilingHandler:        utilpointer.Bool(true),
    				EnableDebugFlagsHandler:       utilpointer.Bool(true),
    				SeccompDefault:                utilpointer.Bool(false),
    				MemoryThrottlingFactor:        utilpointer.Float64(DefaultMemoryThrottlingFactor),
    				RegisterNode:                  utilpointer.Bool(true),
    				LocalStorageCapacityIsolation: utilpointer.Bool(true),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 21:10:42 UTC 2024
    - 51K bytes
    - Viewed (0)
  10. src/runtime/race/testdata/select_test.go

    	var x int
    	_ = x
    	compl := make(chan bool)
    	c := make(chan bool)
    	c1 := make(chan bool)
    	go func() {
    		select {
    		case <-c:
    		case <-c1:
    		}
    		x = 1
    		compl <- true
    	}()
    	x = 2
    	close(c)
    	runtime.Gosched()
    	<-compl
    }
    
    func TestNoRaceSelect3(t *testing.T) {
    	var x int
    	_ = x
    	compl := make(chan bool)
    	c := make(chan bool, 10)
    	c1 := make(chan bool)
    	go func() {
    		x = 1
    		select {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 05:25:54 UTC 2020
    - 4.1K bytes
    - Viewed (0)
Back to top