Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSplitPath (0.56 sec)

  1. src/os/os_unix_test.go

    }
    
    func TestNewFileInvalid(t *testing.T) {
    	t.Parallel()
    	const negOne = ^uintptr(0)
    	if f := NewFile(negOne, "invalid"); f != nil {
    		t.Errorf("NewFile(-1) got %v want nil", f)
    	}
    }
    
    func TestSplitPath(t *testing.T) {
    	t.Parallel()
    	for _, tt := range []struct{ path, wantDir, wantBase string }{
    		{"a", ".", "a"},
    		{"a/", ".", "a"},
    		{"a//", ".", "a"},
    		{"a/b", "a", "b"},
    		{"a/b/", "a", "b"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
Back to top