Search Options

Results per page
Sort
Preferred Languages
Advance

Results 461 - 470 of 1,473 for ERROR (0.03 sec)

  1. src/archive/tar/tar_test.go

    		}
    		if (formats != FormatUnknown) && (err != nil) {
    			t.Errorf("test %d, unexpected error: %v", i, err)
    		}
    		if (formats == FormatUnknown) && (err == nil) {
    			t.Errorf("test %d, got nil-error, want non-nil error", i)
    		}
    	}
    }
    
    func Benchmark(b *testing.B) {
    	type file struct {
    		hdr  *Header
    		body []byte
    	}
    
    	vectors := []struct {
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. tests/test_additional_responses_default_validationerror.py

            "paths": {
                "/a/{id}": {
                    "get": {
                        "responses": {
                            "422": {
                                "description": "Validation Error",
                                "content": {
                                    "application/json": {
                                        "schema": {
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. api/go1.13.txt

    pkg syscall (netbsd-arm64), func Fchdir(int) error
    pkg syscall (netbsd-arm64), func Fchflags(int, int) error
    pkg syscall (netbsd-arm64), func Fchmod(int, uint32) error
    pkg syscall (netbsd-arm64), func Fchown(int, int, int) error
    pkg syscall (netbsd-arm64), func FcntlFlock(uintptr, int, *Flock_t) error
    pkg syscall (netbsd-arm64), func Flock(int, int) error
    pkg syscall (netbsd-arm64), func FlushBpf(int) error
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Thu Aug 08 18:44:16 UTC 2019
    - 452.6K bytes
    - Viewed (0)
  4. internal/cachevalue/cache_test.go

    	"time"
    )
    
    func slowCaller(ctx context.Context) error {
    	sl := time.NewTimer(time.Second)
    	defer sl.Stop()
    
    	select {
    	case <-sl.C:
    	case <-ctx.Done():
    		return ctx.Err()
    	}
    
    	return nil
    }
    
    func TestCacheCtx(t *testing.T) {
    	cache := New[time.Time]()
    	t.Parallel()
    	cache.InitOnce(2*time.Second, Opts{},
    		func(ctx context.Context) (time.Time, error) {
    			return time.Now(), slowCaller(ctx)
    		},
    	)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. cmd/erasure-decode.go

    		if len(b) > 0 {
    			bufCount++
    		}
    	}
    	return bufCount >= p.dataBlocks
    }
    
    // Read reads from readers in parallel. Returns p.dataBlocks number of bufs.
    func (p *parallelReader) Read(dst [][]byte) ([][]byte, error) {
    	newBuf := dst
    	if len(dst) != len(p.readers) {
    		newBuf = make([][]byte, len(p.readers))
    	} else {
    		for i := range newBuf {
    			newBuf[i] = newBuf[i][:0]
    		}
    	}
    	var newBufLK sync.RWMutex
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_sql_databases/test_tutorial001.py

                                        }
                                    },
                                },
                                "422": {
                                    "description": "Validation Error",
                                    "content": {
                                        "application/json": {
                                            "schema": {
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v2-legacy.go

    package cmd
    
    import (
    	"fmt"
    	"time"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    // unmarshalV unmarshals with a specific header version.
    func (x *xlMetaV2VersionHeader) unmarshalV(v uint8, bts []byte) (o []byte, err error) {
    	switch v {
    	case 1:
    		return x.unmarshalV1(bts)
    	case 2:
    		x2 := xlMetaV2VersionHeaderV2{xlMetaV2VersionHeader: x}
    		return x2.UnmarshalMsg(bts)
    	case xlHeaderVersion:
    		return x.UnmarshalMsg(bts)
    	}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Apr 19 16:43:43 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. internal/event/name_test.go

    	}
    
    	for i, testCase := range testCases {
    		data, err := xml.Marshal(testCase.name)
    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    			t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    		}
    
    		if !testCase.expectErr {
    			if !reflect.DeepEqual(data, testCase.expectedData) {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. cmd/object-api-utils.go

    	}
    
    	if nDisks < len(di)/2 || nDisks <= 0 {
    		var errs []error
    		for index, disk := range di {
    			switch {
    			case disk == nil:
    				errs = append(errs, fmt.Errorf("disk[%d]: offline", index))
    			case disk.Error != "":
    				errs = append(errs, fmt.Errorf("disk %s: %s", disk.Endpoint, disk.Error))
    			case disk.Total == 0:
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  10. internal/ringbuffer/ring_buffer_test.go

    func TestRingBufferCloseError(t *testing.T) {
    	type testError1 struct{ error }
    	type testError2 struct{ error }
    
    	rb := New(100)
    	rb.CloseWithError(testError1{})
    	if _, err := rb.Write(nil); err != (testError1{}) {
    		t.Errorf("Write error: got %T, want testError1", err)
    	}
    	if _, err := rb.Write([]byte{1}); err != (testError1{}) {
    		t.Errorf("Write error: got %T, want testError1", err)
    	}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top