Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 186 for errstr (0.21 sec)

  1. test/fixedbugs/issue32187.go

    	}
    
    	for _, tc := range tests {
    		testFuncShouldPanic(tc.name, tc.errStr, tc.f)
    	}
    }
    
    func testFuncShouldPanic(name, want string, f func()) {
    	defer func() {
    		e := recover()
    		if e == nil {
    			log.Fatalf("%s: comparison did not panic\n", name)
    		}
    		if have := e.(error).Error(); !strings.Contains(have, want) {
    			log.Fatalf("%s: wrong panic message: have %q, want %q\n", name, have, want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 19 23:02:39 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. src/runtime/sys_plan9_386.s

    TEXT runtime·setfpmasks(SB),NOSPLIT,$0
    	RET
    
    #define ERRMAX 128	/* from os_plan9.h */
    
    // void errstr(int8 *buf, int32 len)
    TEXT errstr<>(SB),NOSPLIT,$0
    	MOVL    $41, AX
    	INT     $64
    	RET
    
    // func errstr() string
    // Only used by package syscall.
    // Grab error string due to a syscall made
    // in entersyscall mode, without going
    // through the allocator (issue 4994).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 22:12:04 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  3. src/runtime/sys_plan9_amd64.s

    	ORL	$(0x3F<<7), AX
    	MOVL	AX, 0(SP)
    	LDMXCSR	0(SP)
    	RET
    
    #define ERRMAX 128	/* from os_plan9.h */
    
    // void errstr(int8 *buf, int32 len)
    TEXT errstr<>(SB),NOSPLIT,$0
    	MOVQ    $41, BP
    	SYSCALL
    	RET
    
    // func errstr() string
    // Only used by package syscall.
    // Grab error string due to a syscall made
    // in entersyscall mode, without going
    // through the allocator (issue 4994).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 16:41:22 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. src/html/template/js.go

    		//     x/{{y}}
    		// turning into
    		//     x//* error marshaling y:
    		//          second line of error message */null
    		errStr := err.Error()
    		errStr = strings.ReplaceAll(errStr, "*/", "* /")
    		errStr = strings.ReplaceAll(errStr, "</script", `\x3C/script`)
    		errStr = strings.ReplaceAll(errStr, "<!--", `\x3C!--`)
    		return fmt.Sprintf(" /* %s */null ", errStr)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/resource/query_param_verifier_test.go

    				if supports != test.supports || ((err == nil) != test.success) {
    					errStr := "nil"
    					if test.success == false {
    						errStr = "err"
    					}
    					t.Errorf("SupportsQueryParam(doc, %v, %v) = (%v, %v), expected (%v, %v)",
    						test.gvk, test.queryParam,
    						supports, err,
    						test.supports, errStr,
    					)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 01:23:27 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  6. cmd/update_test.go

    		},
    	}
    	for i, testCase := range testCases {
    		if testCase.errStr != "" {
    			got := releaseTimeToReleaseTag(testCase.t)
    			if got != testCase.tag && testCase.errStr == "" {
    				t.Errorf("Test %d: Expected %v but got %v", i+1, testCase.tag, got)
    			}
    		}
    		tagTime, err := releaseTagToReleaseTime(testCase.tag)
    		if err != nil && err.Error() != testCase.errStr {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Mar 09 03:07:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. cmd/sftp-server-driver.go

    	var errStr string
    	if err != nil {
    		errStr = err.Error()
    	}
    	return madmin.TraceInfo{
    		TraceType: madmin.TraceFTP,
    		Time:      startTime,
    		NodeName:  globalLocalNodeName,
    		FuncName:  s.Method,
    		Duration:  time.Since(startTime),
    		Path:      s.Filepath,
    		Error:     errStr,
    		Bytes:     sz,
    		Custom: map[string]string{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. pkg/kubelet/pluginmanager/cache/desired_state_of_world.go

    	simpleMsg, detailedMsg := plugin.GenerateMsg(prefixMsg, errSuffix(err))
    	return fmt.Errorf(simpleMsg), fmt.Errorf(detailedMsg)
    }
    
    // Generates an error string with the format ": <err>" if err exists
    func errSuffix(err error) string {
    	errStr := ""
    	if err != nil {
    		errStr = fmt.Sprintf(": %v", err)
    	}
    	return errStr
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 12:47:44 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  9. cmd/os-instrumented.go

    	var errStr string
    	if err != nil {
    		errStr = err.Error()
    	}
    	return madmin.TraceInfo{
    		TraceType: madmin.TraceOS,
    		Time:      startTime,
    		NodeName:  globalLocalNodeName,
    		FuncName:  "os." + s.String(),
    		Duration:  duration,
    		Path:      path,
    		Error:     errStr,
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 15 01:09:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. pkg/controller/certificates/authority/authority_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    
    			certDER, err := ca.Sign(csr, test.policy)
    			if len(test.wantErr) > 0 {
    				if errStr := errString(err); test.wantErr != errStr {
    					t.Fatalf("expected error %s but got %s", test.wantErr, errStr)
    				}
    				return
    			}
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			cert, err := x509.ParseCertificate(certDER)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 23 19:36:11 UTC 2021
    - 7.3K bytes
    - Viewed (0)
Back to top