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/tasks"
)
func
TestExport
(
t
*
testing
.
T
)
{
e
:=
&
Export
{
Files
:
[]
string
{
".:."
},
}
assert
.
NoError
(
t
,
e
.
Valid
())
}
func
TestExportFilesRequired
(
t
*
testing
.
T
)
{
e
:=
&
Export
{}
assert
.
ErrorIs
(
t
,
e
.
Valid
(),
tasks
.
ErrNoFiles
)
}