(node TaskNode, t []*marshalableTask)
| 102 | } |
| 103 | |
| 104 | func fromMarshalableTask(node TaskNode, t []*marshalableTask) { |
| 105 | for _, j := range t { |
| 106 | task := node.Create(j.Text, PriorityFromString(j.Priority)) |
| 107 | task.SetCreationTime(time.Unix(j.Creation, 0).UTC()) |
| 108 | if j.Completion != 0 { |
| 109 | task.SetCompletionTime(time.Unix(j.Completion, 0).UTC()) |
| 110 | } |
| 111 | fromMarshalableTask(task, j.Tasks) |
| 112 | } |
| 113 | } |
no test coverage detected