Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 413 for got4 (0.15 sec)

  1. tests/associations_test.go

    	}
    
    	member.Profile = Profile{}
    	DB.Model(&member).Update("Refer", 100)
    
    	var profile2 Profile
    	if err := DB.First(&profile2, "id = ?", profile.ID).Error; err != nil {
    		t.Fatalf("failed to find profile, got error: %v", err)
    	} else if profile2.MemberID != 100 {
    		t.Fatalf("member id is not equal: expects: %v, got: %v", 100, profile2.MemberID)
    	}
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  2. cmd/signature-v4-utils_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		if testCase.h != "" {
    			r.Header.Set("x-amz-content-sha256", testCase.h)
    		}
    		r.ParseForm()
    		got := getContentSha256Cksum(r, serviceS3)
    		if got != testCase.expected {
    			t.Errorf("Test %d: got:%s expected:%s", i+1, got, testCase.expected)
    		}
    	}
    }
    
    // Test TestCheckMetaHeaders tests the logic of checkMetaHeaders() function
    func TestCheckMetaHeaders(t *testing.T) {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Apr 05 21:26:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    			},
    		},
    		ok: true,
    	}}
    
    	for i, v := range vectors {
    		got := new(Header)
    		err := mergePAX(got, v.in)
    		if v.ok && !reflect.DeepEqual(*got, *v.want) {
    			t.Errorf("test %d, mergePAX(...):\ngot  %+v\nwant %+v", i, *got, *v.want)
    		}
    		if ok := err == nil; ok != v.ok {
    			t.Errorf("test %d, mergePAX(...): got %v, want %v", i, ok, v.ok)
    		}
    	}
    }
    
    func TestParsePAX(t *testing.T) {
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  4. src/bufio/bufio_test.go

    }
    
    func TestReaderSize(t *testing.T) {
    	if got, want := NewReader(nil).Size(), DefaultBufSize; got != want {
    		t.Errorf("NewReader's Reader.Size = %d; want %d", got, want)
    	}
    	if got, want := NewReaderSize(nil, 1234).Size(), 1234; got != want {
    		t.Errorf("NewReaderSize's Reader.Size = %d; want %d", got, want)
    	}
    }
    
    func TestWriterSize(t *testing.T) {
    	if got, want := NewWriter(nil).Size(), DefaultBufSize; got != want {
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Mon Oct 28 21:04:51 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  5. src/archive/zip/writer_test.go

    		if got.Method != want.method {
    			t.Errorf("%s: got Method %#x; want %#x", want.name, got.Method, want.method)
    		}
    		if got.Flags != want.flags {
    			t.Errorf("%s: got Flags %#x; want %#x", want.name, got.Flags, want.flags)
    		}
    		if got.CRC32 != want.crc32 {
    			t.Errorf("%s: got CRC32 %#x; want %#x", want.name, got.CRC32, want.crc32)
    		}
    		if got.CompressedSize64 != want.compressedSize {
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. docs/debugging/xl-meta/main.go

    								fmt.Println("Retrying with merged data")
    								if addedFiles >= len(files[partIdx]) {
    									attempt++
    									goto nextAttempt
    								}
    							}
    						}
    					}
    				}
    				if m.blockOffset != len(combined) {
    					return fmt.Errorf("Block offset mismatch. Expected %d got %d", m.blockOffset, len(combined))
    				}
    				combined = append(combined, m.mapped[:m.size]...)
    				missingAll += missing
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  7. internal/s3select/jstream/decoder_test.go

    		}
    	)
    
    	decoder := NewDecoder(mkReader(body), 1)
    
    	for mv = range decoder.Stream() {
    		if mv.Value != expected[counter].Value {
    			t.Fatalf("got %v, expected: %v", mv.Value, expected[counter])
    		}
    		if mv.ValueType != expected[counter].ValueType {
    			t.Fatalf("got %v value type, expected: %v value type", mv.ValueType, expected[counter].ValueType)
    		}
    		counter++
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. internal/hash/errors.go

    type SizeTooSmall struct {
    	Want int64
    	Got  int64
    }
    
    func (e SizeTooSmall) Error() string {
    	return fmt.Sprintf("Size small: got %d, want %d", e.Got, e.Want)
    }
    
    // SizeTooLarge reader size too large
    type SizeTooLarge struct {
    	Want int64
    	Got  int64
    }
    
    func (e SizeTooLarge) Error() string {
    	return fmt.Sprintf("Size large: got %d, want %d", e.Got, e.Want)
    }
    
    // SizeMismatch error size mismatch
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon May 15 21:08:54 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. istioctl/cmd/root_test.go

    	parent.SetArgs([]string{"child", "--help"})
    	if err := parent.Execute(); err != nil {
    		t.Fatal(err)
    	}
    	got := out.String()
    	out.Reset()
    	checkHelpForFlag(t, got, parentFlag0, true)
    	checkHelpForFlag(t, got, parentFlag1, true)
    	checkHelpForFlag(t, got, parentFlag2, true)
    	checkHelpForFlag(t, got, childFlag2, true)
    
    	// verify the hidden parent flag is not visible in help text
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Fri Jan 15 17:59:55 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  10. tests/scanner_valuer_test.go

    	}
    
    	var result ScannerValuerStruct
    
    	if err := DB.Find(&result, "id = ?", data.ID).Error; err != nil {
    		t.Fatalf("no error should happen when query scanner, valuer struct, but got %v", err)
    	}
    
    	if result.ExampleStructPtr.Val != "value2" {
    		t.Errorf(`ExampleStructPtr.Val should equal to "value2", but got %v`, result.ExampleStructPtr.Val)
    	}
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top