Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,157 for expecting (0.4 sec)

  1. test/switch2.go

    // Verify that erroneous switch statements are detected by the compiler.
    // Does not compile.
    
    package main
    
    func f() {
    	switch {
    	case 0; // ERROR "expecting := or = or : or comma|expected :"
    	}
    
    	switch {
    	case 0; // ERROR "expecting := or = or : or comma|expected :"
    	default:
    	}
    
    	switch {
    	case 0: case 0: default:
    	}
    
    	switch {
    	case 0: f(); case 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 01 22:37:04 UTC 2022
    - 775 bytes
    - Viewed (0)
  2. pkg/config/validation/header_value_validator.go

    			} else if !isSpace(ch) {
    				return errors.New("invalid header configuration. Expecting ',', ']', or whitespace")
    			}
    
    		case ExpectStringParserState:
    			// Skip over whitespace looking for the starting quote of a JSON string.
    			if ch == '"' {
    				state = StringParserState
    			} else if !isSpace(ch) {
    				return errors.New("invalid header configuration. Expecting '\"'")
    			}
    
    		case StringParserState:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 15 21:37:52 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. pkg/cache/cache_test.go

    				v, ok := c.Get(key)
    				if !ok {
    					t.Errorf("Got false for key %s, expecting true", key)
    				} else if v.(int) != j {
    					t.Errorf("Got %d for key %s, expecting %d", v, key, j)
    				}
    				c.Remove(key)
    			}
    			wg.Done()
    		}()
    	}
    	wg.Wait()
    
    	stats := c.Stats()
    	if stats.Misses != 0 {
    		t.Errorf("Got %d misses, expecting %d", stats.Misses, 0)
    	}
    
    	if stats.Hits != uint64(workers*numIters) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 15:56:49 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Combinators.kt

                    unitSuccess
                } else if (tokenType == IDENTIFIER) {
                    failure("Expecting symbol '$s', but got '$tokenText' instead")
                } else if (tokenType == null) {
                    failure("Expecting symbol '$s'")
                } else {
                    failure("Expecting symbol '$s', but got a token of type '$tokenType' instead")
                }
            }
        }
    
    
        internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/TrackingHttpHandler.java

         *
         * @return null when this handler is not expecting any further requests.
         */
        @Nullable
        ResponseProducer selectResponseProducer(int id, HttpExchange exchange);
    
        boolean expecting(HttpExchange exchange);
    
        /**
         * Returns a precondition that asserts that this handler is not expecting any further requests to be released by the test in order to complete.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. cmd/config-current_test.go

    	}
    	defer os.RemoveAll(fsDir)
    
    	if err = newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
    		t.Fatalf("Init Test config failed")
    	}
    
    	if globalSite.Region() != globalMinioDefaultRegion {
    		t.Errorf("Expecting region `us-east-1` found %s", globalSite.Region())
    	}
    
    	// Set new region and verify.
    	config.SetRegion(globalServerConfig, "us-west-1")
    	site, err := config.LookupSite(
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/skipnonapplied_test.go

    	apiStatus, _ := err.(apierrors.APIStatus)
    	if err == nil || !apierrors.IsConflict(err) || len(apiStatus.Status().Details.Causes) != 1 {
    		t.Fatalf("Expecting to get one conflict but got %v", err)
    	}
    
    	if e, a := ".metadata.labels.app", apiStatus.Status().Details.Causes[0].Field; e != a {
    		t.Fatalf("Expecting to conflict on field %q but conflicted on field %q: %v", e, a, err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 16 20:03:48 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. test/syntax/semi4.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	for x		// GCCGO_ERROR "undefined"
    	{		// ERROR "unexpected {, expected for loop condition|expecting .*{.* after for clause"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 01 22:37:04 UTC 2022
    - 359 bytes
    - Viewed (0)
  9. pkg/api/service/util.go

    		specs := service.Spec.LoadBalancerSourceRanges
    		ipnets, err = utilnet.ParseIPNets(specs...)
    
    		if err != nil {
    			return nil, fmt.Errorf("service.Spec.LoadBalancerSourceRanges: %v is not valid. Expecting a list of IP ranges. For example, 10.0.0.0/24. Error msg: %v", specs, err)
    		}
    	} else {
    		val := service.Annotations[api.AnnotationLoadBalancerSourceRangesKey]
    		val = strings.TrimSpace(val)
    		if val == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 30 15:56:47 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. pkg/volume/csi/csi_attacher_test.go

    				attachID, err := csiAttacher.Attach(spec, types.NodeName(nodename))
    				if !fail && err != nil {
    					t.Errorf("expecting no failure, but got err: %v", err)
    				}
    				if fail && err == nil {
    					t.Errorf("expecting failure, but got no err")
    				}
    				if attachID != "" {
    					t.Errorf("expecting empty attachID, got %v", attachID)
    				}
    			}(tc.spec, tc.nodeName, tc.shouldFail)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
Back to top