MCPcopy Create free account
hub / github.com/alecthomas/devtodo2 / TestReparent

Function TestReparent

todo_test.go:54–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

52}
53
54func TestReparent(t *testing.T) {
55 tasks := NewTaskList()
56 a := tasks.Create("do A", MEDIUM)
57 b := tasks.Create("do B", MEDIUM)
58 ReparentTask(a, b)
59 if a.Parent().Equal(b) {
60 t.Fail()
61 }
62}

Callers

nothing calls this directly

Calls 5

NewTaskListFunction · 0.85
ReparentTaskFunction · 0.85
CreateMethod · 0.65
EqualMethod · 0.65
ParentMethod · 0.65

Tested by

no test coverage detected