grim/convey
Clone
Summary
Browse
Changes
Graph
Fix some minor linting issues
5 months ago, Elliott Sales de Andrade
62cc853bf396
Fix some minor linting issues
Testing Done:
Ran `golint`, saw fewer lints, and ran `go build .`
Reviewed at https://reviews.imfreedom.org/r/2869/
package
docker
import
(
"testing"
"github.com/stretchr/testify/assert"
"keep.imfreedom.org/grim/convey/podman"
)
func
TestLogout
(
t
*
testing
.
T
)
{
l
:=
&
Logout
{
Server
:
"docker.io"
,
}
assert
.
NoError
(
t
,
l
.
Valid
())
}
func
TestLoginRegistryRequired
(
t
*
testing
.
T
)
{
l
:=
&
Logout
{}
assert
.
ErrorIs
(
t
,
l
.
Valid
(),
podman
.
ErrNoRegistry
)
}