- Sort Score
- Num 10 results
- Language All
Results 301 - 310 of 1,053 for struct_ (0.07 seconds)
-
internal/grid/types.go
return bytes, nil } // NewNoPayload returns an empty NoPayload struct. func NewNoPayload() NoPayload { return NoPayload{} } // Recycle is a no-op. func (NoPayload) Recycle() {} // ArrayOf wraps an array of Messagepack compatible objects. type ArrayOf[T RoundTripper] struct { aPool sync.Pool // Arrays ePool bpool.Pool[T] // Elements }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 15.5K bytes - Click Count (0) -
cmd/erasure-metadata-utils_test.go
package cmd import ( "context" "encoding/hex" "fmt" "math/rand" "reflect" "testing" ) // Tests caclculating disk count. func TestDiskCount(t *testing.T) { testCases := []struct { disks []StorageAPI diskCount int }{ // Test case - 1 { disks: []StorageAPI{&xlStorage{}, &xlStorage{}, &xlStorage{}, &xlStorage{}}, diskCount: 4, }, // Test case - 2 {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 7.3K bytes - Click Count (0) -
internal/bucket/lifecycle/expiration_test.go
package lifecycle import ( "encoding/xml" "fmt" "testing" ) // appropriate errors on validation func TestInvalidExpiration(t *testing.T) { testCases := []struct { inputXML string expectedErr error }{ { // Expiration with zero days inputXML: ` <Expiration> <Days>0</Days> </Expiration>`,
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Feb 21 20:28:34 GMT 2024 - 4.1K bytes - Click Count (0) -
src/cmd/asm/internal/asm/pseudo_test.go
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 expected string } nonRuntimeTests := []errtest{ {"TEXT", "", "expect two or three operands for TEXT"}, {"TEXT", "%", "expect two or three operands for TEXT"},
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 3.1K bytes - Click Count (0) -
tests/table_test.go
"regexp" "sync" "testing" "gorm.io/driver/gaussdb" "gorm.io/driver/postgres" "gorm.io/gorm" "gorm.io/gorm/schema" "gorm.io/gorm/utils/tests" . "gorm.io/gorm/utils/tests" ) type UserWithTable struct { gorm.Model Name string } func (UserWithTable) TableName() string { return "gorm.user" } func TestTable(t *testing.T) { dryDB := DB.Session(&gorm.Session{DryRun: true})
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 12.7K bytes - Click Count (0) -
generics.go
return setCreateOrUpdateG[T]{ c: c, assigns: assigns, assocOps: assocOps, } } // setCreateOrUpdateG[T] is a struct that holds operations to be executed in a batch. // It supports regular assignments and association operations. type setCreateOrUpdateG[T any] struct { c chainG[T] assigns []clause.Assignment assocOps []clause.Association }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:34:24 GMT 2026 - 26K bytes - Click Count (0) -
internal/config/lambda/target/webhook.go
} // WebhookTarget - Webhook target. type WebhookTarget struct { activeRequests int64 totalRequests int64 failedRequests int64 lazyInit lazyInit id event.TargetID args WebhookArgs transport *http.Transport httpClient *http.Client loggerOnce logger.LogOnce cancel context.CancelFunc cancelCh <-chan struct{} } // ID - returns target ID.Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Jul 08 21:39:49 GMT 2024 - 6.7K bytes - Click Count (0) -
tests/associations_belongs_to_test.go
AssertAssociationCount(t, users[1], "Company", 1, "After other user Delete") } func TestBelongsToDefaultValue(t *testing.T) { type Org struct { ID string } type BelongsToUser struct { OrgID string Org Org `gorm:"default:NULL"` } tx := DB.Session(&gorm.Session{}) tx.Config.DisableForeignKeyConstraintWhenMigrating = true
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Oct 30 09:15:49 GMT 2023 - 9.3K bytes - Click Count (0) -
internal/http/listener_test.go
t.Fatalf("No non-loop back IP address found for this host") } nonLoopBackIP := nonLoopBackIPs.ToSlice()[0] return nonLoopBackIP } func TestNewHTTPListener(t *testing.T) { testCases := []struct { serverAddrs []string tcpKeepAliveTimeout time.Duration readTimeout time.Duration writeTimeout time.Duration expectedListenErrs []bool }{
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 11.8K bytes - Click Count (0) -
compat/maven-model/src/main/java/org/apache/maven/model/io/xpp3/MavenXpp3Reader.java
/** * * @param reader a reader object. * @param strict a strict object. * @throws IOException IOException if any. * @throws XmlPullParserException XmlPullParserException if * any. * @return Model */ public Model read(Reader reader, boolean strict) throws IOException, XmlPullParserException { return read(reader, strict, null); } // -- Model read( Reader, boolean ) /**Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 5.2K bytes - Click Count (0)