Bundle pinned shared domain contracts

This commit is contained in:
2026-11-29 17:47:34 +00:00
parent 30bc424343
commit 0361b199c4
10 changed files with 410 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
package assets
import (
"io/fs"
"testing"
)
func TestSharedDomainContractsAreEmbedded(t *testing.T) {
for _, path := range []string{
"shared-domain/SOURCE.md",
"shared-domain/glossary/v0.2.0/schema.json",
"shared-domain/glossary/v0.2.0/semantics.md",
"shared-domain/rpg/party/v0.2.0/schema.json",
"shared-domain/rpg/party/v0.2.0/semantics.md",
} {
if _, err := fs.ReadFile(FS(), path); err != nil {
t.Errorf("read embedded %s: %v", path, err)
}
}
}