From 2e9b3031b80a6c5eee643b31a1cd0d2cb907ace5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Marguerie?= Date: Wed, 18 Sep 2024 11:18:11 +0200 Subject: [PATCH] fix: issue #147 --- biscuit.go | 2 +- biscuit_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/biscuit.go b/biscuit.go index ecc5bd7..9f28dc4 100644 --- a/biscuit.go +++ b/biscuit.go @@ -469,7 +469,7 @@ func (b *Biscuit) checkRootKey(root ed25519.PublicKey) error { return nil }*/ -func (b *Biscuit) generateWorld(symbols *datalog.SymbolTable) (*datalog.World, error) { +func (b *Biscuit) GenerateWorld(symbols *datalog.SymbolTable) (*datalog.World, error) { world := datalog.NewWorld() for _, fact := range *b.authority.facts { diff --git a/biscuit_test.go b/biscuit_test.go index 667e2f5..b98ba88 100644 --- a/biscuit_test.go +++ b/biscuit_test.go @@ -319,7 +319,7 @@ func TestGenerateWorld(t *testing.T) { require.NoError(t, err) StringTable := (build.(*builder)).symbols - world, err := b.generateWorld(defaultSymbolTable.Clone()) + world, err := b.GenerateWorld(defaultSymbolTable.Clone()) require.NoError(t, err) expectedWorld := datalog.NewWorld() @@ -346,7 +346,7 @@ func TestGenerateWorld(t *testing.T) { require.NoError(t, err) allStrings := append(*StringTable, *(blockBuild.(*blockBuilder)).symbols...) - world, err = b2.generateWorld(&allStrings) + world, err = b2.GenerateWorld(&allStrings) require.NoError(t, err) expectedWorld = datalog.NewWorld()