MCPcopy Create free account
hub / github.com/driangle/taskmd / TestDetectNoCycles

Function TestDetectNoCycles

sdk/go/graph/graph_test.go:147–156  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

145}
146
147func TestDetectNoCycles(t *testing.T) {
148 tasks := createTestTasks()
149 g := NewGraph(tasks)
150
151 cycles := g.DetectCycles()
152
153 if len(cycles) != 0 {
154 t.Errorf("Expected no cycles, found %d", len(cycles))
155 }
156}
157
158func TestFilterTasks(t *testing.T) {
159 tasks := createTestTasks()

Callers

nothing calls this directly

Calls 3

DetectCyclesMethod · 0.95
createTestTasksFunction · 0.85
NewGraphFunction · 0.85

Tested by

no test coverage detected