13 lines
231 B
Go
13 lines
231 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestCreateGoalsNilTask(t *testing.T) {
|
|
if got := (&Server{}).createGoals(context.Background(), nil, nil); len(got) != 0 {
|
|
t.Fatalf("nil task produced goals: %+v", got)
|
|
}
|
|
}
|