grim/convey

c1a95d79fcc5
Dump govcs in here for now until i can sort out this out
package podman
import (
"testing"
. "github.com/onsi/gomega"
)
func TestTagSingleTarget(t *testing.T) {
g := NewGomegaWithT(t)
tag := &Tag{
Image: "foo",
Targets: []string{"bar"},
}
g.Expect(tag.Valid()).To(BeNil())
}
func TestTagMultipleTargets(t *testing.T) {
g := NewGomegaWithT(t)
tag := &Tag{
Image: "foo",
Targets: []string{"bar", "baz"},
}
g.Expect(tag.Valid()).To(BeNil())
}
func TestTagImageRequired(t *testing.T) {
g := NewGomegaWithT(t)
tag := &Tag{
Targets: []string{"bar"},
}
g.Expect(tag.Valid()).To(MatchError(ErrNoImage))
}
func TestTagTargetRequired(t *testing.T) {
g := NewGomegaWithT(t)
tag := &Tag{
Image: "foo",
}
g.Expect(tag.Valid()).To(MatchError(ErrNoTargets))
}