Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 285 for one (0.12 sec)

  1. tests/update_has_one_test.go

    	"time"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestUpdateHasOne(t *testing.T) {
    	user := *GetUser("update-has-one", Config{})
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Account = Account{Number: "account-has-one-association"}
    
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jul 14 06:55:54 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  2. cmd/bucket-replication-utils_test.go

    	},
    	{ // 2. replication status for one target
    		name:      "replication status for one target",
    		rs:        ReplicationState{ReplicationStatusInternal: "arn1=PENDING;", Targets: map[string]replication.StatusType{"arn1": "PENDING"}},
    		expStatus: replication.Pending,
    	},
    	{ // 3. replication status for one target - incorrect format
    		name:      "replication status for one target",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 08 20:27:40 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  3. utils/tests/models.go

    	"time"
    
    	"gorm.io/gorm"
    )
    
    // User has one `Account` (has one), many `Pets` (has many) and `Toys` (has many - polymorphic)
    // He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
    // He speaks many languages (many to many) and has many friends (many to many - single-table)
    // His pet also has one Toy (has one - polymorphic)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/filter.go

    package lifecycle
    
    import (
    	"encoding/xml"
    	"io"
    
    	"github.com/minio/minio-go/v7/pkg/tags"
    )
    
    var errInvalidFilter = Errorf("Filter must have exactly one of Prefix, Tag, or And specified")
    
    // Filter - a filter for a lifecycle configuration Rule.
    type Filter struct {
    	XMLName xml.Name `xml:"Filter"`
    	set     bool
    
    	Prefix Prefix
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 27 00:01:20 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/podcgroupns_test.go

    			expectContainerID: "",
    		},
    		{
    			name: "no container ID in cgroups",
    			cgroupPaths: []string{
    				"/user.slice",
    			},
    			expectPodUID:      "",
    			expectContainerID: "",
    		},
    		{
    			name: "one container ID in cgroups",
    			cgroupPaths: []string{
    				"/user.slice",
    				"/kubepods/pod2c48913c-b29f-11e7-9350-020968147796/9bca8d63d5fa610783847915bcff0ecac1273e5b4bed3f6fa1b07350e0135961",
    			},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  6. cmd/leak-detect_test.go

    		// current stack snapshot matches the initial one, no leaks, return.
    		if len(leaked) == 0 {
    			return
    		}
    		// wait a test again will deadline.
    		if UTCNow().Before(deadline) {
    			time.Sleep(leakDetectPauseTimeMs * time.Millisecond)
    			continue
    		}
    		// after the deadline time report all the difference in the latest snapshot compared with the initial one.
    		for _, g := range leaked {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  7. cni/pkg/repair/netns.go

    	// There should be 1 or 2 processes that match: the pause container should always be there, and the istio-validation *might*.
    	// We want the pause container, as the istio-validation one may exit before we are done.
    	// We do this by detecting the longest running process. We could look at `cmdline`, but is likely more reliable to weird platforms.
    	for _, p := range procs {
    		ns := getPidNamespace(p.PID)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  8. internal/http/dial_dnscache.go

    // function. LookupHost may implement an internal DNS caching implementation, lookupHost
    // input if nil then net.DefaultResolver.LookupHost is used.
    //
    // It dials one by one and returns first connected `net.Conn`.
    // If it fails to dial all IPs from cache it returns first error. If no baseDialFunc
    // is given, it sets default dial function.
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 03 19:30:51 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  9. cni/pkg/log/uds_test.go

    	os.Stdout = stdout
    	assert.NoError(t, log.Configure(loggingOptions))
    
    	assert.NoError(t, w.Close())
    	out, err := io.ReadAll(r)
    	assert.NoError(t, err)
    
    	// For each level, there should be two lines, one from direct log,
    	// the other one from UDS server
    	wantLevels := []string{"debug", "info", "warn", "error", "debug", "info", "warn", "error"}
    	gotLogs := strings.Split(
    		strings.TrimSuffix(string(out), "\n"), "\n")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Mar 16 00:20:01 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  10. src/bufio/scan.go

    // the token is the last token.
    //
    // The value is useful to stop processing early or when it is necessary to
    // deliver a final empty token (which is different from a nil token).
    // One could achieve the same behavior with a custom error value but
    // providing one here is tidier.
    // See the emptyFinalToken example for a use of this value.
    var ErrFinalToken = errors.New("final token")
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
Back to top