Search Options

Results per page
Sort
Preferred Languages
Advance

Results 811 - 820 of 938 for Nil$ (0.05 sec)

  1. cmd/os-dirent_namelen_bsd.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import "syscall"
    
    func direntNamlen(dirent *syscall.Dirent) (uint64, error) {
    	return uint64(dirent.Namlen), nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 982 bytes
    - Viewed (0)
  2. cmd/version_test.go

    package cmd
    
    import (
    	"testing"
    	"time"
    )
    
    func TestVersion(t *testing.T) {
    	Version = "2017-05-07T06:37:49Z"
    	_, err := time.Parse(time.RFC3339, Version)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 956 bytes
    - Viewed (0)
  3. internal/disk/disk_windows.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    // SameDisk reports whether di1 and di2 describe the same disk.
    func SameDisk(disk1, disk2 string) (bool, error) {
    	return false, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 951 bytes
    - Viewed (0)
  4. doc/go_spec.html

    <a href="#Predeclared_identifiers"><code>nil</code></a>;
    that case is selected when the expression in the TypeSwitchGuard
    is a <code>nil</code> interface value.
    There may be at most one <code>nil</code> case.
    </p>
    
    <p>
    Given an expression <code>x</code> of type <code>interface{}</code>,
    the following type switch:
    </p>
    
    <pre>
    switch i := x.(type) {
    case nil:
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
  5. internal/disk/disk_test.go

    package disk_test
    
    import (
    	"testing"
    
    	"github.com/minio/minio/internal/disk"
    )
    
    func TestFree(t *testing.T) {
    	di, err := disk.GetInfo(t.TempDir(), true)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if di.FSType == "UNKNOWN" {
    		t.Error("Unexpected FSType", di.FSType)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 31 22:20:48 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. internal/disk/fdatasync_unix.go

    	"syscall"
    )
    
    // Fdatasync is fsync on freebsd/darwin
    func Fdatasync(f *os.File) error {
    	return syscall.Fsync(int(f.Fd()))
    }
    
    // FadviseDontNeed is a no-op
    func FadviseDontNeed(f *os.File) error {
    	return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 29 23:40:28 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  7. internal/disk/root_disk.go

    func IsRootDisk(diskPath string, rootDisk string) (bool, error) {
    	if runtime.GOOS == "windows" {
    		// On windows this function is not implemented.
    		return false, nil
    	}
    	return SameDisk(diskPath, rootDisk)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  8. cmd/batch-replicate_test.go

    #      attempts: 10 # number of retries for the job before giving up
    #      delay: "500ms" # least amount of delay between each retry
    
    `
    	var job BatchJobRequest
    	err := yaml.Unmarshal([]byte(replicateYaml), &job)
    	if err != nil {
    		t.Fatal("Failed to parse batch-job-replicate yaml", err)
    	}
    	if !slices.Equal(job.Replicate.Source.Prefix.F(), []string{"object-prefix1"}) {
    		t.Fatal("Failed to parse batch-job-replicate yaml", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. schema/utils.go

    		for idx, field := range fields {
    			results[0][idx], zero = field.ValueOf(ctx, reflectValue)
    			notZero = notZero || !zero
    		}
    
    		if !notZero {
    			return nil, nil
    		}
    
    		dataResults[utils.ToStringKey(results[0]...)] = []reflect.Value{reflectValue}
    	case reflect.Slice, reflect.Array:
    		for i := 0; i < reflectValue.Len(); i++ {
    			elem := reflectValue.Index(i)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Aug 19 13:35:14 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. cmd/object-api-options_test.go

    			},
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			rec := httptest.NewRecorder()
    			req := httptest.NewRequest("GET", "/test", nil)
    			req.Header = testCase.headers
    
    			opts, _ := getAndValidateAttributesOpts(ctx, rec, req, bucket, "testobject")
    
    			if !reflect.DeepEqual(opts.ObjectAttributes, testCase.wantObjectAttrs) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top