Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 411 for Got (0.02 sec)

  1. schema/naming_test.go

    		t.Errorf("invalid index name generated, got %v", idxName)
    	}
    
    	chkName := ns.CheckerName("public.table", "name")
    	if chkName != "chk_public_table_name" {
    		t.Errorf("invalid checker name generated, got %v", chkName)
    	}
    
    	joinTable := ns.JoinTableName("user_languages")
    	if joinTable != "public.user_languages" {
    		t.Errorf("invalid join table generated, got %v", joinTable)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue May 30 02:00:48 UTC 2023
    - 7K bytes
    - Viewed (0)
  2. cmd/sftp-server_test.go

    	if err == nil || !errors.Is(err, errAuthentication) {
    		c.Fatalf("expected err(%s) but got (%s)", errAuthentication, err)
    	}
    
    	newSSHCon = newSSHConnMock("dillon")
    	_, err = sshPubKeyAuth(newSSHCon, testKey)
    	if err == nil || !errors.Is(err, errNoSuchUser) {
    		c.Fatalf("expected err(%s) but got (%s)", errNoSuchUser, err)
    	}
    }
    
    func (s *TestSuiteIAM) SFTPPublicKeyAuthentication(c *check) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 09:06:25 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. src/archive/zip/zip_test.go

    		t.Errorf("UncompressedSize: got %d, want %d\n", got, want)
    	}
    	if got, want := fh2.UncompressedSize64, wantUncompressedSize64; got != want {
    		t.Errorf("UncompressedSize64: got %d, want %d\n", got, want)
    	}
    	if got, want := fh2.ModifiedTime, fh.ModifiedTime; got != want {
    		t.Errorf("ModifiedTime: got %d, want %d\n", got, want)
    	}
    	if got, want := fh2.ModifiedDate, fh.ModifiedDate; got != want {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. cmd/erasure-metadata_test.go

    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			if got := listObjectParities(test.metaArr, test.errs); !slices.Equal(got, test.parities) {
    				t.Fatalf("Expected parities %v but got %v", test.parities, got)
    			}
    			if got := commonParity(test.parities, len(test.metaArr)/2); got != test.parity {
    				t.Fatalf("Expected common parity %v but got %v", test.parity, got)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:02:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. misc/go_android_exec/exitcode_test.go

    	if want, got := pre, out.String(); want != got {
    		t.Errorf("filter should have already flushed %q, but flushed %q", want, got)
    	}
    
    	code, err := f.Finish()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Nothing more should have been written to out.
    	if want, got := pre, out.String(); want != got {
    		t.Errorf("want output %q, got %q", want, got)
    	}
    	if want := 1; want != code {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed May 03 14:54:58 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. cmd/metacache-stream_test.go

    		if gotObj.name != want {
    			t.Errorf("entry %d, want %q, got %q", i, want, gotObj.name)
    		}
    	}
    }
    
    func Test_metacacheReader_peek(t *testing.T) {
    	r := loadMetacacheSample(t)
    	defer r.Close()
    	for i, want := range loadMetacacheSampleNames {
    		got, err := r.peek()
    		if err == io.EOF {
    			break
    		}
    		if err != nil {
    			t.Fatal(err)
    		}
    		if got.name != want {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 15K bytes
    - Viewed (0)
  7. 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)
  8. tests/sql_builder_test.go

    	row := DB.Table("users").Where("name = ?", user2.Name).Select("age").Row()
    
    	var age int64
    	if err := row.Scan(&age); err != nil {
    		t.Fatalf("Failed to scan age, got %v", err)
    	}
    
    	if age != 10 {
    		t.Errorf("Scan with Row, age expects: %v, got %v", user2.Age, age)
    	}
    
    	table := "gorm.users"
    	if DB.Dialector.Name() != "mysql" || isTiDB() {
    		table = "users" // other databases doesn't support select with `database.table`
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  9. tests/associations_has_many_test.go

    		t.Errorf("expected %d contents, got %d", 3, count)
    	}
    
    	var contents []ItemContent
    	if err := tx.Find(&contents).Error; err != nil {
    		t.Errorf("failed to find contents, got error: %v", err)
    	}
    	if len(contents) != 3 {
    		t.Errorf("expected %d contents, got %d", 3, len(contents))
    	}
    
    	// test delete
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. internal/crypto/header_test.go

    		if Requested(test.Header) != got {
    			// Test if result matches.
    			t.Errorf("Requested mismatch, want %v, got %v", Requested(test.Header), got)
    		}
    		got = got && S3.IsRequested(test.Header)
    		if got != test.Expected {
    			t.Errorf("SSE-S3: Test %d: Wanted %v but got %v", i, test.Expected, got)
    		}
    	}
    	for i, test := range ssecIsRequestedTests {
    		_, got := IsRequested(test.Header)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 13 14:52:15 UTC 2022
    - 21.4K bytes
    - Viewed (0)
Back to top