grim/convey
Clone
Summary
Browse
Changes
Graph
Dump govcs in here for now until i can sort out this out
redux
2021-10-18, Gary Kramlich
c1a95d79fcc5
Dump govcs in here for now until i can sort out this out
package
podman
import
(
"testing"
.
"github.com/onsi/gomega"
)
func
TestLogout
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
l
:=
&
Logout
{
Registry
:
"docker.io"
,
}
g
.
Expect
(
l
.
Valid
()).
To
(
BeNil
())
}
func
TestLogoutRegistryRequired
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
l
:=
&
Logout
{}
g
.
Expect
(
l
.
Valid
()).
To
(
MatchError
(
ErrNoRegistry
))
}