Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 157 for Failure (0.13 sec)

  1. src/net/rpc/server_test.go

    	return 0, errors.New("fake write failure")
    }
    
    func TestClientWriteError(t *testing.T) {
    	w := &writeCrasher{done: make(chan bool)}
    	c := NewClient(w)
    	defer c.Close()
    
    	res := false
    	err := c.Call("foo", 1, &res)
    	if err == nil {
    		t.Fatal("expected error")
    	}
    	if err.Error() != "fake write failure" {
    		t.Error("unexpected value of error:", err)
    	}
    	w.done <- true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 05:23:29 UTC 2023
    - 19K bytes
    - Viewed (0)
  2. src/debug/gosym/symtab.go

    	return 0, UnknownFileError(path)
    }
    
    /*
     * Errors
     */
    
    // UnknownFileError represents a failure to find the specific file in
    // the symbol table.
    type UnknownFileError string
    
    func (e UnknownFileError) Error() string { return "unknown file: " + string(e) }
    
    // UnknownLineError represents a failure to map a line to a program
    // counter, either because the line is beyond the bounds of the file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  3. src/runtime/netpoll_solaris.go

    retry:
    	var n uint32 = 1
    	r := port_getn(portfd, &events[0], uint32(len(events)), &n, wait)
    	e := errno()
    	if r < 0 && e == _ETIME && n > 0 {
    		// As per port_getn(3C), an ETIME failure does not preclude the
    		// delivery of some number of events.  Treat a timeout failure
    		// with delivered events as a success.
    		r = 0
    	}
    	if r < 0 {
    		if e != _EINTR && e != _ETIME {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. src/encoding/xml/xml_test.go

    	return StartElement{}, nil
    }
    
    type Failure struct{}
    
    func (Failure) UnmarshalXML(*Decoder, StartElement) error {
    	return nil
    }
    
    func TestTokenUnmarshaler(t *testing.T) {
    	defer func() {
    		if r := recover(); r != nil {
    			t.Error("Unexpected panic using custom token unmarshaler")
    		}
    	}()
    
    	d := NewTokenDecoder(tokReader{})
    	d.Decode(&Failure{})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  5. src/crypto/x509/name_constraints_test.go

    				},
    			},
    		},
    		leaf: leafSpec{
    			sans: []string{"dns:example.com"},
    			ekus: []string{"serverAuth", "other"},
    		},
    	},
    
    	// #63: An intermediate with enumerated EKUs causes a failure if we
    	// test for an EKU not in that set. (ServerAuth is required by
    	// default.)
    	{
    		roots: make([]constraintsSpec, 1),
    		intermediates: [][]constraintsSpec{
    			{
    				{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 22:40:21 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  6. src/testing/testing_test.go

    		if !b.Run("test", func(b *testing.B) {
    			// Add a loop so that the test won't fail. See issue 38677.
    			for i := 0; i < b.N; i++ {
    				_ = b.TempDir()
    			}
    		}) {
    			t.Fatal("Sub test failure in a benchmark")
    		}
    	})
    }
    
    func TestTempDir(t *testing.T) {
    	testTempDir(t)
    	t.Run("InSubtest", testTempDir)
    	t.Run("test/subtest", testTempDir)
    	t.Run("test\\subtest", testTempDir)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. src/go/types/operand.go

    	}
    }
    
    // assignableTo reports whether x is assignable to a variable of type T. If the
    // result is false and a non-nil cause is provided, it may be set to a more
    // detailed explanation of the failure (result != ""). The returned error code
    // is only valid if the (first) result is false. The check parameter may be nil
    // if assignableTo is invoked through an exported API call, i.e., when all
    // methods have been type-checked.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/cases/map.go

    	c := &t.context
    
    	if !c.next() {
    		return c.ret()
    	}
    
    	for {
    		p := c.info
    		if t.rewrite != nil {
    			t.rewrite(c)
    		}
    
    		wasMid := p.isMid()
    		// Break out of this loop on failure to ensure we do not modify the
    		// state incorrectly.
    		if p.isCased() {
    			if !c.isMidWord {
    				if !t.title(c) {
    					break
    				}
    				c.isMidWord = true
    			} else if !t.lower(c) {
    				break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  9. src/net/http/httputil/dump_test.go

    	// Make a copy of dumpTests and add 10 new cases with an empty URL
    	// to test that no goroutines are leaked. See golang.org/issue/32571.
    	// 10 seems to be a decent number which always triggers the failure.
    	dumpTests := dumpTests[:]
    	for i := 0; i < 10; i++ {
    		dumpTests = append(dumpTests, dumpTest{
    			Req:       mustNewRequest("GET", "", nil),
    			MustError: true,
    		})
    	}
    	numg0 := runtime.NumGoroutine()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:34:07 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  10. src/runtime/malloc_test.go

    		if race.Enabled {
    			// This test runs the runtime out of hint
    			// addresses, so it will start mapping the
    			// heap wherever it can. The race detector
    			// doesn't support this, so look for the
    			// expected failure.
    			if want := "too many address space collisions"; !strings.Contains(string(out), want) {
    				t.Fatalf("want %q, got:\n%s", want, string(out))
    			}
    		} else if !strings.Contains(string(out), "PASS\n") || err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top