Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for mixed (0.58 sec)

  1. cni/pkg/plugin/plugin_test.go

    			want: []string{"1234", "2345"},
    		},
    		{
    			name: "Sequential Duplicates",
    			args: args{ports: []string{"1234", "1234", "2345", "2345"}},
    			want: []string{"1234", "2345"},
    		},
    		{
    			name: "Mixed Duplicates",
    			args: args{ports: []string{"1234", "2345", "1234", "2345"}},
    			want: []string{"1234", "2345"},
    		},
    		{
    			name: "Empty",
    			args: args{ports: []string{}},
    			want: []string{},
    		},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  2. tests/joins_test.go

    	err = DB.InnerJoins("NamedPet").InnerJoins("Company").InnerJoins("Manager").InnerJoins("Account").First(&user2, "users.name = ?", user.Name).Error
    	AssertEqual(t, err, gorm.ErrRecordNotFound)
    
    	// mixed inner join and left join
    	var user3 User
    	err = DB.Joins("NamedPet").InnerJoins("Company").InnerJoins("Manager").InnerJoins("Account").First(&user3, "users.name = ?", user.Name).Error
    	AssertEqual(t, err, nil)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 26 14:19:32 GMT 2023
    - 13.5K bytes
    - Viewed (1)
  3. internal/s3select/select_test.go

    		},
    		{
    			name:       "compare-mixed",
    			query:      `SELECT id from s3object s WHERE value = true`,
    			wantResult: `{"id":1}`,
    			withJSON: `{"id":0, "value": false}
    {"id":1, "value": true}
    {"id":2, "value": 42}
    {"id":3, "value": "true"}
    `,
    		},
    		{
    			name:       "compare-mixed-not",
    			query:      `SELECT COUNT(id) as n from s3object s WHERE value != true`,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    			x[i] = ' '
    		} else {
    			x[i] = 'x'
    		}
    	}
    	return x
    }
    
    var bytesdata = []struct {
    	name string
    	data []byte
    }{
    	{"ASCII", makeFieldsInputASCII()},
    	{"Mixed", makeFieldsInput()},
    }
    
    func BenchmarkFields(b *testing.B) {
    	for _, sd := range bytesdata {
    		b.Run(sd.name, func(b *testing.B) {
    			for j := 1 << 4; j <= 1<<20; j <<= 4 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  5. cmd/net_test.go

    		{
    			ipList:       []string{"hostname", "127.0.0.1", "192.168.1.106"},
    			sortedIPList: []string{"hostname", "192.168.1.106", "127.0.0.1"},
    		},
    		// Non parsable ip is assumed to be hostname, with a mixed input of ip and hostname.
    		// gets preserved and moved into left most elements, regardless of
    		// IP based sorting.
    		{
    			ipList:       []string{"hostname1", "10.0.0.13", "hostname2", "127.0.0.1", "192.168.1.106"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 08:43:09 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. cmd/endpoint_test.go

    		{[]string{"d1", "http://localhost/d2", "d3", "d4"}, fmt.Errorf("mixed style endpoints are not supported")},
    		{[]string{"http://example.org/d1", "https://example.com/d1", "http://example.net/d1", "https://example.edut/d1"}, fmt.Errorf("mixed scheme is not supported")},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Jan 13 07:53:03 GMT 2024
    - 18.9K bytes
    - Viewed (1)
  7. istioctl/pkg/writer/ztunnel/configdump/configdump.go

    	FullDump    []byte
    }
    
    // Prime loads the config dump into the writer ready for printing
    func (c *ConfigWriter) Prime(b []byte) error {
    	cd := ZtunnelDump{}
    	// TODO(fisherxu): migrate this to jsonpb when issue fixed in golang
    	// Issue to track -> https://github.com/golang/protobuf/issues/632
    	err := json.Unmarshal(b, &cd)
    	if err != nil {
    		return fmt.Errorf("error unmarshalling config dump response from ztunnel: %v", err)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. internal/s3select/csv/reader_contrib_test.go

    				}
    				if fields < 10 {
    					opts := sql.WriteCSVOpts{
    						FieldDelimiter: ',',
    						Quote:          '"',
    						QuoteEscape:    '"',
    						AlwaysQuote:    false,
    					}
    					// Write with fixed delimiters, newlines.
    					err := record.WriteCSV(&result, opts)
    					if err != nil {
    						t.Error(err)
    					}
    				}
    				fields++
    			}
    			r.Close()
    			if err != io.EOF {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 38.5K bytes
    - Viewed (0)
  9. migrator/migrator.go

    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		// We're currently only receiving boolean values on `Unique` tag,
    		// so the UniqueConstraint name is fixed
    		constraint := m.DB.NamingStrategy.UniqueName(stmt.Table, field.DBName)
    		if unique && !field.Unique {
    			return m.DB.Migrator().DropConstraint(value, constraint)
    		}
    		if !unique && field.Unique {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 07:15:49 GMT 2024
    - 29K bytes
    - Viewed (0)
  10. src/archive/zip/reader.go

    		switch fieldTag {
    		case zip64ExtraID:
    			f.zip64 = true
    
    			// update directory values from the zip64 extra block.
    			// They should only be consulted if the sizes read earlier
    			// are maxed out.
    			// See golang.org/issue/13367.
    			if needUSize {
    				needUSize = false
    				if len(fieldBuf) < 8 {
    					return ErrFormat
    				}
    				f.UncompressedSize64 = fieldBuf.uint64()
    			}
    			if needCSize {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top