grim/convey
Clone
Summary
Browse
Changes
Graph
proofreading of documentation
2022-04-10, ivanhoe
6568ae3e734f
proofreading of documentation
Reviewed at https://reviews.imfreedom.org/r/1375/
package
docker
import
(
"testing"
"github.com/stretchr/testify/assert"
"keep.imfreedom.org/grim/convey/tasks"
)
func
TestImport
(
t
*
testing
.
T
)
{
e
:=
&
Import
{
Files
:
[]
string
{
".:."
},
}
assert
.
NoError
(
t
,
e
.
Valid
())
}
func
TestImportFilesRequired
(
t
*
testing
.
T
)
{
e
:=
&
Import
{}
assert
.
ErrorIs
(
t
,
e
.
Valid
(),
tasks
.
ErrNoFiles
)
}