Implement D&D spells extraction mapping

This commit is contained in:
2026-07-03 23:38:41 +00:00
parent 404bfc8da5
commit b2012b9b2c
3 changed files with 355 additions and 13 deletions

View File

@@ -1,12 +1,10 @@
package spells
import (
"context"
"reflect"
"strings"
"testing"
"gitea.maximumdirect.net/eric/notarius/internal/framework/contracts"
"gitea.maximumdirect.net/eric/notarius/internal/framework/pipeline"
)
@@ -93,13 +91,3 @@ func TestRegisterNilRegistryReturnsError(t *testing.T) {
t.Fatalf("Register(nil) error = %q, want registry context", err.Error())
}
}
func TestExtractReportsNotImplemented(t *testing.T) {
_, err := New().Extract(context.Background(), contracts.ExtractionRequest{})
if err == nil {
t.Fatal("Extract() error = nil, want error")
}
if !strings.Contains(err.Error(), "dnd spells") || !strings.Contains(err.Error(), "not implemented") {
t.Fatalf("Extract() error = %q, want not implemented D&D spells context", err.Error())
}
}