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.

Projektseite ↗
HTTPShttps://zanvex.de/git/stackyard.git

internal/todo/todo_test.go

Zum Verzeichnis
package 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)
	}
}