- Sort Score
- Result 10 results
- Languages All
Results 1071 - 1080 of 1,423 for Func (0.03 sec)
-
clause/values_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestValues(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{ clause.Insert{}, clause.Values{ Columns: []clause.Column{{Name: "name"}, {Name: "age"}}, Values: [][]interface{}{{"jinzhu", 18}, {"josh", 1}}, }, },
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 691 bytes - Viewed (0) -
internal/hash/reader_test.go
} } }) } } func mustReader(t *testing.T, src io.Reader, size int64, md5Hex, sha256Hex string, actualSize int64) *Reader { r, err := NewReader(context.Background(), src, size, md5Hex, sha256Hex, actualSize) if err != nil { t.Fatal(err) } return r } // Tests NewReader() constructor with invalid arguments. func TestHashReaderInvalidArguments(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 18 17:00:54 UTC 2023 - 10.3K bytes - Viewed (0) -
internal/kms/config.go
// KMS implementations are present. func Connect(ctx context.Context, opts *ConnectionOptions) (*KMS, error) { if present, err := IsPresent(); !present || err != nil { if err != nil { return nil, err } return nil, errors.New("kms: no KMS configuration specified") } lookup := func(key string) bool { _, ok := os.LookupEnv(key) return ok } switch {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 11:46:39 UTC 2024 - 14.2K bytes - Viewed (0) -
cmd/rebalstatus_string.go
// Code generated by "stringer -type=rebalStatus -trimprefix=rebal erasure-server-pool-rebalance.go"; DO NOT EDIT. package cmd import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[rebalNone-0] _ = x[rebalStarted-1] _ = x[rebalCompleted-2] _ = x[rebalStopped-3] _ = x[rebalFailed-4] }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 25 19:36:57 UTC 2022 - 795 bytes - Viewed (0) -
tests/multi_primary_keys_test.go
Value string Blogs []*Blog `gorm:"many2many:blog_tags"` } func compareTags(tags []Tag, contents []string) bool { var tagContents []string for _, tag := range tags { tagContents = append(tagContents, tag.Value) } sort.Strings(tagContents) sort.Strings(contents) return reflect.DeepEqual(tagContents, contents) } func TestManyToManyWithMultiPrimaryKeys(t *testing.T) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 12.8K bytes - Viewed (0) -
cmd/os-reliable_test.go
// You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "testing" ) // Tests - mkdirAll() func TestOSMkdirAll(t *testing.T) { // create xlStorage test setup _, path, err := newXLStorageTestSetup(t) if err != nil { t.Fatalf("Unable to create xlStorage test setup, %s", err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 13 15:14:36 UTC 2023 - 3.1K bytes - Viewed (0) -
internal/http/server_test.go
package http import ( "crypto/tls" "fmt" "net/http" "reflect" "testing" "github.com/minio/pkg/v3/certs" ) func TestNewServer(t *testing.T) { nonLoopBackIP := getNonLoopBackIP(t) handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, world") }) testCases := []struct { addrs []string handler http.Handler
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jun 19 18:42:47 UTC 2024 - 2.5K bytes - Viewed (0) -
cmd/server-rlimit.go
package cmd import ( "runtime" "runtime/debug" "github.com/dustin/go-humanize" "github.com/minio/madmin-go/v3/kernel" "github.com/minio/minio/internal/logger" "github.com/minio/pkg/v3/sys" ) func oldLinux() bool { currentKernel, err := kernel.CurrentVersion() if err != nil { // Could not probe the kernel version return false } if currentKernel == 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 02 15:09:36 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/asm/internal/asm/pseudo_test.go
package asm import ( "strings" "testing" "cmd/asm/internal/lex" ) func tokenize(s string) [][]lex.Token { res := [][]lex.Token{} if len(s) == 0 { return res } for _, o := range strings.Split(s, ",") { res = append(res, lex.Tokenize(o)) } return res } func TestErroneous(t *testing.T) { type errtest struct { pseudo string operands string
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 3.1K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux_test.go
} // Helpers for tests. // Check if two `mountInfo` are equal. func mountPointsEqual(a, b mountInfo) bool { if a.Device != b.Device || a.Path != b.Path || a.FSType != b.FSType || !slicesEqual(a.Options, b.Options) || a.Pass != b.Pass || a.Freq != b.Freq { return false } return true } // Checks if two string slices are equal. func slicesEqual(a, b []string) bool { if len(a) != len(b) { return false }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.3K bytes - Viewed (0)