grim/convey
Clone
Summary
Browse
Changes
Graph
Fix codespell issues
12 months ago, Elliott Sales de Andrade
1b692d310d7e
Fix codespell issues
Testing Done:
Ran `convey run everything`; no errors from codespell.
Reviewed at https://reviews.imfreedom.org/r/2453/
package
podman
import
(
"testing"
"github.com/stretchr/testify/assert"
)
func
TestBuild
(
t
*
testing
.
T
)
{
b
:=
&
Build
{
Containerfile
:
"Dockerfile"
,
Tags
:
[]
string
{
"foo:latest"
},
}
assert
.
NoError
(
t
,
b
.
Valid
())
}
func
TestBuildContainerfileRequired
(
t
*
testing
.
T
)
{
b
:=
&
Build
{
Tags
:
[]
string
{
"foo:latest"
},
}
assert
.
ErrorIs
(
t
,
b
.
Valid
(),
ErrNoContainerfile
)
}
func
TestBuildTagsRequired
(
t
*
testing
.
T
)
{
b
:=
&
Build
{
Containerfile
:
"Dockerfile"
,
}
assert
.
ErrorIs
(
t
,
b
.
Valid
(),
ErrNoTags
)
}