- Sort Score
- Result 10 results
- Languages All
Results 411 - 420 of 732 for mybool (0.89 sec)
-
cmd/server-main_test.go
package cmd import ( "context" "reflect" "testing" ) func TestServerConfigFile(t *testing.T) { for _, testcase := range []struct { config string expectedErr bool hash string }{ { config: "testdata/config/1.yaml", expectedErr: false, hash: "hash:02bf70285dc71f76", }, { config: "testdata/config/2.yaml",
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3.1K bytes - Viewed (0) -
cmd/endpoint-ellipses_test.go
) // Tests create endpoints with ellipses and without. func TestCreateServerEndpoints(t *testing.T) { testCases := []struct { serverAddr string args []string success bool }{ // Invalid input. {"", []string{}, false}, // Range cannot be negative. {":9000", []string{"/export1{-1...1}"}, false}, // Range cannot start bigger than end.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 15.1K bytes - Viewed (0) -
tests/prepared_stmt_test.go
pdb.Mux.Unlock() pdb.Close() pdb.Mux.Lock() defer pdb.Mux.Unlock() if len(pdb.Stmts.Keys()) != 0 { t.Fatalf("prepared stmt should be empty") } } func isUsingClosedConnError(err error) bool { // https://github.com/golang/go/blob/e705a2d16e4ece77e08e80c168382cdb02890f5b/src/database/sql/sql.go#L2717 return err.Error() == "sql: statement is closed" }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Apr 25 08:22:26 UTC 2025 - 8K bytes - Viewed (0) -
internal/config/certs_test.go
if err != nil { t.Fatalf("Unable to create temporary file. %v", err) } defer os.Remove(tempFile5) testCases := []struct { certFile string expectedResultLen int expectedErr bool }{ {"nonexistent-file", 0, true}, {tempFile1, 0, true}, {tempFile2, 0, true}, {tempFile3, 0, true}, {tempFile4, 1, false}, {tempFile5, 2, false}, }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 21.6K bytes - Viewed (0) -
internal/disk/stat_solaris.go
package disk import ( "errors" "fmt" "golang.org/x/sys/unix" ) // GetInfo returns total and free bytes available in a directory, e.g. `/`. func GetInfo(path string, _ bool) (info Info, err error) { s := unix.Statvfs_t{} if err = unix.Statvfs(path, &s); err != nil { return Info{}, err } reservedBlocks := uint64(s.Bfree) - uint64(s.Bavail) info = Info{
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 1.8K bytes - Viewed (0) -
scan.go
} if len(joinFields) == 0 || len(joinFields[idx]) == 0 { db.AddError(field.Set(db.Statement.Context, reflectValue, values[idx])) } else { // joinFields count is larger than 2 when using join var isNilPtrValue bool var relValue reflect.Value // does not contain raw dbname nestedJoinSchemas := joinFields[idx][:len(joinFields[idx])-1] // current reflect value currentReflectValue := reflectValue
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 10.4K bytes - Viewed (0) -
internal/crypto/sse-s3.go
S3 = sses3{} _ Type = S3 ) // String returns the SSE domain as string. For SSE-S3 the // domain is "SSE-S3". func (sses3) String() string { return "SSE-S3" } func (sses3) IsRequested(h http.Header) bool { _, ok := h[xhttp.AmzServerSideEncryption] // Return only true if the SSE header is specified and does not contain the SSE-KMS value return ok && !strings.EqualFold(h.Get(xhttp.AmzServerSideEncryption), xhttp.AmzEncryptionKMS)Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 7.6K bytes - Viewed (0) -
internal/grid/msg.go
} type connectResp struct { ID [16]byte Accepted bool RejectedReason string } func (connectResp) Op() Op { return OpConnectResponse } type muxConnectError struct { Error string } func (muxConnectError) Op() Op { return OpMuxConnectError } type pongMsg struct { NotFound bool `msg:"nf"` Err *string `msg:"e,allownil"`Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Jul 25 21:07:21 UTC 2024 - 7.6K bytes - Viewed (0) -
internal/store/queuestore.go
defer store.RUnlock() entries := make([]string, 0, len(store.entries)) for entry := range store.entries { entries = append(entries, entry) } // Sort entries... sort.Slice(entries, func(i, j int) bool { return store.entries[entries[i]] < store.entries[entries[j]] }) for i := range entries { keys = append(keys, parseKey(entries[i])) } return keys }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 7.8K bytes - Viewed (0) -
cmd/api-headers.go
// https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w if equals(k, xhttp.AmzMetaUnencryptedContentLength, xhttp.AmzMetaUnencryptedContentMD5) { continue } var isSet bool for _, userMetadataPrefix := range userMetadataKeyPrefixes { if !stringsHasPrefixFold(k, userMetadataPrefix) { continue }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 8.6K bytes - Viewed (0)