grim/convey

proofreading of documentation

2022-04-10, ivanhoe
6568ae3e734f
proofreading of documentation

Reviewed at https://reviews.imfreedom.org/r/1375/
package podman
import (
"testing"
"github.com/stretchr/testify/assert"
"keep.imfreedom.org/grim/convey/yaml"
)
func TestPullString(t *testing.T) {
p := &Pull{
Tags: yaml.StringOrSlice{"foo"},
}
assert.NoError(t, p.Valid())
}
func TestPullSlice(t *testing.T) {
p := &Pull{
Tags: []string{"foo", "bar"},
}
assert.NoError(t, p.Valid())
}
func TestPullTagsRequired(t *testing.T) {
p := &Push{}
assert.ErrorIs(t, p.Valid(), ErrNoTags)
}