MCPcopy Create free account
hub / github.com/augmentable-dev/tickgit / TestNewToDoNil

Function TestNewToDoNil

pkg/todos/todos_test.go:10–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestNewToDoNil(t *testing.T) {
11 collection := lege.NewCollection(lege.Location{}, lege.Location{}, lege.Boundary{}, "Hello World")
12 comment := comments.Comment{
13 Collection: *collection,
14 }
15 todo := NewToDo(comment)
16
17 if todo != nil {
18 t.Fatalf("did not expect a TODO, got: %v", todo)
19 }
20}
21
22func TestNewToDo(t *testing.T) {
23 collection := lege.NewCollection(lege.Location{}, lege.Location{}, lege.Boundary{}, "TODO Hello World")

Callers

nothing calls this directly

Calls 1

NewToDoFunction · 0.85

Tested by

no test coverage detected