Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTempFile_BadPattern (0.2 sec)

  1. src/io/ioutil/tempfile_test.go

    				test.pattern, base, test.prefix, test.suffix)
    		}
    	}
    }
    
    // This string is from os.errPatternHasSeparator.
    const patternHasSeparator = "pattern contains path separator"
    
    func TestTempFile_BadPattern(t *testing.T) {
    	tmpDir, err := TempDir("", t.Name())
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(tmpDir)
    
    	const sep = string(os.PathSeparator)
    	tests := []struct {
    		pattern string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 18 00:47:29 UTC 2022
    - 5.5K bytes
    - Viewed (0)
Back to top