- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 356 for goto (0.02 sec)
-
cmd/os-readdir_test.go
// checkResult - checks whether entries are got are same as expected entries. func checkResult(expected []string, got []string) bool { // If length of expected and got slice are different, the test actually failed. if len(expected) != len(got) { return false } for i := range expected { // If entry in expected is not same as entry it got, the test is failed. if expected[i] != got[i] { return false } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 7.5K bytes - Viewed (0) -
internal/store/store_test.go
t.Fatalf("case[%v]: Expected key.Name: %v, got %v", i, testCase.expectedKey.Name, key.Name) } if testCase.expectedKey.Compress != key.Compress { t.Fatalf("case[%v]: Expected key.Compress: %v, got %v", i, testCase.expectedKey.Compress, key.Compress) } if testCase.expectedKey.Extension != key.Extension { t.Fatalf("case[%v]: Expected key.Extension: %v, got %v", i, testCase.expectedKey.Extension, key.Extension) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 4K bytes - Viewed (0) -
cmd/xl-storage-format-v2_test.go
t.Errorf("Wrong signature, want %#v, got %#v", wantSig, v0.header.Signature) } v, err := xl.getIdx(0) if err != nil { t.Fatal(err) } wantTimeStamp := "2022-10-27T07:40:53.195813291Z" got := string(v.DeleteMarker.MetaSys[ReservedMetadataPrefixLower+ReplicationTimestamp]) if wantTimeStamp != got { t.Errorf("Wrong timestamp, want %v, got %v", wantTimeStamp, got) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Mar 08 17:50:48 UTC 2024 - 36.4K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_test.go
} if rb.Length() != 64 { t.Fatalf("expect len 64 bytes but got %d. r.w=%d, r.r=%d", rb.Length(), rb.w, rb.r) } if rb.Free() != 0 { t.Fatalf("expect free 0 bytes but got %d. r.w=%d, r.r=%d", rb.Free(), rb.w, rb.r) } // check empty or full if rb.IsEmpty() { t.Fatalf("expect IsEmpty is false but got true") } if !rb.IsFull() { t.Fatalf("expect IsFull is true but got false") }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 26.8K bytes - Viewed (0) -
internal/lock/lock_windows_test.go
} { in := strings.ReplaceAll(test.in, "long", veryLong) want := strings.ReplaceAll(test.want, "long", veryLong) if got := fixLongPath(in); got != want { got = strings.ReplaceAll(got, veryLong, "long") t.Errorf("fixLongPath(%q) = %q; want %q", test.in, got, test.want) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Oct 18 18:08:15 UTC 2023 - 2.2K bytes - Viewed (0) -
src/archive/tar/writer_test.go
} if got := fw.physicalRemaining(); got != tf.wantPCnt { t.Errorf("test %d.%d, physicalRemaining() = %d, want %d", i, j, got, tf.wantPCnt) } default: t.Fatalf("test %d.%d, unknown test operation: %T", i, j, tf) } } if got := bb.String(); got != wantStr { t.Fatalf("test %d, String() = %q, want %q", i, got, wantStr) } } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 39.4K bytes - Viewed (0) -
internal/arn/arn_test.go
} for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got, err := NewIAMRoleARN(tt.args.resourceID, tt.args.serverRegion) if (err != nil) != tt.wantErr { t.Errorf("NewIAMRoleARN() error = %v, wantErr %v", err, tt.wantErr) return } if !reflect.DeepEqual(got, tt.want) { t.Errorf("NewIAMRoleARN() got = %v, want %v", got, tt.want) } }) } } func TestParse(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 08:31:34 UTC 2024 - 5.1K bytes - Viewed (0) -
schema/schema_test.go
if err != nil { t.Fatalf("failed to parse user, got error %v", err) } checkUserSchema(t, user) } func TestParseSchemaWithMap(t *testing.T) { type User struct { tests.User Attrs map[string]string `gorm:"type:Map(String,String);"` } user, err := schema.Parse(&User{}, &sync.Map{}, schema.NamingStrategy{}) if err != nil { t.Fatalf("failed to parse user with map, got error %v", err) }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jun 20 12:19:31 UTC 2024 - 13.3K bytes - Viewed (0) -
tests/tests_test.go
log.Printf("failed to connect database, got error %v", err) os.Exit(1) } else { sqlDB, err := DB.DB() if err != nil { log.Printf("failed to connect database, got error %v", err) os.Exit(1) } err = sqlDB.Ping() if err != nil { log.Printf("failed to ping sqlDB, got error %v", err) os.Exit(1) } RunMigrations() } }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Sep 30 03:21:19 UTC 2024 - 3.3K bytes - Viewed (0) -
cmd/streaming-v4-unsigned.go
mustRead := func(b ...byte) error { for _, want := range b { got, err := cr.reader.ReadByte() if err == io.EOF { return io.ErrUnexpectedEOF } if got != want { if cr.debug { fmt.Printf("mustread: want: %q got: %q\n", string(want), string(got)) } return errMalformedEncoding } if err != nil { return err } } return 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)