diff options
Diffstat (limited to 'dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors')
8 files changed, 94 insertions, 0 deletions
diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/README.txt b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/README.txt new file mode 100644 index 0000000..071708a --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/README.txt @@ -0,0 +1,2 @@ +Tests in this directory check that user errors invoking gorelease +are correctly reported. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/bad_filenames.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/bad_filenames.test new file mode 100644 index 0000000..c8bf6e0 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/bad_filenames.test @@ -0,0 +1,17 @@ +mod=example.com/ziperrors +dir=x +base=none +error=true +vcs=git +-- want -- +testdata/this_file_also_has_a_bad_filename'.txt: malformed file path "testdata/this_file_also_has_a_bad_filename'.txt": invalid char '\'' +testdata/this_file_has_a_bad_filename'.txt: malformed file path "testdata/this_file_has_a_bad_filename'.txt": invalid char '\'' +-- x/go.mod -- +module example.com/x + +go 1.12 +-- x/testdata/this_file_has_a_bad_filename'.txt -- +-- x/testdata/this_file_also_has_a_bad_filename'.txt -- +# Verify that errors in submodules are not reported. +-- x/y/go.mod -- +-- x/y/submodule_bad_filename'.txt --
\ No newline at end of file diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/bad_release.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/bad_release.test new file mode 100644 index 0000000..74dc009 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/bad_release.test @@ -0,0 +1,8 @@ +mod=example.com/errors +base=v0.1.0 +release=master +error=true +-- want -- +usage: gorelease [-base=version] [-version=version] +release version "master" is not a canonical semantic version +For more information, run go doc golang.org/x/exp/cmd/gorelease diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/base_higher.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/base_higher.test new file mode 100644 index 0000000..a2325f9 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/base_higher.test @@ -0,0 +1,8 @@ +mod=example.com/errors +base=v0.2.0 +release=v0.1.0 +error=true +-- want -- +usage: gorelease [-base=version] [-version=version] +base version ("v0.2.0") must be lower than release version ("v0.1.0") +For more information, run go doc golang.org/x/exp/cmd/gorelease diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/base_modpath_none.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/base_modpath_none.test new file mode 100644 index 0000000..74a6946 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/base_modpath_none.test @@ -0,0 +1,7 @@ +mod=example.com/basic/v2 +base=example.com/basic@none +error=true +-- want -- +usage: gorelease [-base=version] [-version=version] +base version ("example.com/basic@none") cannot have version "none" with explicit module path +For more information, run go doc golang.org/x/exp/cmd/gorelease diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/errors.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/errors.test new file mode 100644 index 0000000..81adeb5 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/errors.test @@ -0,0 +1,38 @@ +mod=example.com/errors +version=v0.2.0 +base=v0.1.0 +release=v0.2.0 +success=false +proxyVersions=example.com/errors@v0.1.0 +-- want -- +# example.com/errors/added +## errors in release version: +added/added.go:3:15: undeclared name: Missing + +## compatible changes +package added + +# example.com/errors/broken +## errors in release version: +broken/broken.go:3:15: undeclared name: Missing + +## incompatible changes +X: value changed from 12 to unknown + +# example.com/errors/deleted +## errors in base version: +deleted/deleted.go:3:15: undeclared name: Missing + +## incompatible changes +package removed + +# example.com/errors/fixed +## errors in base version: +fixed/fixed.go:3:15: undeclared name: Missing + +## incompatible changes +X: value changed from unknown to 12 + +# summary +v0.2.0 is not a valid semantic version for this release. +Errors were found in one or more packages. diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/same_base_release.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/same_base_release.test new file mode 100644 index 0000000..4da457b --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/same_base_release.test @@ -0,0 +1,8 @@ +mod=example.com/errors +base=v0.1.0 +release=v0.1.0 +error=true +-- want -- +usage: gorelease [-base=version] [-version=version] +-base and -version must be different +For more information, run go doc golang.org/x/exp/cmd/gorelease diff --git a/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/upgrade_base.test b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/upgrade_base.test new file mode 100644 index 0000000..994b3b7 --- /dev/null +++ b/dependencies/pkg/mod/golang.org/x/exp@v0.0.0-20220613132600-b0d781184e0d/cmd/gorelease/testdata/errors/upgrade_base.test @@ -0,0 +1,6 @@ +mod=example.com/errors +version=v0.1.0 +base=upgrade +error=true +-- want -- +could not resolve version example.com/errors@upgrade: query is based on requirements in main go.mod file |