- Sort Score
- Result 10 results
- Languages All
Results 1051 - 1060 of 1,425 for Func (0.03 sec)
-
clause/limit_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestLimit(t *testing.T) { limit0 := 0 limit10 := 10 limit50 := 50 limitNeg10 := -10 results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Select{}, clause.From{}, clause.Limit{ Limit: &limit10, Offset: 20, }},
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Feb 06 02:54:40 UTC 2024 - 2.3K bytes - Viewed (0) -
internal/amztime/iso8601_time.go
) // ISO8601Format converts time 't' into ISO8601 time format expected in AWS S3 spec. // // This function is needed to avoid a Go's float64 precision bug, where Go avoids // padding the extra '0' before the timezone. func ISO8601Format(t time.Time) string { value := t.Format(iso8601TimeFormat) if len(value) < len(iso8601TimeFormat) { value = t.Format(iso8601TimeFormat[:len(iso8601TimeFormat)-1])
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jan 16 23:38:33 UTC 2023 - 1.9K bytes - Viewed (0) -
internal/disk/fdatasync_linux.go
// // The aim of fdatasync() is to reduce disk activity for applications that // do not require all metadata to be synchronized with the disk. func Fdatasync(f *os.File) error { return syscall.Fdatasync(int(f.Fd())) } // FadviseDontNeed invalidates page-cache func FadviseDontNeed(f *os.File) error { return unix.Fadvise(int(f.Fd()), 0, 0, unix.FADV_DONTNEED)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 29 23:40:28 UTC 2021 - 1.8K bytes - Viewed (0) -
internal/event/target/nsq_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package target import ( "testing" xnet "github.com/minio/pkg/v3/net" ) func TestNSQArgs_Validate(t *testing.T) { type fields struct { Enable bool NSQDAddress xnet.Host Topic string TLS struct { Enable bool SkipVerify bool } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 2.2K bytes - Viewed (0) -
cmd/lock-rest-server-common_test.go
package cmd import ( "context" "os" "reflect" "sync" "testing" "github.com/minio/minio/internal/dsync" ) // Helper function to create a lock server for testing func createLockTestServer(ctx context.Context, t *testing.T) (string, *lockRESTServer, string) { obj, fsDir, err := prepareFS(ctx) if err != nil { t.Fatal(err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 24 10:24:01 UTC 2024 - 3.2K bytes - Viewed (0) -
cmd/api-errors_test.go
} func TestAPIErrCode(t *testing.T) { ctx := context.Background() for i, testCase := range toAPIErrorTests { errCode := toAPIErrorCode(ctx, testCase.err) if errCode != testCase.errCode { t.Errorf("Test %d: Expected error code %d, got %d", i+1, testCase.errCode, errCode) } } } // Check if an API error is properly defined func TestAPIErrCodeDefinition(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 25 15:13:08 UTC 2023 - 3.4K bytes - Viewed (0) -
internal/config/dns/etcd_dns_test.go
} } } func TestPath(t *testing.T) { for _, path := range []string{"mydns", "skydns"} { result := msgPath("service.staging.skydns.local.", path) if result != etcdPathSeparator+path+"/local/skydns/staging/service" { t.Errorf("Failure to get domain's path with prefix: %s", result) } } } func TestUnPath(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 26 15:03:08 UTC 2024 - 2.1K bytes - Viewed (0) -
cni/pkg/config/config.go
InitContainerName string InitTerminationMsg string InitExitCode int // Label and field selectors to select pods managed by race repair. LabelSelectors string FieldSelectors string } func (c InstallConfig) String() string { var b strings.Builder b.WriteString("MountedCNINetDir: " + c.MountedCNINetDir + "\n") b.WriteString("CNIConfName: " + c.CNIConfName + "\n")
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 16 15:33:47 UTC 2024 - 5.7K bytes - Viewed (0) -
callbacks/raw.go
package callbacks import ( "gorm.io/gorm" ) func RawExec(db *gorm.DB) { if db.Error == nil && !db.DryRun { result, err := db.Statement.ConnPool.ExecContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...) if err != nil { db.AddError(err) return } db.RowsAffected, _ = result.RowsAffected() }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Nov 29 01:33:20 UTC 2021 - 336 bytes - Viewed (0) -
internal/grid/README.md
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.4K bytes - Viewed (0)