Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 865 for errC (0.05 sec)

  1. internal/grid/types_test.go

    	v := MSS{"abc": "def", "ghi": "jkl"}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	var v2 MSS
    	left, err := v2.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) != 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. cmd/bucket-metadata.go

    			if err = b.convertLegacyConfigs(ctx, objectAPI, configs); err != nil {
    				return b, err
    			}
    		}
    	}
    
    	if parse {
    		// nothing to update, parse and proceed.
    		if err = b.parseAllConfigs(ctx, objectAPI); err != nil {
    			return b, err
    		}
    	}
    
    	// migrate unencrypted remote targets
    	if err = b.migrateTargetConfig(ctx, objectAPI); err != nil {
    		return b, err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. cmd/encryption-v1.go

    			return "", errObjectTampered
    		}
    		if _, err := hex.DecodeString(object.ETag[:32]); err != nil {
    			return "", errObjectTampered
    		}
    		if _, err := strconv.ParseInt(object.ETag[i+1:], 10, 32); err != nil {
    			return "", errObjectTampered
    		}
    		return object.ETag, nil
    	}
    
    	etag, err := hex.DecodeString(object.ETag)
    	if err != nil {
    		return "", err
    	}
    	etag, err = key.UnsealETag(etag)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:06:08 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  4. cmd/streaming-signature-v4.go

    		cr.err = err
    		return n, cr.err
    	}
    	if b != '\r' {
    		cr.err = errMalformedEncoding
    		return n, cr.err
    	}
    	b, err = cr.reader.ReadByte()
    	if err == io.EOF {
    		err = io.ErrUnexpectedEOF
    	}
    	if err != nil {
    		cr.err = err
    		return n, cr.err
    	}
    	if b != '\n' {
    		cr.err = errMalformedEncoding
    		return n, cr.err
    	}
    
    	if cap(cr.buffer) < size {
    		cr.buffer = make([]byte, size)
    	} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. internal/s3select/json/preader_test.go

    			}
    			if err != io.EOF {
    				t.Fatalf("Reading failed with %s, %s", err, file.Name())
    			}
    		})
    	}
    }
    
    func BenchmarkPReader(b *testing.B) {
    	files, err := os.ReadDir("testdata")
    	if err != nil {
    		b.Fatal(err)
    	}
    	for _, file := range files {
    		b.Run(file.Name(), func(b *testing.B) {
    			f, err := os.ReadFile(filepath.Join("testdata", file.Name()))
    			if err != nil {
    				b.Fatal(err)
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. internal/s3select/json/reader_test.go

    			}
    			if err != io.EOF {
    				t.Fatalf("Reading failed with %s, %s", err, file.Name())
    			}
    		})
    	}
    }
    
    func BenchmarkReader(b *testing.B) {
    	files, err := os.ReadDir("testdata")
    	if err != nil {
    		b.Fatal(err)
    	}
    	for _, file := range files {
    		b.Run(file.Name(), func(b *testing.B) {
    			f, err := os.ReadFile(filepath.Join("testdata", file.Name()))
    			if err != nil {
    				b.Fatal(err)
    			}
    			b.SetBytes(int64(len(f)))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  7. cmd/metacache-stream_test.go

    	defer w.Close()
    	err := r.readFn(func(object metaCacheEntry) bool {
    		err := w.write(object)
    		if err != nil {
    			t.Fatal(err)
    		}
    		return true
    	})
    	r.Close()
    	if err != io.EOF {
    		t.Fatal(err)
    	}
    	err = w.Close()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	r = newMetacacheReader(&buf)
    	defer r.Close()
    	names, err := r.readNames(-1)
    	if err != io.EOF {
    		t.Fatal(err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 15K bytes
    - Viewed (0)
  8. internal/pubsub/pubsub_test.go

    	doneCh := make(chan struct{})
    	defer close(doneCh)
    	if err := ps.Subscribe(MaskAll, ch1, doneCh, nil); err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if err := ps.Subscribe(MaskAll, ch2, doneCh, nil); err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if err := ps.Subscribe(MaskAll, ch3, doneCh, nil); err == nil {
    		t.Fatalf("unexpected nil err")
    	}
    }
    
    func TestUnsubscribe(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. internal/s3select/sql/record.go

    			v, err := iter.Float()
    			return v, err
    		}
    		return v, nil
    	case simdjson.TypeBool:
    		v, err := iter.Bool()
    		if err != nil {
    			return nil, err
    		}
    		return v, nil
    	case simdjson.TypeObject:
    		obj, err := iter.Object(nil)
    		if err != nil {
    			return nil, err
    		}
    		return *obj, err
    	case simdjson.TypeArray:
    		arr, err := iter.Array(nil)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  10. tests/upsert_test.go

    	if err := DB.Save(&lang).Error; err != nil {
    		t.Errorf("Failed to create, got error %v", err)
    	}
    
    	var result Language
    	if err := DB.First(&result, "code = ?", lang.Code).Error; err != nil {
    		t.Errorf("Failed to query lang, got error %v", err)
    	} else {
    		AssertEqual(t, result, lang)
    	}
    
    	lang.Name += "_new"
    	if err := DB.Save(&lang).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Sep 05 07:39:19 UTC 2022
    - 11.4K bytes
    - Viewed (0)
Back to top