mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-16 03:52:12 +02:00
config pkg test coverage increased
This commit is contained in:
parent
fe8256730f
commit
41dba4581f
@ -60,3 +60,9 @@ func TestInvalidFields(t *testing.T) {
|
||||
_, err := Load("testdata/invalid_config.yml")
|
||||
assert.EqualError(err, "unknown fields in the config file: invalid_root, archive.invalid_archive, archive.format_overrides[0].invalid_archive_fmtoverrides, brew.invalid_brew, brew.github.invalid_brew_github, builds[0].invalid_builds, builds[0].hooks.invalid_builds_hooks, builds[0].ignored_builds[0].invalid_builds_ignore, fpm.invalid_fpm, release.invalid_release, release.github.invalid_release_github, build.invalid_build, builds.hooks.invalid_build_hook, builds.ignored_builds[0].invalid_build_ignore, snapshot.invalid_snapshot")
|
||||
}
|
||||
|
||||
func TestInvalidYaml(t *testing.T) {
|
||||
var assert = assert.New(t)
|
||||
_, err := Load("testdata/invalid.yml")
|
||||
assert.EqualError(err, "yaml: line 1: did not find expected node content")
|
||||
}
|
||||
|
1
config/testdata/invalid.yml
vendored
Normal file
1
config/testdata/invalid.yml
vendored
Normal file
@ -0,0 +1 @@
|
||||
this_is_not_valid: [
|
Loading…
Reference in New Issue
Block a user