Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestValidatePath (0.38 sec)

  1. pkg/volume/util/atomic_writer_test.go

    	}
    
    	_, err = NewAtomicWriter(nonExistentDir, "-test-")
    	if err == nil {
    		t.Fatalf("unexpected success creating writer for nonexistent target dir: %v", err)
    	}
    }
    
    func TestValidatePath(t *testing.T) {
    	maxPath := strings.Repeat("a", maxPathLength+1)
    	maxFile := strings.Repeat("a", maxFileNameLength+1)
    
    	cases := []struct {
    		name  string
    		path  string
    		valid bool
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top