grim/convey
Clone
Summary
Browse
Changes
Graph
Add documentation for the podman tasks
redux
2021-10-16, Gary Kramlich
fd65c6d6f2ab
Add documentation for the podman tasks
package
docker
import
(
"testing"
.
"github.com/onsi/gomega"
"keep.imfreedom.org/grim/convey/tasks"
)
func
TestExport
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
e
:=
&
Export
{
Files
:
[]
string
{
".:."
},
}
g
.
Expect
(
e
.
Valid
()).
To
(
BeNil
())
}
func
TestExportFilesRequired
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
e
:=
&
Export
{}
g
.
Expect
(
e
.
Valid
()).
To
(
MatchError
(
tasks
.
ErrNoFiles
))
}