Unit test

This commit is contained in:
2026-05-14 19:59:15 +02:00
parent e39d539585
commit 4199d615a3
2 changed files with 152 additions and 0 deletions
+10
View File
@@ -27,6 +27,16 @@ Or run directly with Go:
GOCACHE="$PWD/.cache/go-build" go run ./cmd/nwn-tool --help
```
When changing native topdata id allocation, lockfile persistence, generated
families, or null-and-relocate behavior, run the repeat-build determinism test:
```bash
go test ./internal/topdata -run TestBuildNativeKeepsGeneratedIDsStableAcrossRepeatedBuilds
```
That test builds the same topdata project ten times in one process and asserts
that relocated/generated ids stay pinned across every pass.
## Repository Layout
```text