Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,157 for expecting (0.16 sec)

  1. pkg/kubelet/client/kubelet_client_test.go

    			KeyFile: "../../client/testdata/mycertvalid.key",
    			// TLS Configuration
    			CAFile: "../../client/testdata/myCA.cer",
    		},
    	}
    
    	rt, err := MakeTransport(config)
    	if err != nil {
    		t.Errorf("Not expecting an error %#v", err)
    	}
    	if rt == nil {
    		t.Error("rt should not be nil")
    	}
    }
    
    func TestMakeInsecureTransport(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 01:34:49 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/test/integration/apply_test.go

    		Body(yamlBody).
    		DoRaw(context.TODO())
    	if err == nil {
    		t.Fatalf("Expecting to get conflicts when applying object, got no error: %s", result)
    	}
    	status, ok := err.(*errors.StatusError)
    	if !ok {
    		t.Fatalf("Expecting to get conflicts as API error")
    	}
    	if len(status.Status().Details.Causes) < 1 {
    		t.Fatalf("Expecting to get at least one conflict when applying object, got: %v", status.Status().Details.Causes)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 27 11:48:28 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  3. src/encoding/json/scanner.go

    	if c == 'r' {
    		s.step = stateTr
    		return scanContinue
    	}
    	return s.error(c, "in literal true (expecting 'r')")
    }
    
    // stateTr is the state after reading `tr`.
    func stateTr(s *scanner, c byte) int {
    	if c == 'u' {
    		s.step = stateTru
    		return scanContinue
    	}
    	return s.error(c, "in literal true (expecting 'u')")
    }
    
    // stateTru is the state after reading `tru`.
    func stateTru(s *scanner, c byte) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  4. test/fixedbugs/issue17328.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() {
    	i := 0
    	for ; ; i++) { // ERROR "unexpected \), expecting { after for clause|expected .*{.*|expected .*;.*"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 17:26:06 UTC 2020
    - 355 bytes
    - Viewed (0)
  5. pkg/log/scope_test.go

    	defer func() {
    		if r := recover(); r != nil {
    			return
    		}
    		t.Errorf("Expecting to panic when using bad scope name %s, but didn't", name)
    	}()
    
    	_ = RegisterScope(name, "A poorly named scope")
    }
    
    func TestBadWriter(t *testing.T) {
    	o := testOptions()
    	if err := Configure(o); err != nil {
    		t.Errorf("Got err '%v', expecting success", err)
    	}
    
    	pt := funcs.Load().(patchTable)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/name_flags_test.go

    				t.Fatalf("expected to match name printer for output format %q", tc.outputFormat)
    			}
    
    			if len(tc.expectedError) > 0 {
    				if err == nil || !strings.Contains(err.Error(), tc.expectedError) {
    					t.Errorf("expecting error %q, got %v", tc.expectedError, err)
    				}
    				return
    			}
    			if err != nil {
    				t.Fatalf("unexpected error: %v", err)
    			}
    
    			out := bytes.NewBuffer([]byte{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 21 15:08:30 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  7. pkg/env/var_test.go

    	vars := VarDescriptions()
    	if vars[0].Name != "TESTXYZ1" {
    		t.Errorf("Expecting TESTXYZ1, got %s", vars[0].Name)
    	}
    	if vars[0].Description != "A string" {
    		t.Errorf("Expected 'A string', got '%s'", vars[0].Description)
    	}
    
    	if vars[1].Name != "TESTXYZ2" {
    		t.Errorf("Expecting TESTXYZ2, got %s", vars[0].Name)
    	}
    	if vars[1].Description != "An int" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  8. test/fixedbugs/issue13273.go

    	<-<-chan int // ERROR "unexpected <-, expected chan|expecting {" (new parser: same error as for type decl)
    
    	type _ <-chan<-int // ERROR "unexpected int, expected chan|expected .*chan.*|expected chan|expected .*;.* or .*}.* or newline"
    	<-chan<-int // ERROR "unexpected int, expected chan|expecting {" (new parser: same error as for type decl)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 01 22:37:04 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/ArtifactResolutionExpectationSpec.groovy

            withModuleMetadata(expectation)
            withoutModuleMetadata(expectation)
        }
    
        /**
         * Short-hand notation for expecting a list of files independently of the fact module metadata is used or not
         * @param fileNames
         */
        void expectFiles(String... fileNames) {
            always {
                expectFiles(fileNames as List<String>)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/io/pipe.go

    // Copyright 2009 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.
    
    // Pipe adapter to connect code expecting an io.Reader
    // with code expecting an io.Writer.
    
    package io
    
    import (
    	"errors"
    	"sync"
    )
    
    // onceError is an object that will only store an error once.
    type onceError struct {
    	sync.Mutex // guards following
    	err        error
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:34:35 UTC 2023
    - 5.1K bytes
    - Viewed (0)
Back to top