todo-to-docs/todo_finder_test.go

30 lines
687 B
Go
Raw Normal View History

package main
import (
"github.com/davecgh/go-spew/spew"
"github.com/hashicorp/go-getter"
"testing"
)
func TestNode_AddToTree(t *testing.T) {
2021-01-07 12:57:18 +00:00
n := &node{Name: "root", Type: DIR}
td := &todo{
Filepath: "../status-go/admin/sales/donkeys/pokemon/gif.go",
Description: "this looks borken",
LineNumber: 19224,
RelatedFuncOrType: "",
}
n.AddToTree(td.Path(), td)
spew.Dump(n)
}
// TODO use `getter` to get a local copy of the repo.
// getter checks if the local files are upto date with the repo, if not updates otherwise continues
func TestNewTodoFinder(t *testing.T) {
for _, repo := range repos {
spew.Dump(getter.Get(repo.Dst, repo.Src))
}
}