Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMkdirTempBadPattern (0.26 sec)

  1. src/os/tempfile_test.go

    	if pe, ok := err.(*fs.PathError); !ok || !IsNotExist(err) || pe.Path != badDir {
    		t.Errorf("TempDir error = %#v; want PathError for path %q satisfying IsNotExist", err, badDir)
    	}
    }
    
    func TestMkdirTempBadPattern(t *testing.T) {
    	t.Parallel()
    
    	tmpDir, err := MkdirTemp("", t.Name())
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer RemoveAll(tmpDir)
    
    	const sep = string(PathSeparator)
    	tests := []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:45:37 UTC 2023
    - 5.5K bytes
    - Viewed (0)
Back to top