Expose prompt requirement inspection
This commit is contained in:
15
requirements_test.go
Normal file
15
requirements_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package promptkit
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestInspectRequirementsRejectsNilEngine(t *testing.T) {
|
||||
var engine *Engine
|
||||
inspection, err := engine.InspectRequirements(context.Background(), RequirementInspectionRequest{PromptID: "prompt"})
|
||||
if inspection != nil || !errors.Is(err, ErrInvalidConfig) {
|
||||
t.Fatalf("nil engine returned (%+v, %v), want ErrInvalidConfig", inspection, err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user