16 lines
413 B
Go
16 lines
413 B
Go
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)
|
|
}
|
|
}
|