grim/convey

Add back the old --memory flag

2021-12-22, Gary Kramlich
aa8a9d2b2ae2
Add back the old --memory flag
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)
}