- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 429 for Got (0.01 seconds)
-
tests/scopes_test.go
t.Errorf("Should found two users's name in 1, 2, but got %v", len(users1)) } DB.Scopes(NameIn1And2, NameIn2And3).Find(&users2) if len(users2) != 1 { t.Errorf("Should found one user's name is 2, but got %v", len(users2)) } DB.Scopes(NameIn([]string{users[0].Name, users[2].Name})).Find(&users3) if len(users3) != 2 { t.Errorf("Should found two users's name in 1, 3, but got %v", len(users3)) }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Jan 12 08:42:21 GMT 2024 - 3.3K bytes - Click Count (0) -
schema/index_test.go
} func TestParseIndex(t *testing.T) { user, err := schema.Parse(&UserIndex{}, &sync.Map{}, schema.NamingStrategy{}) if err != nil { t.Fatalf("failed to parse user index, got error %v", err) } results := []*schema.Index{ { Name: "idx_user_indices_name", Fields: []schema.IndexOption{{Field: &schema.Field{Name: "Name"}}}, }, { Name: "idx_name",
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Dec 06 02:27:44 GMT 2024 - 7.9K bytes - Click Count (0) -
cmd/object-lambda-handlers_test.go
t.Errorf("Expected status %d, got %d", expectStatus, res.StatusCode) } if contentType != "" { if ct := res.Header.Get("Content-Type"); ct != contentType { t.Errorf("Expected Content-Type %q, got %q", contentType, ct) } } if res.StatusCode < 400 { if string(respBody) != lambdaBody { t.Errorf("Expected body %q, got %q", lambdaBody, string(respBody)) } }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Jul 18 21:56:31 GMT 2025 - 5.2K bytes - Click Count (0) -
tests/connection_test.go
return err } return nil }) if err != nil { t.Errorf("WithSingleConnection should work, but got err %v", err) } if actualName != expectedName { t.Errorf("WithSingleConnection() method should get correct value, expect: %v, got %v", expectedName, actualName) } } func getSetSQL(driverName string) (string, string) { switch driverName { case mysql.Dialector{}.Name():Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Sep 08 09:19:22 GMT 2025 - 943 bytes - Click Count (0) -
internal/grid/README.md
In the examples we use a `MSS` type, which is a `map[string]string` that is `msgp` serializable. ```go handler := func(request *grid.MSS) (*grid.MSS, *grid.RemoteErr) { fmt.Println("Got request with field", request["myfield"]) // Do something with payload return NewMSSWith(map[string]string{"result": "ok"}), nil } // Create a typed handler.Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Oct 10 18:57:03 GMT 2025 - 9.4K bytes - Click Count (0) -
cmd/data-scanner_test.go
} }) if len(gots) != len(test.wants) { t.Fatalf("Expected %d objects but got %d", len(test.wants), len(gots)) } if slices.CompareFunc(gots, test.wants, func(g, w ObjectInfo) int { if g.VersionID == w.VersionID { return 0 } return -1 }) != 0 { t.Fatalf("Expected %v but got %v", test.wants, gots) } // verify the objects to be deleted close(workers[0])
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 12K bytes - Click Count (0) -
clause/clause_test.go
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Jun 02 02:50:38 GMT 2020 - 1012 bytes - Click Count (0) -
cmd/erasure-coding.go
_, err = hash.Write([]byte{byte(i)}) failOnErr(err) _, err = hash.Write(data) failOnErr(err) got[conf] = map[ErasureAlgo]uint64{algo: hash.Sum64()} } if a, b := want[conf], got[conf]; !reflect.DeepEqual(a, b) { fmt.Fprintf(os.Stderr, "%v: error on self-test [d:%d,p:%d]: want %#v, got %#v\n", algo, conf[0], conf[1], a, b) ok = false continue } // Delete first shard and reconstruct...
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 8.5K bytes - Click Count (0) -
cmd/server-startup-msg_test.go
if !reflect.DeepEqual(expectedAPIEndpoints, newAPIEndpoints) { t.Fatalf("Expected %#v, got %#v", expectedAPIEndpoints, newAPIEndpoints) } apiEndpoints = []string{"http://%%%%%:9000"} newAPIEndpoints = stripStandardPorts(apiEndpoints, "") if !reflect.DeepEqual(apiEndpoints, newAPIEndpoints) { t.Fatalf("Expected %#v, got %#v", apiEndpoints, newAPIEndpoints) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
void getHandle_returnsHandle() throws Exception { // Arrange SmbPipeOutputStream out = newStream(); // Act SmbPipeHandleImpl got = out.getHandle(); // Assert assertSame(handle, got, "getHandle should expose the same instance passed to constructor"); } @Test @DisplayName("close does nothing and does not touch handle")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0)