Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 156 for unwrapped (0.61 sec)

  1. src/fmt/errors_test.go

    		wantText:   "inner error with added context",
    		wantUnwrap: wrapped,
    	}, {
    		err:        fmt.Errorf("%s %w %v", "prefix", wrapped, "suffix"),
    		wantText:   "prefix inner error suffix",
    		wantUnwrap: wrapped,
    	}, {
    		err:        fmt.Errorf("%[2]s: %[1]w", wrapped, "positional verb"),
    		wantText:   "positional verb: inner error",
    		wantUnwrap: wrapped,
    	}, {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 18:40:40 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/wait/error_test.go

    	"fmt"
    	"testing"
    )
    
    type errWrapper struct {
    	wrapped error
    }
    
    func (w errWrapper) Unwrap() error {
    	return w.wrapped
    }
    func (w errWrapper) Error() string {
    	return fmt.Sprintf("wrapped: %v", w.wrapped)
    }
    
    type errNotWrapper struct {
    	wrapped error
    }
    
    func (w errNotWrapper) Error() string {
    	return fmt.Sprintf("wrapped: %v", w.wrapped)
    }
    
    func TestInterrupted(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/raise-custom-ops.mlir

    // WRAPPED-NEXT: tf_executor.graph {
    // WRAPPED-NEXT:   tf_executor.island wraps "tf.Const"() <{value = dense<1.000000e+00> : tensor<186xf32>}> {device = ""} : () -> tensor<186xf32>
    // WRAPPED-NEXT:   tf_executor.island wraps "tf.Const"() <{value = dense<2.000000e+00> : tensor<186xf32>}> {device = ""} : () -> tensor<186xf32>
    // WRAPPED-NEXT:   tf_executor.island wraps "tfl.custom_tf"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. src/errors/wrap_test.go

    			b.Fatal("As failed")
    		}
    	}
    }
    
    func TestUnwrap(t *testing.T) {
    	err1 := errors.New("1")
    	erra := wrapped{"wrap 2", err1}
    
    	testCases := []struct {
    		err  error
    		want error
    	}{
    		{nil, nil},
    		{wrapped{"wrapped", nil}, nil},
    		{err1, nil},
    		{erra, err1},
    		{wrapped{"wrap 3", erra}, erra},
    	}
    	for _, tc := range testCases {
    		if got := errors.Unwrap(tc.err); got != tc.want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:49 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/wrapper.go

    		if IsAggregatedDiscoveryGVK(mediaType.Convert) {
    			wrapped.aggHandler.ServeHTTP(resp, req)
    			return
    		}
    	}
    	wrapped.handler.ServeHTTP(resp, req)
    }
    
    func (wrapped *WrappedHandler) restfulHandle(req *restful.Request, resp *restful.Response) {
    	wrapped.ServeHTTP(resp.ResponseWriter, req.Request)
    }
    
    func (wrapped *WrappedHandler) GenerateWebService(prefix string, returnType interface{}) *restful.WebService {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/changes/DefaultExecutionStateChangeDetector.java

        }
    
        private static InputFileChanges caching(InputFileChanges wrapped) {
            CachingChangeContainer cachingChangeContainer = new CachingChangeContainer(MAX_OUT_OF_DATE_MESSAGES, wrapped);
            return new InputFileChangesWrapper(wrapped, cachingChangeContainer);
        }
    
        private static ChangeContainer errorHandling(Describable executable, ChangeContainer wrapped) {
            return new ErrorHandlingChangeContainer(executable, wrapped);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:34 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/filterlatency/filterlatency_test.go

    		callCount++
    	})
    	// wrap with start and completed handler
    	wrapped := TrackCompleted(handler)
    	wrapped = TrackStarted(wrapped, tp, filterName)
    
    	testRequest, err := http.NewRequest(http.MethodGet, "/api/v1/namespaces", nil)
    	if err != nil {
    		t.Fatalf("failed to create new http request - %v", err)
    	}
    
    	wrapped.ServeHTTP(httptest.NewRecorder(), testRequest)
    
    	if callCount != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. pkg/volume/metrics_cached.go

    // caches the result.
    type cachedMetrics struct {
    	wrapped       MetricsProvider
    	resultError   error
    	resultMetrics *Metrics
    	once          cacheOnce
    }
    
    // NewCachedMetrics creates a new cachedMetrics wrapping another
    // MetricsProvider and caching the results.
    func NewCachedMetrics(provider MetricsProvider) MetricsProvider {
    	return &cachedMetrics{wrapped: provider}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  9. src/syscall/js/func.go

    // the result of the Go function mapped back to JavaScript according to ValueOf.
    //
    // Invoking the wrapped Go function from JavaScript will
    // pause the event loop and spawn a new goroutine.
    // Other wrapped functions which are triggered during a call from Go to JavaScript
    // get executed on the same goroutine.
    //
    // As a consequence, if one wrapped function blocks, JavaScript's event loop
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 17:47:47 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/admission.go

    var _ admission.ValidationInterface = &managedFieldsValidatingAdmissionController{}
    
    // Handles calls the wrapped admission.Interface if applicable
    func (admit *managedFieldsValidatingAdmissionController) Handles(operation admission.Operation) bool {
    	return admit.wrap.Handles(operation)
    }
    
    // Admit calls the wrapped admission.Interface if applicable and resets the managedFields to their state before admission if they
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top