Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testType (0.12 sec)

  1. src/reflect/all_test.go

    	}
    }
    
    func TestAll(t *testing.T) {
    	testType(t, 1, TypeOf((int8)(0)), "int8")
    	testType(t, 2, TypeOf((*int8)(nil)).Elem(), "int8")
    
    	typ := TypeOf((*struct {
    		c chan *int32
    		d float32
    	})(nil))
    	testType(t, 3, typ, "*struct { c chan *int32; d float32 }")
    	etyp := typ.Elem()
    	testType(t, 4, etyp, "struct { c chan *int32; d float32 }")
    	styp := etyp
    	f := styp.Field(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. cmd/server_test.go

    	client     *http.Client
    }
    
    type check struct {
    	*testing.T
    	testType string
    }
    
    // Assert - checks if gotValue is same as expectedValue, if not fails the test.
    func (c *check) Assert(gotValue interface{}, expectedValue interface{}) {
    	c.Helper()
    	if !reflect.DeepEqual(gotValue, expectedValue) {
    		c.Fatalf("Test %s expected %v, got %v", c.testType, expectedValue, gotValue)
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func findResource(module Handle, name uintptr, resType uintptr) (resInfo Handle, err error) {
    	r0, _, e1 := syscall.Syscall(procFindResourceW.Addr(), 3, uintptr(module), uintptr(name), uintptr(resType))
    	resInfo = Handle(r0)
    	if resInfo == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
Back to top