Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 858 for isSelect (0.14 sec)

  1. src/internal/types/testdata/check/gotos.go

    		goto L /* ERROR "goto L jumps into block" */
    	}
    }
    
    // select
    // different from switch.  the statement has no implicit block around it.
    
    func _() {
    L:
    	select {
    	case <-c:
    		goto L
    	}
    }
    
    func _() {
    L:
    	select {
    	case c <- 1:
    
    	default:
    		goto L
    	}
    }
    
    func _() {
    	select {
    	case <-c:
    
    	default:
    	L:
    		goto L
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  2. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginHtmlReportIntegrationTest.groovy

         */
        private List<List<String>> parseTable(Element table) {
            def result = []
            def rows = table.select("tr")
            rows.each {row ->
                def rowResult = []
                def cols = row.select("td")
                if (cols.isEmpty()) {
                    cols = row.select("th")
                }
                cols.each {col ->
                    rowResult << col.text()
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. hack/lint-dependencies.sh

    go run k8s.io/kubernetes/cmd/dependencyverifier "${KUBE_ROOT}/hack/unwanted-dependencies.json"
    
    outdated=$(go list -m -json all | jq -r "
      select(.Replace.Version != null) |
      select(.Version != .Replace.Version) |
      select(.Path) |
      \"\(.Path)
        pinned:    \(.Replace.Version)
        preferred: \(.Version)
        hack/pin-dependency.sh \(.Path) \(.Version)\"
    ")
    if [[ -n "${outdated}" ]]; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:42 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. test/typeparam/chansimp.dir/a.go

    // using the Release method.
    func (e *Exclusive[Val]) TryAcquire() (v Val, ok bool) {
    	select {
    	case r := <-e.c:
    		return r, true
    	default:
    		return v, false
    	}
    }
    
    // Release updates and releases the value.
    // This method panics if the value has not been acquired.
    func (e *Exclusive[Val]) Release(v Val) {
    	select {
    	case e.c <- v:
    	default:
    		panic("Exclusive Release without Acquire")
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:40:40 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  5. pilot/pkg/keycertbundle/watcher_test.go

    	// 1. no key cert bundle
    	_, watch1 := watcher.AddWatcher()
    	select {
    	case bundle := <-watch1:
    		t.Errorf("watched unexpected keyCertBundle: %v", bundle)
    		return
    	default:
    	}
    
    	key := []byte("key")
    	cert := []byte("cert")
    	ca := []byte("caBundle")
    	// 2. set key cert bundle
    	watcher.SetAndNotify(key, cert, ca)
    	select {
    	case <-watch1:
    		keyCertBundle := watcher.GetKeyCertBundle()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 28 17:46:00 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/VariantResolvingArtifactSetTest.groovy

            artifactSet.select(new ArtifactVariantSelector() {
                @Override
                ResolvedArtifactSet select(ResolvedVariantSet candidates, ImmutableAttributes requestAttributes, boolean allowNoMatchingVariants, ArtifactVariantSelector.ResolvedArtifactTransformer factory) {
                    assert candidates.variants.size() == 2
                    // select the first variant
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Jan 21 03:08:51 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. tests/soft_delete_test.go

    		t.Fatalf("invalid sql generated, got %v", sql)
    	}
    
    	sql = DB.Session(&gorm.Session{DryRun: true}).Table("user u").Select("name").Find(&User{}).Statement.SQL.String()
    	if !regexp.MustCompile(`SELECT .name. FROM user u WHERE .u.\..deleted_at. IS NULL`).MatchString(sql) {
    		t.Errorf("Table with escape character, got %v", sql)
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 01 06:40:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprog/deadlock.go

    }
    
    func SimpleDeadlock() {
    	select {}
    	panic("not reached")
    }
    
    func InitDeadlock() {
    	select {}
    	panic("not reached")
    }
    
    func LockedDeadlock() {
    	runtime.LockOSThread()
    	select {}
    }
    
    func LockedDeadlock2() {
    	go func() {
    		runtime.LockOSThread()
    		select {}
    	}()
    	time.Sleep(time.Millisecond)
    	select {}
    }
    
    func GoexitDeadlock() {
    	F := func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 27 20:44:24 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  9. test/label1.go

    		continue // ERROR "continue is not in a loop$|continue statement not within for"
    	}
    	select {
    	default:
    		continue // ERROR "continue is not in a loop$|continue statement not within for"
    	}
    
    }
    
    func f2() {
    L1:
    	for {
    		if x == 0 {
    			break L1
    		}
    		if x == 1 {
    			continue L1
    		}
    		goto L1
    	}
    
    L2:
    	select {
    	default:
    		if x == 0 {
    			break L2
    		}
    		if x == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 28 02:31:54 UTC 2020
    - 2.1K bytes
    - Viewed (0)
  10. tests/gorm_test.go

    			t.Fatalf("first expects: %v, got %v", u1, got)
    		}
    
    		results = DB.Select("id, name").Find(&got)
    		if results.Error != nil {
    			t.Fatalf("errors happened on first: %v", results.Error)
    		} else if results.RowsAffected != 1 {
    			t.Fatalf("rows affected expects: %v, got %v", 1, results.RowsAffected)
    		} else if got.ID != u1.ID {
    			t.Fatalf("select expects: %v, got %v", u1, got)
    		}
    
    		u1.Name = "jinzhu"
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Jun 01 07:22:21 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top