Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Sant (0.16 sec)

  1. src/bytes/bytes_test.go

    		if !eq(result, tt.a) {
    			t.Errorf("Fields(%q) = %v; want %v", tt.s, a, tt.a)
    			continue
    		}
    
    		if string(b) != tt.s {
    			t.Errorf("slice changed to %s; want %s", string(b), tt.s)
    		}
    		if len(tt.a) > 0 {
    			if want := tt.a[len(tt.a)-1] + "z"; string(x) != want {
    				t.Errorf("last appended result was %s; want %s", x, want)
    			}
    		}
    	}
    }
    
    func TestFieldsFunc(t *testing.T) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. cmd/object-api-listobjects_test.go

    				// otherwise it may lead to index out of range error in
    				// assertion following this.
    				if !testCase.versioned {
    					if len(testCase.resultL.Objects) != len(resultL.Objects) {
    						t.Logf("want: %v", objInfoNames(testCase.resultL.Objects))
    						t.Logf("got: %v", objInfoNames(resultL.Objects))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle_test.go

    				VersionID:   "",
    				IsLatest:    true,
    				NumVersions: 1,
    			},
    			want: 0,
    			lc:   lc,
    		},
    	}
    	for i, tc := range tests {
    		t.Run(fmt.Sprintf("test-%d", i+1), func(t *testing.T) {
    			if got := tc.lc.FilterRules(tc.opts); len(got) != tc.want {
    				t.Fatalf("Expected %d rules to match but got %d", tc.want, len(got))
    			}
    			w := httptest.NewRecorder()
    			tc.lc.SetPredictionHeaders(w, tc.opts)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  4. src/cmd/cgo/gcc.go

    		needType := p.guessKinds(f)
    		if len(needType) > 0 {
    			p.loadDWARF(f, &conv, needType)
    		}
    
    		// In godefs mode we're OK with the typedefs, which
    		// will presumably also be defined in the file, we
    		// don't want to resolve them to their base types.
    		if *godefs {
    			break
    		}
    	}
    	p.prepareNames(f)
    	if p.rewriteCalls(f) {
    		// Add `import _cgo_unsafe "unsafe"` after the package statement.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  5. istioctl/pkg/describe/describe.go

    	svcHost := extendFQDN(fmt.Sprintf("%s.%s", svc.ObjectMeta.Name, svc.ObjectMeta.Namespace))
    	filter := istio_envoy_configdump.ClusterFilter{
    		FQDN: host.Name(svcHost),
    		Port: int(port),
    		// Although we want inbound traffic, ask for outbound traffic, as the DR is
    		// not associated with the inbound traffic.
    		Direction: model.TrafficDirectionOutbound,
    	}
    
    	dump, err := cd.GetClusterConfigDump()
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  6. cmd/batch-handlers.go

    		pInfo, err = api.PutObjectPart(ctx, tgtBucket, tgtObject, res.UploadID, i+1, pReader, opts)
    		if err != nil {
    			return err
    		}
    		if pInfo.Size != objInfo.Size {
    			return fmt.Errorf("Part size mismatch: got %d, want %d", pInfo.Size, objInfo.Size)
    		}
    		uploadedParts = append(uploadedParts, CompletePart{
    			PartNumber: pInfo.PartNumber,
    			ETag:       pInfo.ETag,
    		})
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  7. tests/query_test.go

    	data int64
    }
    
    func (t *DoubleInt64) Scan(val interface{}) error {
    	switch v := val.(type) {
    	case int64:
    		t.data = v * 2
    		return nil
    	default:
    		return fmt.Errorf("DoubleInt64 cant not scan with:%v", v)
    	}
    }
    
    // https://github.com/go-gorm/gorm/issues/5091
    func TestQueryScannerWithSingleColumn(t *testing.T) {
    	user := User{Name: "scanner_raw_1", Age: 10}
    	DB.Create(&user)
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  8. src/bufio/bufio_test.go

    		}
    	}
    
    }
    
    func TestReaderSize(t *testing.T) {
    	if got, want := NewReader(nil).Size(), DefaultBufSize; got != want {
    		t.Errorf("NewReader's Reader.Size = %d; want %d", got, want)
    	}
    	if got, want := NewReaderSize(nil, 1234).Size(), 1234; got != want {
    		t.Errorf("NewReaderSize's Reader.Size = %d; want %d", got, want)
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  9. src/archive/zip/reader_test.go

    	if b.Len() != len(c) {
    		t.Errorf("%s: len=%d, want %d", f.Name, b.Len(), len(c))
    		return
    	}
    
    	for i, b := range b.Bytes() {
    		if b != c[i] {
    			t.Errorf("%s: content[%d]=%q want %q", f.Name, i, b, c[i])
    			return
    		}
    	}
    }
    
    func testFileMode(t *testing.T, f *File, want fs.FileMode) {
    	mode := f.Mode()
    	if want == 0 {
    		t.Errorf("%s mode: got %v, want none", f.Name, mode)
    	} else if mode != want {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2.go

    				return nil, err
    			}
    
    			if int64(len(buf)) < want {
    				return nil, fmt.Errorf("buffer shorter than expected (buflen: %d, want: %d): %w", len(buf), want, errFileCorrupt)
    			}
    
    			tmp = buf[want:]
    			_, after, err := msgp.ReadUint32Bytes(tmp)
    			if err != nil {
    				return nil, fmt.Errorf("readXLMetaNoData(read_meta): unknown metadata version %w", err)
    			}
    			want += int64(len(tmp) - len(after))
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
Back to top