Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for reflect (0.16 sec)

  1. internal/s3select/select_test.go

    mango`,
    		},
    		{
    			name:  "Select column simplest",
    			query: `select qty from S3Object`,
    			wantResult: `1
    3`,
    		},
    		{
    			name:  "Select column with table name prefix",
    			query: `select S3Object.qty from S3Object`,
    			wantResult: `1
    3`,
    		},
    		{
    			name:  "Select column without table alias",
    			query: `select qty from S3Object s`,
    			wantResult: `1
    3`,
    		},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	r = r*1664525 + 1013904223
    	randN = r
    	randmu.Unlock()
    	return strconv.Itoa(int(1e9 + r%1e9))[1:]
    }
    
    // isSameType - compares two object types via reflect.TypeOf
    func isSameType(obj1, obj2 interface{}) bool {
    	return reflect.TypeOf(obj1) == reflect.TypeOf(obj2)
    }
    
    // TestServer encapsulates an instantiation of a MinIO instance with a temporary backend.
    // Example usage:
    //
    //	s := StartTestServer(t,"Erasure")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  3. cmd/sts-handlers_test.go

    	exportContentStrings := map[string]string{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bytes_test
    
    import (
    	. "bytes"
    	"fmt"
    	"internal/testenv"
    	"math"
    	"math/rand"
    	"reflect"
    	"strings"
    	"testing"
    	"unicode"
    	"unicode/utf8"
    	"unsafe"
    )
    
    func eq(a, b []string) bool {
    	if len(a) != len(b) {
    		return false
    	}
    	for i := 0; i < len(a); i++ {
    		if a[i] != b[i] {
    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)
  5. tests/query_test.go

    		t.Fatalf("Build Select with slice, but got %v", r.Statement.SQL.String())
    	}
    
    	// SELECT COALESCE(age,'42') FROM users;
    	r = dryDB.Table("users").Select("COALESCE(age,?)", 42).Find(&User{})
    	if !regexp.MustCompile(`SELECT COALESCE\(age,.*\) FROM .*users.*`).MatchString(r.Statement.SQL.String()) {
    		t.Fatalf("Build Select with func, but got %v", r.Statement.SQL.String())
    	}
    
    	// named arguments
    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)
  6. cmd/object-api-multipart_test.go

    			}
    			// Failed as expected, but does it fail for the expected reason.
    			if actualErr != nil && !testCase.shouldPass {
    				if reflect.TypeOf(actualErr) != reflect.TypeOf(testCase.expectedErr) {
    					t.Errorf("%s: Expected to fail with error \"%s\", but instead failed with error \"%s\"", instanceType, testCase.expectedErr, actualErr)
    				}
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  7. tests/migrate_test.go

    	}
    
    	columnTypes, err := DB.Table("user_migrate_columns").Migrator().ColumnTypes(&UserMigrateColumn2{})
    	if err != nil {
    		t.Fatalf("failed to get column types, got error: %v", err)
    	}
    	typ := reflect.Indirect(reflect.ValueOf(&UserMigrateColumn2{})).Type()
    	numField := typ.NumField()
    	if numField != len(columnTypes) {
    		t.Fatalf("column's number not match struct and ddl, %d != %d", numField, len(columnTypes))
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool.go

    				lastUpdate = allMerged.Info.LastUpdate
    			}
    		}
    		for {
    			select {
    			case <-ctx.Done():
    				return
    			case v := <-updateCloser:
    				update()
    				xioutil.SafeClose(v)
    				return
    			case <-updateTicker.C:
    				update()
    			}
    		}
    	}()
    
    	wg.Wait()
    	ch := make(chan struct{})
    	select {
    	case updateCloser <- ch:
    		<-ch
    	case <-ctx.Done():
    		mu.Lock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    			r.Exists = true
    			r.Error = fmt.Sprintf("max size (%d) exceeded: %d", req.MaxSize, len(data))
    			select {
    			case <-ctx.Done():
    				return ctx.Err()
    			case resp <- r:
    				continue
    			}
    		}
    		found++
    		r.Exists = true
    		r.Data = data
    		r.Modtime = mt
    		select {
    		case <-ctx.Done():
    			return ctx.Err()
    		case resp <- r:
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  10. cmd/iam-store.go

    				return
    			}
    
    			if g.Status == statusDisabled {
    				err = errGroupDisabled
    				return
    			}
    		}
    		mp, _ = cache.iamGroupPolicyMap.Load(name)
    	}
    
    	// Compute net policy change effect and updated policy mapping
    	existingPolicySet := mp.policySet()
    	policiesToUpdate := set.CreateStringSet(policies...)
    	var newPolicySet set.StringSet
    	newPolicyMapping := mp
    	if isAttach {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
Back to top