package bsdaily_test import ( "testing" "git.eeqj.de/sneak/bsdaily/internal/bsdaily" ) // TestCompiles is a minimal smoke test that references the package's exported // surface so that `go test` fails if the package stops compiling. It does not // touch the filesystem or any of the hard-coded production paths. func TestCompiles(t *testing.T) { t.Parallel() if bsdaily.DBFilename == "" || bsdaily.WALFilename == "" || bsdaily.SHMFilename == "" { t.Fatal("expected database filename constants to be set") } if bsdaily.SnapshotBase == "" || bsdaily.TmpBase == "" || bsdaily.DailiesBase == "" { t.Fatal("expected base path constants to be set") } if bsdaily.MinTmpFreeBytes == 0 || bsdaily.MinDailiesFreeBytes == 0 { t.Fatal("expected free-space thresholds to be set") } if bsdaily.ErrNoPosts == nil { t.Fatal("expected ErrNoPosts sentinel to be set") } }