Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 441 - 450 of 1,053 for struct_ (0.19 seconds)

  1. tests/connpool_test.go

    package tests_test
    
    import (
    	"context"
    	"database/sql"
    	"os"
    	"reflect"
    	"testing"
    
    	"gorm.io/driver/mysql"
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    type wrapperTx struct {
    	*sql.Tx
    	conn *wrapperConnPool
    }
    
    func (c *wrapperTx) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) {
    	c.conn.got = append(c.conn.got, query)
    	return c.Tx.PrepareContext(ctx, query)
    }
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sun May 25 07:40:40 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  2. src/cmd/asm/internal/lex/lex_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package lex
    
    import (
    	"strings"
    	"testing"
    	"text/scanner"
    )
    
    type lexTest struct {
    	name   string
    	input  string
    	output string
    }
    
    var lexTests = []lexTest{
    	{
    		"empty",
    		"",
    		"",
    	},
    	{
    		"simple",
    		"1 (a)",
    		"1.(.a.)",
    	},
    	{
    		"simple define",
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Click Count (0)
  3. src/cmd/api/testdata/src/pkg/p4/golden.txt

    pkg p4, func NewPair[$0 interface{ M }, $1 interface{ ~int }]($0, $1) Pair[$0, $1]
    pkg p4, method (Pair[$0, $1]) First() $0
    pkg p4, method (Pair[$0, $1]) Second() $1
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jul 24 16:04:17 GMT 2025
    - 329 bytes
    - Click Count (0)
  4. internal/lock/lock_test.go

    	if err != nil {
    		t.Errorf("err = %v, want %v", err, nil)
    	}
    
    	// blocking on locked file
    	locked := make(chan struct{}, 1)
    	go func() {
    		bl, blerr := LockedOpenFile(f.Name(), os.O_WRONLY, 0o600)
    		if blerr != nil {
    			t.Error(blerr)
    			return
    		}
    		locked <- struct{}{}
    		if blerr = bl.Close(); blerr != nil {
    			t.Error(blerr)
    			return
    		}
    	}()
    
    	select {
    	case <-locked:
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  5. internal/grid/debug.go

    	debugSetConnPingDuration
    	debugSetClientPingDuration
    	debugAddToDeadline
    	debugIsOutgoingClosed
    	debugBlockInboundMessages
    )
    
    // TestGrid contains a grid of servers for testing purposes.
    type TestGrid struct {
    	Servers     []*httptest.Server
    	Listeners   []net.Listener
    	Managers    []*Manager
    	Mux         []*mux.Router
    	Hosts       []string
    	cleanupOnce sync.Once
    	cancel      context.CancelFunc
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  6. cmd/scannermetric_string.go

    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[scannerMetricReadMetadata-0]
    	_ = x[scannerMetricCheckMissing-1]
    	_ = x[scannerMetricSaveUsage-2]
    	_ = x[scannerMetricApplyAll-3]
    	_ = x[scannerMetricApplyVersion-4]
    	_ = x[scannerMetricTierObjSweep-5]
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Sep 25 05:15:31 GMT 2023
    - 1.7K bytes
    - Click Count (0)
  7. migrator/index.go

    package migrator
    
    import "database/sql"
    
    // Index implements gorm.Index interface
    type Index struct {
    	TableName       string
    	NameValue       string
    	ColumnList      []string
    	PrimaryKeyValue sql.NullBool
    	UniqueValue     sql.NullBool
    	OptionValue     string
    }
    
    // Table return the table name of the index.
    func (idx Index) Table() string {
    	return idx.TableName
    }
    
    // Name return the name of the index.
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Tue Apr 11 02:32:46 GMT 2023
    - 1023 bytes
    - Click Count (0)
  8. api/next/70471.txt

    pkg hash/maphash, method (ComparableHasher[$0]) Equal($0, $0) bool #70471
    pkg hash/maphash, method (ComparableHasher[$0]) Hash(*Hash, $0) #70471
    pkg hash/maphash, type ComparableHasher[$0 comparable] struct #70471
    pkg hash/maphash, type Hasher[$0 interface{}] interface { Equal, Hash } #70471
    pkg hash/maphash, type Hasher[$0 interface{}] interface, Equal($0, $0) bool #70471
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Apr 03 15:21:15 GMT 2026
    - 456 bytes
    - Click Count (0)
  9. internal/s3select/sql/stringfuncs_contrib_test.go

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package sql
    
    import "testing"
    
    func TestEvalSQLSubstring(t *testing.T) {
    	evalCases := []struct {
    		s           string
    		startIdx    int
    		length      int
    		resExpected string
    		errExpected error
    	}{
    		{"abcd", 1, 1, "a", nil},
    		{"abcd", -1, 1, "a", nil},
    		{"abcd", 999, 999, "", nil},
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.2K bytes
    - Click Count (0)
  10. internal/etag/etag.go

    // not a valid textual representation of an ETag.
    func Parse(s string) (ETag, error) {
    	const strict = false
    	return parse(s, strict)
    }
    
    // parse parse s as an S3 ETag, returning the result.
    // It operates in one of two modes:
    //   - strict
    //   - non-strict
    //
    // In strict mode, parse only accepts ETags that
    // are AWS S3 compatible. In particular, an AWS
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 16 14:27:42 GMT 2025
    - 13.2K bytes
    - Click Count (0)
Back to Top