Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SliceMap (0.5 sec)

  1. tests/create_test.go

    	data := []User{}
    	if err := DB.Create(&data).Error; err != gorm.ErrEmptySlice {
    		t.Errorf("no data should be created, got %v", err)
    	}
    
    	sliceMap := []map[string]interface{}{}
    	if err := DB.Model(&User{}).Create(&sliceMap).Error; err != gorm.ErrEmptySlice {
    		t.Errorf("no data should be created, got %v", err)
    	}
    }
    
    func TestCreateInvalidSlice(t *testing.T) {
    	users := []*User{
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/generic.rules

    (SliceCap (SliceMake _ _ (Const64 <t> [c]))) => (Const64 <t> [c])
    (SliceLen (SliceMake _ (Const32 <t> [c]) _)) => (Const32 <t> [c])
    (SliceCap (SliceMake _ _ (Const32 <t> [c]))) => (Const32 <t> [c])
    (SlicePtr (SliceMake (SlicePtr x) _ _)) => (SlicePtr x)
    (SliceLen (SliceMake _ (SliceLen x) _)) => (SliceLen x)
    (SliceCap (SliceMake _ _ (SliceCap x))) => (SliceCap x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "SliceMake", argLength: 3},                // arg0=ptr, arg1=len, arg2=cap
    	{name: "SlicePtr", argLength: 1, typ: "BytePtr"}, // ptr(arg0)
    	{name: "SliceLen", argLength: 1},                 // len(arg0)
    	{name: "SliceCap", argLength: 1},                 // cap(arg0)
    	// SlicePtrUnchecked, like SlicePtr, extracts the pointer from a slice.
    	// SlicePtr values are assumed non-nil, because they are guarded by bounds checks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. src/debug/elf/file.go

    			}
    		}
    	}
    
    	if shnum > 0 && shentsize < wantShentsize {
    		return nil, &FormatError{0, "invalid ELF shentsize", shentsize}
    	}
    
    	// Read section headers
    	c := saferio.SliceCap[Section](uint64(shnum))
    	if c < 0 {
    		return nil, &FormatError{0, "too many sections", shnum}
    	}
    	f.Sections = make([]*Section, 0, c)
    	names := make([]uint32, 0, c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:58 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewritegeneric.go

    		t := v_0_2.Type
    		c := auxIntToInt32(v_0_2.AuxInt)
    		v.reset(OpConst32)
    		v.Type = t
    		v.AuxInt = int32ToAuxInt(c)
    		return true
    	}
    	// match: (SliceCap (SliceMake _ _ (SliceCap x)))
    	// result: (SliceCap x)
    	for {
    		if v_0.Op != OpSliceMake {
    			break
    		}
    		_ = v_0.Args[2]
    		v_0_2 := v_0.Args[2]
    		if v_0_2.Op != OpSliceCap {
    			break
    		}
    		x := v_0_2.Args[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/opGen.go

    	},
    	{
    		name:    "SlicePtr",
    		argLen:  1,
    		generic: true,
    	},
    	{
    		name:    "SliceLen",
    		argLen:  1,
    		generic: true,
    	},
    	{
    		name:    "SliceCap",
    		argLen:  1,
    		generic: true,
    	},
    	{
    		name:    "SlicePtrUnchecked",
    		argLen:  1,
    		generic: true,
    	},
    	{
    		name:    "ComplexMake",
    		argLen:  2,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 1M bytes
    - Viewed (0)
Back to top