Search Options

Results per page
Sort
Preferred Languages
Advance

Results 391 - 400 of 1,184 for varr (0.02 sec)

  1. tests/helper_test.go

    	Pets      int
    	Toys      int
    	Company   bool
    	Manager   bool
    	Team      int
    	Languages int
    	Friends   int
    	NamedPet  bool
    	Tools     int
    }
    
    func GetUser(name string, config Config) *User {
    	var (
    		birthday = time.Now().Round(time.Second)
    		user     = User{
    			Name:     name,
    			Age:      18,
    			Birthday: &birthday,
    		}
    	)
    
    	if config.Account {
    		user.Account = Account{Number: name + "_account"}
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. tests/hooks_test.go

    	if err := DB.Create(&product2).Error; err != nil {
    		t.Fatalf("Failed to create product, got error: %v", err)
    	}
    
    	var result Product2
    	if err := DB.First(&result, "name = ?", "Nice").Error; err != nil {
    		t.Fatalf("Failed to query product, got error: %v", err)
    	}
    
    	var resultClone Product2
    	if err := DB.First(&resultClone, "name = ?", "Nice_clone").Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 17 03:59:06 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

            };
    
            checkVersionsArrayEqual(arr);
        }
    
        /**
         * Test all "0" versions are equal when starting with many leading zeroes regardless of string length
         * (related to MNG-6572 optimization)
         */
        @Test
        void testVersionZeroEqualWithLeadingZeroes() {
            // versions with string lengths from 1 to 19
            String[] arr = new String[] {
                "0000000000000000000",
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. internal/crypto/header_test.go

    		}
    		got = got && SSEC.IsRequested(test.Header)
    		if got != test.Expected {
    			t.Errorf("SSE-C: Test %d: Wanted %v but got %v", i, test.Expected, got)
    		}
    	}
    }
    
    var kmsIsRequestedTests = []struct {
    	Header   http.Header
    	Expected bool
    }{
    	{Header: http.Header{}, Expected: false},                                                                                     // 0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 13 14:52:15 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  5. tests/group_by_test.go

    	}, {
    		Name:     "groupby1",
    		Age:      330,
    		Birthday: Now(),
    		Active:   true,
    	}}
    
    	if err := DB.Create(&users).Error; err != nil {
    		t.Errorf("errors happened when create: %v", err)
    	}
    
    	var name string
    	var total int
    	if err := DB.Model(&User{}).Select("name, sum(age)").Where("name = ?", "groupby").Group("name").Row().Scan(&name, &total); err != nil {
    		t.Errorf("no error should happen, but got %v", err)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  6. cmd/data-scanner.go

    		var replicationCfg replicationConfig
    		if !f.oldCache.Info.replication.Empty() && f.oldCache.Info.replication.Config.HasActiveRules(prefix, true) {
    			replicationCfg = f.oldCache.Info.replication
    		}
    
    		if f.weSleep() {
    			scannerSleeper.Sleep(ctx, dataScannerSleepPerFolder)
    		}
    
    		var existingFolders, newFolders []cachedFolder
    		var foundObjects bool
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  7. tests/serializer_test.go

    			Location: "Kenmawr",
    			IsIntern: false,
    		},
    		CustomSerializerString: "world",
    	}
    
    	if err := DB.Create(&data).Error; err != nil {
    		t.Fatalf("failed to create data, got error %v", err)
    	}
    
    	var result SerializerStruct
    	if err := DB.Where("roles2 IS NULL AND roles3 = ?", "").First(&result, data.ID).Error; err != nil {
    		t.Fatalf("failed to query data, got error %v", err)
    	}
    
    	AssertEqual(t, result, data)
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Apr 21 14:09:38 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  8. cmd/streaming-v4-unsigned.go

    func (cr *s3UnsignedChunkedReader) readTrailers() error {
    	var valueBuffer bytes.Buffer
    	// Read value
    	for {
    		v, err := cr.reader.ReadByte()
    		if err != nil {
    			if err == io.EOF {
    				return io.ErrUnexpectedEOF
    			}
    		}
    		if v != '\r' {
    			valueBuffer.WriteByte(v)
    			continue
    		}
    		// Must end with \r\n\r\n
    		var tmp [3]byte
    		_, err = io.ReadFull(cr.reader, tmp[:])
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat May 06 02:53:12 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. internal/s3select/jstream/decoder.go

    			return nil, Null, nil
    		}
    		return nil, Unknown, d.mkError(ErrSyntax, "in literal null")
    	case '[':
    		i, err := d.array()
    		return i, Array, err
    	case '{':
    		var i interface{}
    		var err error
    		if d.objectAsKVS {
    			i, err = d.objectOrdered()
    		} else {
    			i, err = d.object()
    		}
    		return i, Object, err
    	default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      /** The low-level TCP socket. */
      private var rawSocket: Socket?,
      /**
       * The application layer socket. Either an [SSLSocket] layered over [rawSocket], or [rawSocket]
       * itself if this connection does not use SSL.
       */
      private var socket: Socket?,
      private var handshake: Handshake?,
      private var protocol: Protocol?,
      private var source: BufferedSource?,
      private var sink: BufferedSink?,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top