Unit test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user