Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 156 for GOT (0.02 sec)

  1. 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: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 16K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-utils_test.go

    			for i := 0; i < n; i++ {
    				if got := hashDeterministicString(m); got != want {
    					t.Errorf("hashDeterministicString() = %v, want %v", got, want)
    				}
    			}
    			// Check casual collisions
    			if m == nil {
    				m = make(map[string]string)
    			}
    			m["12312312"] = ""
    			if got := hashDeterministicString(m); got == want {
    				t.Errorf("hashDeterministicString() = %v, does not want %v", got, want)
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. tests/scan_test.go

    		t.Errorf("Failed to run join query, got error: %v", err)
    	}
    
    	personMatched := false
    	addressMatched := false
    
    	for _, info := range personAddressInfoList {
    		if info.Person == nil {
    			t.Fatalf("Failed, expected not nil, got person nil")
    		}
    		if info.Address == nil {
    			t.Fatalf("Failed, expected not nil, got address nil")
    		}
    		if info.Person.ID == person1.ID {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. src/runtime/gc_test.go

    	}
    }
    
    func logDiff(t *testing.T, prefix string, got, want reflect.Value) {
    	typ := got.Type()
    	switch typ.Kind() {
    	case reflect.Array, reflect.Slice:
    		if got.Len() != want.Len() {
    			t.Logf("len(%s): got %v, want %v", prefix, got, want)
    			return
    		}
    		for i := 0; i < got.Len(); i++ {
    			logDiff(t, fmt.Sprintf("%s[%d]", prefix, i), got.Index(i), want.Index(i))
    		}
    	case reflect.Struct:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/net/netip/netip_test.go

    	}
    	for i, tt := range tests {
    		if got := tt.a.Overlaps(tt.b); got != tt.want {
    			t.Errorf("%d. (%v).Overlaps(%v) = %v; want %v", i, tt.a, tt.b, got, tt.want)
    		}
    		// Overlaps is commutative
    		if got := tt.b.Overlaps(tt.a); got != tt.want {
    			t.Errorf("%d. (%v).Overlaps(%v) = %v; want %v", i, tt.b, tt.a, got, tt.want)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  6. src/os/pidfd_linux_test.go

    	// FindProcess should never return errors on Unix.
    	if err != nil {
    		t.Fatalf("FindProcess: got error %v, want <nil>", err)
    	}
    	// FindProcess should never return nil Process.
    	if proc == nil {
    		t.Fatal("FindProcess: got nil, want non-nil")
    	}
    	if proc.Status() != os.StatusDone {
    		t.Fatalf("got process status: %v, want %d", proc.Status(), os.StatusDone)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. tests/associations_has_one_test.go

    		t.Fatalf("Error happened when delete account, got %v", err)
    	}
    	AssertAssociationCount(t, user2, "Account", 1, "after delete non-existing data")
    
    	if err := DB.Model(&user2).Association("Account").Delete(&account2); err != nil {
    		t.Fatalf("Error happened when delete Account, got %v", err)
    	}
    	AssertAssociationCount(t, user2, "Account", 0, "after delete")
    
    	// Prepare Data for Clear
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. src/os/exec_unix_test.go

    	t.Parallel()
    
    	p, err := StartProcess(testenv.GoToolPath(t), []string{"go"}, &ProcAttr{})
    	if err != nil {
    		t.Fatalf("starting test process: %v", err)
    	}
    	p.Wait()
    	if got := p.Signal(Kill); got != ErrProcessDone {
    		t.Errorf("got %v want %v", got, ErrProcessDone)
    	}
    }
    
    // Lookup of a process that does not exist at time of lookup.
    func TestProcessAlreadyDone(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. buildscripts/minio-upgrade.sh

    		echo "mismatch expected ${sum1_heal}, got ${sum1}"
    		exit 1
    	fi
    }
    
    verify_checksum_mc() {
    	local expected
    	expected=$(mc cat "$1" | sha256sum)
    	local got
    	got=$(mc cat "$2" | sha256sum)
    
    	if [ "${expected}" != "${got}" ]; then
    		echo "mismatch - expected ${expected}, got ${got}"
    		exit 1
    	fi
    	echo "matches - ${expected}, got ${got}"
    }
    
    add_alias() {
    	for i in $(seq 1 4); do
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 05:08:11 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top