- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 415 for wrapseed (0.4 sec)
-
src/go/doc/comment/wrap_test.go
import ( "flag" "fmt" "math/rand" "testing" "time" "unicode/utf8" ) var wrapSeed = flag.Int64("wrapseed", 0, "use `seed` for wrap test (default auto-seeds)") func TestWrap(t *testing.T) { if *wrapSeed == 0 { *wrapSeed = time.Now().UnixNano() } t.Logf("-wrapseed=%#x\n", *wrapSeed) r := rand.New(rand.NewSource(*wrapSeed)) // Generate words of random length. s := "1234567890αβcdefghijklmnopqrstuvwxyz"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:45 UTC 2022 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/errors_test.go
t.Run(tc.name, func(t *testing.T) { if !errors.Is(tc.input, tc.new()) { t.Error("error doesn't match itself directly") } if !errors.Is(fmt.Errorf("wrapepd: %w", tc.input), tc.new()) { t.Error("error doesn't match itself when wrapped") } if !tc.matcherFunc(tc.input) { t.Errorf("error doesn't get matched by matcherfunc") } if errors.Is(tc.input, errors.New("foo")) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 11 22:50:51 UTC 2022 - 2.4K bytes - Viewed (0) -
src/errors/errors.go
// indicates that e does not wrap any error. It is invalid for an // Unwrap method to return an []error containing a nil error value. // // An easy way to create wrapped errors is to call [fmt.Errorf] and apply // the %w verb to the error argument: // // wrapsErr := fmt.Errorf("... %w ...", ..., err, ...) // // Successive unwrapping of an error creates a tree. The [Is] and [As]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 19:45:41 UTC 2023 - 2.9K bytes - Viewed (0) -
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) -
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) -
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) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r85/TestFailureProgressEventCrossVersionTest.groovy
collector.failures.size() == 1 collector.failures[0] instanceof TestAssertionFailure TestAssertionFailure failure = collector.failures[0] failure.message == "This is a wrapped assertion error" } def "Wrapped assertion errors are emitted as test failure events using JUnit 5"() { given: setupJUnit5() file('src/test/java/org/gradle/JUnitTest.java') << ''' package org.gradle;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Nov 10 17:52:51 UTC 2023 - 12.8K bytes - Viewed (0) -
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) -
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) -
staging/src/k8s.io/apiserver/pkg/endpoints/responsewriter/wrapper_test.go
ResponseWriter: w, counter: counterGot, } wrapped := WrapForHTTP1Or2(decorator) assertCloseNotifierFlusherHijacker(t, true, wrapped) originalGot := GetOriginal(wrapped) if originalWant != originalGot { t.Errorf("Expected GetOriginal to return the original ResponseWriter object") return } h.ServeHTTP(wrapped, r) }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 17 12:58:53 UTC 2021 - 8.1K bytes - Viewed (0)