moby/pkg/fileutils
Sebastiaan van Stijn 6793ff26d8
pkg/fileutils: TestMatches: remove cases no longer valid for go1.16
These tests were no longer valid on Go 1.16; related to https://tip.golang.org/doc/go1.16#path/filepath

> The Match and Glob functions now return an error if the unmatched part of
> the pattern has a syntax error. Previously, the functions returned early on
> a failed match, and thus did not report any later syntax error in the pattern.

Causing the test to fail:

    === RUN   TestMatches
        fileutils_test.go:388: assertion failed: error is not nil: syntax error in pattern: pattern="a\\" text="a"
    --- FAIL: TestMatches (0.00s)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 2842639e0e)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-07-15 22:24:50 +02:00
..
fileutils.go Remove duplicated words in pkg files 2018-10-05 22:32:14 +08:00
fileutils_darwin.go Add canonical import comment 2018-02-05 16:51:57 -05:00
fileutils_test.go pkg/fileutils: TestMatches: remove cases no longer valid for go1.16 2021-07-15 22:24:50 +02:00
fileutils_unix.go Add canonical import comment 2018-02-05 16:51:57 -05:00
fileutils_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00