Git Repository
Stackyard
Stackyard scannt lokale Entwicklungsordner und bündelt Projekte, Git-Status, TODOs, Toolchains, Docker-Compose-Setups, Datei- und Launcher-Funktionen sowie Operations-Informationen in einer lokalen WebUI.
HTTPS
https://zanvex.de/git/stackyard.gitinternal/todo/todo_test.go
Zum Verzeichnispackage todo
import (
"os"
"path/filepath"
"testing"
)
func TestEnsureCreatesPreferredTodo(t *testing.T) {
projectDir := t.TempDir()
path, err := Ensure(projectDir)
if err != nil {
t.Fatalf("ensure todo: %v", err)
}
if path != filepath.Join(projectDir, PreferredPath) {
t.Fatalf("unexpected todo path: %q", path)
}
if _, err := os.Stat(path); err != nil {
t.Fatalf("stat todo: %v", err)
}
}