harbor/src/common/scheduler/task/scan_all_task_test.go

17 lines
175 B
Go

package task
import (
"testing"
)
func TestScanAllTask(t *testing.T) {
tk := NewScanAllTask()
if tk == nil {
t.Fail()
}
if tk.Name() != "scan all" {
t.Fail()
}
}