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

Function buildTaskMap

apps/cli/internal/cli/snapshot_analysis.go:6–12  ·  view source on GitHub ↗

buildTaskMap creates a map of task ID to task

(tasks []*model.Task)

Source from the content-addressed store, hash-verified

4
5// buildTaskMap creates a map of task ID to task
6func buildTaskMap(tasks []*model.Task) map[string]*model.Task {
7 taskMap := make(map[string]*model.Task)
8 for _, task := range tasks {
9 taskMap[task.ID] = task
10 }
11 return taskMap
12}
13
14// isTaskBlocked checks if a task has unmet dependencies
15func isTaskBlocked(task *model.Task, taskMap map[string]*model.Task) bool {

Callers 12

collectReportDataFunction · 0.85
runSnapshotFunction · 0.85
mergeDependencyFilesFunction · 0.85
addDependencyEntriesFunction · 0.85
buildDependencyInfoFunction · 0.85
TestBuildTaskMapFunction · 0.85
TestIsTaskBlockedFunction · 0.85
TestCalculateDepthMapFunction · 0.85

Calls

no outgoing calls

Tested by 7

TestBuildTaskMapFunction · 0.68
TestIsTaskBlockedFunction · 0.68
TestCalculateDepthMapFunction · 0.68