github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/filesystem/paths_windows_test.go (about)

     1  package filesystem
     2  
     3  // windowsLongPathTestingLength is the path length to use when testing for long
     4  // path support on Windows. Any path of 248 or more characters is sufficient to
     5  // be rejected under Windows' default path handling (according to the Go
     6  // standard library comments), so we pick a length to use that's a bit larger.
     7  // Instead of creating a chain of directories exceeding this length, our tests
     8  // generally just create a single component with this length in order to ensure
     9  // the limit is exceeded. However, the maximum path length of any single
    10  // component is 255 characters, so we have to stay beneath that.
    11  const windowsLongPathTestingLength = 252