Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 656 for name (0.15 sec)

  1. internal/event/name.go

    		return []Name{
    			ObjectManyVersions,
    			ObjectLargeVersions,
    			PrefixManyFolders,
    		}
    	case Everything:
    		res := make([]Name, objectSingleTypesEnd-1)
    		for i := range res {
    			res[i] = Name(i + 1)
    		}
    		return res
    	default:
    		return []Name{name}
    	}
    }
    
    // Mask returns the type as mask.
    // Compound "All" types are expanded.
    func (name Name) Mask() uint64 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 17:45:03 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. internal/event/name_test.go

    	var blankName Name
    
    	testCases := []struct {
    		data         []byte
    		expectedName Name
    		expectErr    bool
    	}{
    		{[]byte("<Name>s3:ObjectAccessed:*</Name>"), ObjectAccessedAll, false},
    		{[]byte("<Name>s3:ObjectRemoved:Delete</Name>"), ObjectRemovedDelete, false},
    		{[]byte("<Name>s3:ObjectRemoved:NoOP</Name>"), ObjectRemovedNoOP, false},
    		{[]byte("<Name></Name>"), blankName, true},
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/cluster.go

    		iDirection, iSubset, iName, iPort := safelyParseSubsetKey(clusters[i].Name)
    		jDirection, jSubset, jName, jPort := safelyParseSubsetKey(clusters[j].Name)
    		if iName == jName {
    			if iSubset == jSubset {
    				if iPort == jPort {
    					return iDirection < jDirection
    				}
    				return iPort < jPort
    			}
    			return iSubset < jSubset
    		}
    		return iName < jName
    	})
    	return clusters, nil
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  4. schema/constraint_test.go

    	}
    
    	results := map[string]schema.CheckConstraint{
    		"name_checker": {
    			Name:       "name_checker",
    			Constraint: "name <> 'jinzhu'",
    		},
    		"chk_user_checks_name2": {
    			Name:       "chk_user_checks_name2",
    			Constraint: "name <> 'jinzhu'",
    		},
    		"chk_user_checks_name3": {
    			Name:       "chk_user_checks_name3",
    			Constraint: "name <> 'jinzhu'",
    		},
    	}
    
    	checks := user.ParseCheckConstraints()
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sun Feb 04 07:49:19 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  5. clause/expression_test.go

    	}, {
    		SQL:          "name1 = @name1 AND name2 = @name2 AND name3 = @name1",
    		Vars:         []interface{}{sql.Named("name1", "jinzhu"), sql.Named("name2", "jinzhu2")},
    		Result:       "name1 = ? AND name2 = ? AND name3 = ?",
    		ExpectedVars: []interface{}{"jinzhu", "jinzhu2", "jinzhu"},
    	}, {
    		SQL:          "name1 = @name1 AND name2 = @name2 AND name3 = @name1",
    		Vars:         []interface{}{map[string]interface{}{"name1": "jinzhu", "name2": "jinzhu2"}},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Aug 10 05:34:33 GMT 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/cmd/api/main_test.go

    		w.emitf("type %s = %s", name, w.typeString(typ))
    		return
    	}
    	if tparams := obj.Type().(*types.Named).TypeParams(); tparams != nil {
    		var buf bytes.Buffer
    		buf.WriteString(name)
    		w.writeTypeParams(&buf, tparams, true)
    		name = buf.String()
    	}
    	switch typ := typ.Underlying().(type) {
    	case *types.Struct:
    		w.emitStructType(name, typ)
    	case *types.Interface:
    		w.emitIfaceType(name, typ)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  7. src/archive/tar/writer_test.go

    	for _, test := range []struct {
    		name string
    		h    *Header
    	}{{
    		name: "name too long",
    		h:    &Header{Name: strings.Repeat("a", maxSpecialFileSize)},
    	}, {
    		name: "linkname too long",
    		h:    &Header{Linkname: strings.Repeat("a", maxSpecialFileSize)},
    	}, {
    		name: "uname too long",
    		h:    &Header{Uname: strings.Repeat("a", maxSpecialFileSize)},
    	}, {
    		name: "gname too long",
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  8. src/archive/tar/tar_test.go

    		if err != nil {
    			t.Error(err)
    			continue
    		}
    		if strings.Contains(fi.Name(), "/") {
    			t.Errorf("FileInfo of %q contains slash: %q", v.h.Name, fi.Name())
    		}
    		name := path.Base(v.h.Name)
    		if fi.IsDir() {
    			name += "/"
    		}
    		if got, want := h2.Name, name; got != want {
    			t.Errorf("i=%d: Name: got %v, want %v", i, got, want)
    		}
    		if got, want := h2.Size, v.h.Size; got != want {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  9. tests/query_test.go

    	if result.ID != 0 {
    		t.Errorf("Should not have ID because only selected name, %+v", result.ID)
    	}
    
    	if user.Name != result.Name {
    		t.Errorf("Should have user Name when selected it")
    	}
    
    	var result2 User
    	DB.Where("name = ?", user.Name).Select("name as name").Find(&result2)
    	if result2.ID != 0 {
    		t.Errorf("Should not have ID because only selected name, %+v", result2.ID)
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  10. tests/sql_builder_test.go

    	}
    
    	var results []result
    	DB.Raw("SELECT name, age FROM users WHERE name = ? or name = ?", user2.Name, user3.Name).Scan(&results)
    	if len(results) != 2 || results[0].Name != user2.Name || results[1].Name != user3.Name {
    		t.Errorf("Raw with scan")
    	}
    
    	rows, _ := DB.Raw("select name, age from users where name = ?", user3.Name).Rows()
    	count := 0
    	for rows.Next() {
    		count++
    	}
    	if count != 1 {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 16.7K bytes
    - Viewed (0)
Back to top