Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 858 for isSelect (0.13 sec)

  1. tests/connpool_test.go

    			"SELECT * FROM `users` WHERE name = ? AND `users`.`deleted_at` IS NULL ORDER BY `users`.`id` LIMIT ?",
    			"SELECT * FROM `users` WHERE name = ? AND `users`.`deleted_at` IS NULL ORDER BY `users`.`id` LIMIT ?",
    			"INSERT INTO `users` (`created_at`,`updated_at`,`deleted_at`,`name`,`age`,`birthday`,`company_id`,`manager_id`,`active`) VALUES (?,?,?,?,?,?,?,?,?)",
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. test/fixedbugs/issue8017.go

    // by slicelit and causes an internal error afterwards
    // when gen_as_init parses it back.
    
    package main
    
    func F() {
    	var ch chan int
    	select {
    	case <-ch:
    	case <-make(chan int, len([2][]int{([][]int{})[len(ch)], []int{}})):
    	}
    }
    
    func G() {
    	select {
    	case <-([1][]chan int{[]chan int{}})[0][0]:
    	default:
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 540 bytes
    - Viewed (0)
  3. test/fixedbugs/issue20923.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 20923: gccgo failed to compile parenthesized select case expressions.
    
    package p
    
    func F(c chan bool) {
    	select {
    	case (<-c):
    	case _ = (<-c):
    	case _, _ = (<-c):
    	case (c) <- true:
    	default:
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 20:13:07 UTC 2018
    - 379 bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/transform/AttributeMatchingArtifactVariantSelectorSpec.groovy

            when:
            def result = selector.select(variantSetOf(variants), requestedAttributes, false, factory)
    
            then:
            result == resolvedArtifactSet
            1 * attributeMatcher.matches(_, _, _) >> [variant]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 13:08:22 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. src/os/signal/signal_plan9_test.go

    	go func() {
    		sig := make(chan os.Signal, 1)
    		Notify(sig, syscall.Note("alarm"))
    		defer Stop(sig)
    	Loop:
    		for {
    			select {
    			case <-sig:
    			case <-done:
    				break Loop
    			}
    		}
    		finished <- true
    	}()
    	go func() {
    	Loop:
    		for {
    			select {
    			case <-done:
    				break Loop
    			default:
    				postNote(syscall.Getpid(), "alarm")
    				runtime.Gosched()
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Mar 14 17:56:50 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  6. test/fixedbugs/issue8336.go

    // license that can be found in the LICENSE file.
    
    // Issue 8336. Order of evaluation of receive channels in select.
    
    package main
    
    type X struct {
    	c chan int
    }
    
    func main() {
    	defer func() {
    		recover()
    	}()
    	var x *X
    	select {
    	case <-x.c: // should fault and panic before foo is called
    	case <-foo():
    	}
    }
    
    func foo() chan int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 515 bytes
    - Viewed (0)
  7. test/fixedbugs/issue4313.go

    // Copyright 2012 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.
    
    // Order of operations in select.
    
    package main
    
    func main() {
    	c := make(chan int, 1)
    	x := 0
    	select {
    	case c <- x: // should see x = 0, not x = 42 (after makec)
    	case <-makec(&x): // should be evaluated only after c and x on previous line
    	}
    	y := <-c
    	if y != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 546 bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/labels.go

    		}
    	}
    
    L9:
    	switch {
    	case true:
    		break L9
    	defalt /* ERROR "label defalt declared and not used" */ :
    	}
    
    L10:
    	select {
    	default:
    		break L10
    		break L9 /* ERROR "invalid break label L9" */
    	}
    
    	goto L10a
    L10a: L10b:
    	select {
    	default:
    		break L10a /* ERROR "invalid break label L10a" */
    		break L10b
    		continue L10b /* ERROR "invalid continue label L10b" */
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. pilot/pkg/xds/adstest.go

    				log.Warnf("ads received error: %v", err)
    			}
    			select {
    			case a.error <- err:
    			case <-a.context.Done():
    			}
    			return
    		}
    		select {
    		case a.responses <- resp:
    		case <-a.context.Done():
    			return
    		}
    	}
    }
    
    // DrainResponses reads all responses, but does nothing to them
    func (a *AdsTest) DrainResponses() {
    	for {
    		select {
    		case <-a.context.Done():
    			return
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Feb 04 03:39:42 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. tests/benchmark_test.go

    	b.ResetTimer()
    	for x := 0; x < b.N; x++ {
    		DB.Raw("select * from users where id = ?", user.ID).Scan(&u)
    	}
    }
    
    func BenchmarkScanSlice(b *testing.B) {
    	DB.Exec("delete from users")
    	for i := 0; i < 10_000; i++ {
    		user := *GetUser(fmt.Sprintf("scan-%d", i), Config{})
    		DB.Create(&user)
    	}
    
    	var u []User
    	b.ResetTimer()
    	for x := 0; x < b.N; x++ {
    		DB.Raw("select * from users").Scan(&u)
    	}
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 01 03:50:57 UTC 2022
    - 1.5K bytes
    - Viewed (0)
Back to top