Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 186 for errstr (0.14 sec)

  1. src/crypto/x509/internal/macos/security.go

    func SecTrustEvaluateWithError(trustObj CFRef) (int, error) {
    	var errRef CFRef
    	ret := syscall(abi.FuncPCABI0(x509_SecTrustEvaluateWithError_trampoline), uintptr(trustObj), uintptr(unsafe.Pointer(&errRef)), 0, 0, 0, 0)
    	if int32(ret) != 1 {
    		errStr := CFErrorCopyDescription(errRef)
    		err := errors.New(CFStringToString(errStr))
    		errCode := CFErrorGetCode(errRef)
    		CFRelease(errRef)
    		CFRelease(errStr)
    		return errCode, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 21 20:05:17 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  2. plugin/pkg/admission/certificates/subjectrestriction/admission_test.go

    	return t.obj
    }
    
    func (t *testAttributes) GetName() string {
    	return t.name
    }
    
    func errStr(err error) string {
    	if err == nil {
    		return ""
    	}
    	es := err.Error()
    	if len(es) == 0 {
    		panic("invalid empty error")
    	}
    	return es
    }
    
    func pemWithGroup(group string) []byte {
    	template := &x509.CertificateRequest{
    		Subject: pkix.Name{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 27 15:50:14 UTC 2020
    - 5K bytes
    - Viewed (0)
  3. src/runtime/os_plan9.go

    	mp.gsignal = malg(32 * 1024)
    	mp.gsignal.m = mp
    	mp.notesig = (*int8)(mallocgc(_ERRMAX, nil, true))
    	// Initialize stack for handling strings from the
    	// errstr system call, as used in package syscall.
    	mp.errstr = (*byte)(mallocgc(_ERRMAX, nil, true))
    }
    
    func sigsave(p *sigset) {
    }
    
    func msigrestore(sigmask sigset) {
    }
    
    //go:nosplit
    //go:nowritebarrierrec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. src/database/sql/convert_test.go

    		err := convertAssign(ct.d, ct.s)
    		errstr := ""
    		if err != nil {
    			errstr = err.Error()
    		}
    		errf := func(format string, args ...any) {
    			base := fmt.Sprintf("convertAssign #%d: for %v (%T) -> %T, ", n, ct.s, ct.s, ct.d)
    			t.Errorf(base+format, args...)
    		}
    		if errstr != ct.wanterr {
    			errf("got error %q, want error %q", errstr, ct.wanterr)
    		}
    		if ct.wantstr != "" && ct.wantstr != scanstr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. tools/istio-iptables/pkg/dependencies/implementation.go

    		errStr := stderr
    		if len(errStrParts) > 1 {
    			errStr = errStrParts[1]
    		}
    		return fmt.Sprintf("%v: %v", errtypeStr, strings.TrimSpace(errStr))
    	}
    
    	return stderr
    }
    
    // Run runs a command
    func (r *RealDependencies) Run(cmd constants.IptablesCmd, iptVer *IptablesVersion, stdin io.ReadSeeker, args ...string) error {
    	return r.executeXTables(cmd, iptVer, false, stdin, args...)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 19:54:50 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. src/net/netip/netip_test.go

    	tests := []struct {
    		prefix string
    		errstr string
    	}{
    		{
    			prefix: "192.168.0.0",
    			errstr: "no '/'",
    		},
    		{
    			prefix: "1.257.1.1/24",
    			errstr: "value >255",
    		},
    		{
    			prefix: "1.1.1.0/q",
    			errstr: "bad bits",
    		},
    		{
    			prefix: "1.1.1.0/-1",
    			errstr: "bad bits",
    		},
    		{
    			prefix: "1.1.1.0/33",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  7. src/cmd/doc/doc_test.go

    		if err == nil {
    			t.Errorf("expected error from rand.doesnotexit")
    		} else {
    			errStr := err.Error()
    			if !strings.Contains(errStr, "no symbol") {
    				t.Errorf("error %q should contain 'no symbol", errStr)
    			}
    			if !strings.Contains(errStr, "crypto/rand") {
    				t.Errorf("error %q should contain crypto/rand", errStr)
    			}
    			if !strings.Contains(errStr, "math/rand") {
    				t.Errorf("error %q should contain math/rand", errStr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:16:55 UTC 2023
    - 31.2K bytes
    - Viewed (0)
  8. src/cmd/internal/cov/readcovdata.go

    		panic("unexpected warning")
    	}
    }
    
    func (r *CovDataReader) fatal(s string, a ...interface{}) error {
    	if r.err != nil {
    		return nil
    	}
    	errstr := "error: " + fmt.Sprintf(s, a...) + "\n"
    	if (r.flags & PanicOnError) != 0 {
    		fmt.Fprintf(os.Stderr, "%s", errstr)
    		panic("fatal error")
    	}
    	r.err = fmt.Errorf("%s", errstr)
    	return r.err
    }
    
    // visitPod examines a coverage data 'pod', that is, a meta-data file and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. src/go/build/build_test.go

    	// See golang.org/issue/35986.
    	errStr := strings.ReplaceAll(err.Error(), "://"+pkgPath+"?go-get=1", "://...?go-get=1")
    
    	// Also don't count instances in suggested "go get" or similar commands
    	// (see https://golang.org/issue/41576). The suggested command typically
    	// follows a semicolon.
    	errStr, _, _ = strings.Cut(errStr, ";")
    
    	if n := strings.Count(errStr, pkgPath); n != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-rebalance.go

    }
    
    func auditLogRebalance(ctx context.Context, apiName, bucket, object, versionID string, err error) {
    	errStr := ""
    	if err != nil {
    		errStr = err.Error()
    	}
    	auditLogInternal(ctx, AuditLogOptions{
    		Event:     "rebalance",
    		APIName:   apiName,
    		Bucket:    bucket,
    		Object:    object,
    		VersionID: versionID,
    		Error:     errStr,
    	})
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 27.3K bytes
    - Viewed (0)
Back to top