Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 938 for Nil$ (0.04 sec)

  1. cmd/batch-job-common-types_gen_test.go

    	v := BatchJobKV{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.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: Sat Dec 02 10:51:33 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  2. cmd/batch-rotate_gen_test.go

    	v := BatchJobKeyRotateEncryption{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.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 Aug 29 18:27:23 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v2_gen_test.go

    	v := xlMetaDataDirDecoder{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.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: Thu Nov 18 20:15:22 UTC 2021
    - 11.5K bytes
    - Viewed (0)
  4. cmd/object-api-listobjects_test.go

    		{testBuckets[5], "foo/201910/1112", "content", nil},
    		{testBuckets[5], "foo/201910/2112", "content", nil},
    		{testBuckets[5], "foo/201910_txt", "content", nil},
    		{testBuckets[5], "201910/foo/bar/xl.meta/1.txt", "content", nil},
    		{testBuckets[6], "aaa", "content", nil},
    		{testBuckets[6], "bbb_aaa", "content", nil},
    		{testBuckets[6], "bbb_aaa", "content", nil},
    		{testBuckets[6], "ccc", "content", nil},
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  5. cmd/xl-storage_test.go

    		switch {
    		case err == nil && test.expError != nil:
    			t.Errorf("Test %d: Expected error %v but got none.", i, test.expError)
    		case err == nil && n != int64(test.length):
    			t.Errorf("Test %d: %d bytes were expected, but %d were written", i, test.length, n)
    		case err == nil && !bytes.Equal(data[test.offset:test.offset+test.length], buffer):
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  6. src/bytes/bytes_test.go

    var trimNilTests = []TrimNilTest{
    	{"Trim", nil, "", nil},
    	{"Trim", []byte{}, "", nil},
    	{"Trim", []byte{'a'}, "a", nil},
    	{"Trim", []byte{'a', 'a'}, "a", nil},
    	{"Trim", []byte{'a'}, "ab", nil},
    	{"Trim", []byte{'a', 'b'}, "ab", nil},
    	{"Trim", []byte("☺"), "☺", nil},
    	{"TrimLeft", nil, "", nil},
    	{"TrimLeft", []byte{}, "", nil},
    	{"TrimLeft", []byte{'a'}, "a", nil},
    	{"TrimLeft", []byte{'a', 'a'}, "a", nil},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  7. internal/logger/target/testlogger/testlogger.go

    	return nil
    }
    
    func (t *testLogger) IsOnline(ctx context.Context) bool {
    	return t.current.Load() != nil
    }
    
    func (t *testLogger) Cancel() {
    	t.current.Store(nil)
    }
    
    func (t *testLogger) Send(ctx context.Context, entry interface{}) error {
    	tb := t.current.Load()
    	var logf func(format string, args ...any)
    	if tb != nil {
    		tbb := *tb
    		tbb.Helper()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. internal/logger/audit.go

    func SetAuditEntry(ctx context.Context, audit *audit.Entry) context.Context {
    	if ctx == nil {
    		LogIf(context.Background(), "audit", fmt.Errorf("context is nil"))
    		return nil
    	}
    	return context.WithValue(ctx, contextAuditKey, audit)
    }
    
    // GetAuditEntry returns Audit entry if set.
    func GetAuditEntry(ctx context.Context) *audit.Entry {
    	if ctx != nil {
    		r, ok := ctx.Value(contextAuditKey).(*audit.Entry)
    		if ok {
    			return r
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. cmd/format-erasure.go

    	if err != nil {
    		return nil, nil, err
    	}
    
    	version, err := formatGetBackendErasureVersion(formatData)
    	if err != nil {
    		return nil, nil, fmt.Errorf("Drive %s: %w", export, err)
    	}
    
    	migrate := func(formatPath string, formatData []byte) ([]byte, fs.FileInfo, error) {
    		if err = os.WriteFile(formatPath, formatData, 0o666); err != nil {
    			return nil, nil, err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  10. src/cmd/addr2line/addr2line_test.go

    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("%v: %v\n%s", cmd, err, string(out))
    	}
    	syms := make(map[string]string)
    	scanner := bufio.NewScanner(bytes.NewReader(out))
    	for scanner.Scan() {
    		f := strings.Fields(scanner.Text())
    		if len(f) < 3 {
    			continue
    		}
    		syms[f[2]] = f[0]
    	}
    	if err := scanner.Err(); err != nil {
    		t.Fatalf("error reading symbols: %v", err)
    	}
    	return syms
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 06 13:23:48 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top