grim/convey

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 TestLogin(t *testing.T) {
l := &Login{
Server: "docker.io",
Username: "username",
Password: "password",
}
assert.NoError(t, l.Valid())
}
func TestLoginServerRequired(t *testing.T) {
l := &Login{
Username: "username",
Password: "password",
}
assert.ErrorIs(t, l.Valid(), podman.ErrNoRegistry)
}
func TestLoginUsernameRequired(t *testing.T) {
l := &Login{
Server: "docker.io",
Password: "password",
}
assert.ErrorIs(t, l.Valid(), podman.ErrNoUsername)
}
func TestLoginPasswordRequired(t *testing.T) {
l := &Login{
Server: "docker.io",
Username: "username",
}
assert.ErrorIs(t, l.Valid(), podman.ErrNoPassword)
}